mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
hechos modelos y entidades para facturas
This commit is contained in:
55
ci4/app/Entities/Facturas/FacturaEntity.php
Normal file
55
ci4/app/Entities/Facturas/FacturaEntity.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entities\Facturas;
|
||||
|
||||
|
||||
class FacturaEntity extends \CodeIgniter\Entity\Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
'id' => null,
|
||||
'pedido_id' => null,
|
||||
'factura_retificada_id' => null,
|
||||
'factura_retificativa_id' => null,
|
||||
'cliente_id' => null,
|
||||
'serie_id' => null,
|
||||
'numero' => null,
|
||||
'estado' => null,
|
||||
'estado_pago' => null,
|
||||
'fecha_factura_at' => null,
|
||||
'notas' => null,
|
||||
'base' => null,
|
||||
'total' => null,
|
||||
'pendiente' => null,
|
||||
'total_pagos' => null,
|
||||
'creditoAsegurado' => null,
|
||||
'cliente_nombre' => null,
|
||||
'cliente_address' => null,
|
||||
'cliente_cif' => null,
|
||||
'cliente_pais' => null,
|
||||
'cliente_cp' => null,
|
||||
'cliente_ciudad' => null,
|
||||
'cliente_provincia' => null,
|
||||
'created_at' => null,
|
||||
'updated_at' => null,
|
||||
'deleted_at' => null,
|
||||
'user_created_id' => null,
|
||||
'user_update_id' => null,
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'int',
|
||||
'pedido_id' => 'int',
|
||||
'factura_retificada_id' => 'int',
|
||||
'factura_retificativa_id' => 'int',
|
||||
'cliente_id' => 'int',
|
||||
'serie_id' => 'int',
|
||||
'estado' => 'int',
|
||||
'estado_pago' => 'int',
|
||||
'base' => 'float',
|
||||
'total' => 'float',
|
||||
'pendiente' => 'float',
|
||||
'total_pagos' => 'float',
|
||||
'creditoAsegurado' => 'float',
|
||||
];
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user