mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
falta terminar albaranes
This commit is contained in:
44
ci4/app/Entities/Albaranes/AlbaranEntity.php
Normal file
44
ci4/app/Entities/Albaranes/AlbaranEntity.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace App\Entities\Albaranes;
|
||||
|
||||
use CodeIgniter\Entity;
|
||||
|
||||
class AlbaranEntity extends \CodeIgniter\Entity\Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
'id' => null,
|
||||
'envio_id' => null,
|
||||
'cliente_id' => null,
|
||||
'serie_id' => null,
|
||||
'numero_albaran' => null,
|
||||
'mostrar_precios' => null,
|
||||
'direccion_albaran' => null,
|
||||
'att_albaran' => null,
|
||||
'user_created_id' => null,
|
||||
'user_updated_id' => null,
|
||||
'created_at' => null,
|
||||
'updated_at' => null,
|
||||
'deleted_at' => null,
|
||||
'cajas' => null,
|
||||
];
|
||||
|
||||
protected $dates = ['created_at', 'updated_at', 'deleted_at'];
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
'envio_id' => '?integer',
|
||||
'presupuesto_id' => '?integer',
|
||||
'presupuesto_direccion_id' => '?integer',
|
||||
'cliente_id' => '?integer',
|
||||
'serie_id' => '?integer',
|
||||
'numero_albaran' => '?string',
|
||||
'mostrar_precios' => '?boolean',
|
||||
'total' => 'float',
|
||||
'direccion_albaran' => '?string',
|
||||
'att_albaran' => '?string',
|
||||
'user_created_id' => 'integer',
|
||||
'user_updated_id' => 'integer',
|
||||
];
|
||||
|
||||
// Agrega tus métodos personalizados aquí
|
||||
}
|
||||
40
ci4/app/Entities/Albaranes/AlbaranLineaEntity.php
Normal file
40
ci4/app/Entities/Albaranes/AlbaranLineaEntity.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
namespace App\Entities\Albaranes;
|
||||
|
||||
use CodeIgniter\Entity;
|
||||
|
||||
class AlbaranLineaEntity extends \CodeIgniter\Entity\Entity
|
||||
{
|
||||
protected $attributes = [
|
||||
'id' => null,
|
||||
'albaran_id' => null,
|
||||
'pedido_linea_id' => null,
|
||||
'titulo' => null,
|
||||
'isbn' => null,
|
||||
'ref_cliente' => null,
|
||||
'cantidad' => null,
|
||||
'precio_unidad' => null,
|
||||
'total' => null,
|
||||
'iva_reducido' => null,
|
||||
'user_created_id' => null,
|
||||
'user_updated_id' => null,
|
||||
'created_at' => null,
|
||||
'updated_at' => null,
|
||||
'deleted_at' => null,
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'id' => 'integer',
|
||||
'albaran_id' => '?integer',
|
||||
'pedido_linea_id' => '?integer',
|
||||
'titulo' => 'string',
|
||||
'isbn' => '?string',
|
||||
'ref_cliente' => '?string',
|
||||
'cantidad' => '?integer',
|
||||
'precio_unidad' => 'float',
|
||||
'total' => 'float',
|
||||
'iva_reducido' => '?boolean',
|
||||
'user_created_id' => 'integer',
|
||||
'user_updated_id' => 'integer',
|
||||
];
|
||||
}
|
||||
@ -30,5 +30,6 @@ class EnvioEntity extends Entity
|
||||
'mostrar_iva' => 'boolean',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'cajas' => 'int',
|
||||
];
|
||||
}
|
||||
|
||||
@ -13,8 +13,6 @@ class EnvioLineaEntity extends Entity
|
||||
'presupuesto_id' => 'int',
|
||||
'unidades_envio' => 'int',
|
||||
'unidades_total' => 'int',
|
||||
'cajas' => 'int',
|
||||
'unidades_cajas' => 'int',
|
||||
'created_by' => 'int',
|
||||
'updated_by' => 'int',
|
||||
'created_at' => 'datetime',
|
||||
|
||||
Reference in New Issue
Block a user