Restructura contabilidad
This commit is contained in:
25
app/src/Model/Contabilidad/CentroCosto.php
Normal file
25
app/src/Model/Contabilidad/CentroCosto.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace Incoviba\Model\Contabilidad;
|
||||
|
||||
use Incoviba\Common\Ideal;
|
||||
use Incoviba\Model\TipoCuenta;
|
||||
|
||||
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_merge(parent::jsonSerialize(), [
|
||||
'tipo_centro' => $this->tipoCentro,
|
||||
'categoria' => $this->categoria,
|
||||
'tipo_cuenta' => $this->tipoCuenta,
|
||||
'cuenta_contable' => $this->cuentaContable,
|
||||
'descripcion' => $this->descripcion
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user