mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
51 lines
1.3 KiB
PHP
51 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Entities\Facturas;
|
|
|
|
|
|
class FacturaEntity extends \CodeIgniter\Entity\Entity
|
|
{
|
|
protected $attributes = [
|
|
'id' => null,
|
|
'pedido_id' => null,
|
|
'factura_rectificada_id' => null,
|
|
'factura_rectificativa_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_updated_id' => null,
|
|
];
|
|
|
|
protected $casts = [
|
|
'id' => 'int',
|
|
'pedido_id' => 'int',
|
|
'cliente_id' => 'int',
|
|
'serie_id' => 'int',
|
|
'base' => 'float',
|
|
'total' => 'float',
|
|
'pendiente' => 'float',
|
|
'total_pagos' => 'float',
|
|
'creditoAsegurado' => 'float',
|
|
];
|
|
|
|
} |