mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
81 lines
2.4 KiB
PHP
81 lines
2.4 KiB
PHP
<?php
|
|
namespace App\Entities\Clientes;
|
|
|
|
use CodeIgniter\Entity;
|
|
|
|
class ClienteEntity extends \CodeIgniter\Entity\Entity
|
|
{
|
|
protected $attributes = [
|
|
"id" => null,
|
|
"nombre" => null,
|
|
"alias" => null,
|
|
"direccion" => null,
|
|
"ciudad" => null,
|
|
"comunidad_autonoma_id" => null,
|
|
"provincia" => null,
|
|
"cp" => null,
|
|
"pais_id" => null,
|
|
"telefono" => null,
|
|
"email" => null,
|
|
"salesman_id" => 1,
|
|
"soporte_id" => null,
|
|
"forma_pago_id" => null,
|
|
"vencimiento" => 15,
|
|
"fechaVencimiento" => null,
|
|
"margen" => 40.0,
|
|
"margen_pod" => null,
|
|
"descuento" => 0.0,
|
|
"limite_credito" => 0.0,
|
|
"limite_credito_user_id" => 1,
|
|
"limite_credito_change_at" => null,
|
|
"creditoSolunion" => null,
|
|
"creditoAsegurado" => false,
|
|
"ccc" => null,
|
|
"ccc_customer" => null,
|
|
"num_cuenta" => null,
|
|
"disponible_fe" => false,
|
|
"message_tracking" => true,
|
|
"message_production_start" => true,
|
|
"tirada_flexible" => false,
|
|
"descuento_tirada_flexible" => 20.0,
|
|
"comentarios_tirada_flexible" => null,
|
|
"saturacion" => 100.0,
|
|
"tienda_id" => null,
|
|
"margen_plantilla_id" => null,
|
|
"comentarios_produccion" => null,
|
|
"ps_customer_id" => null,
|
|
"lineasEnvioFactura" => true,
|
|
"comentarios" => null,
|
|
"created_at" => null,
|
|
"updated_at" => null,
|
|
"user_created_id" => 1,
|
|
"user_update_id" => 1,
|
|
];
|
|
protected $casts = [
|
|
"comunidad_autonoma_id" => "?int",
|
|
"pais_id" => "?int",
|
|
"salesman_id" => "int",
|
|
"soporte_id" => "?int",
|
|
"forma_pago_id" => "?int",
|
|
"vencimiento" => "int",
|
|
"margen" => "float",
|
|
"margen_pod" => "?float",
|
|
"descuento" => "float",
|
|
"limite_credito" => "float",
|
|
"limite_credito_user_id" => "int",
|
|
"creditoAsegurado" => "?boolean",
|
|
"disponible_fe" => "boolean",
|
|
"message_tracking" => "boolean",
|
|
"message_production_start" => "boolean",
|
|
"tirada_flexible" => "boolean",
|
|
"descuento_tirada_flexible" => "float",
|
|
"saturacion" => "float",
|
|
"tienda_id" => "?int",
|
|
"margen_plantilla_id" => "?int",
|
|
"ps_customer_id" => "?int",
|
|
"lineasEnvioFactura" => "boolean",
|
|
"user_created_id" => "int",
|
|
"user_update_id" => "int",
|
|
];
|
|
}
|