Centros de Costos
This commit is contained in:
5
app/src/Model/CategoriaCentro.php
Normal file
5
app/src/Model/CategoriaCentro.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
namespace Incoviba\Model;
|
||||
|
||||
class CategoriaCentro extends Tipo
|
||||
{}
|
24
app/src/Model/CentroCosto.php
Normal file
24
app/src/Model/CentroCosto.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace Incoviba\Model;
|
||||
|
||||
use Incoviba\Common\Ideal;
|
||||
|
||||
class CentroCosto extends Ideal\Model
|
||||
{
|
||||
public TipoCentro $tipoCentro;
|
||||
public CategoriaCentro $categoria;
|
||||
public ?TipoCuenta $tipoCuenta;
|
||||
public string $cuentaContable;
|
||||
public string $descripcion;
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return array_map(parent::jsonSerialize(), [
|
||||
'tipo_centro' => $this->tipoCentro,
|
||||
'categoria' => $this->categoria,
|
||||
'tipo_cuenta' => $this->tipoCuenta,
|
||||
'cuenta_contable' => $this->cuentaContable,
|
||||
'descripcion' => $this->descripcion
|
||||
]);
|
||||
}
|
||||
}
|
18
app/src/Model/PagoCentroCosto.php
Normal file
18
app/src/Model/PagoCentroCosto.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace Incoviba\Model;
|
||||
|
||||
use Incoviba\Common\Ideal;
|
||||
|
||||
class PagoCentroCosto extends Ideal\Model
|
||||
{
|
||||
public Venta\Pago $pago;
|
||||
public CentroCosto $centroCosto;
|
||||
|
||||
public function jsonSerialize(): mixed
|
||||
{
|
||||
return array_merge(parent::jsonSerialize(), [
|
||||
'pago' => $this->pago,
|
||||
'centro_costo' => $this->centroCosto
|
||||
]);
|
||||
}
|
||||
}
|
5
app/src/Model/TipoCentro.php
Normal file
5
app/src/Model/TipoCentro.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
namespace Incoviba\Model;
|
||||
|
||||
class TipoCentro extends Tipo
|
||||
{}
|
5
app/src/Model/TipoCuenta.php
Normal file
5
app/src/Model/TipoCuenta.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
namespace Incoviba\Model;
|
||||
|
||||
class TipoCuenta extends Tipo
|
||||
{}
|
Reference in New Issue
Block a user