mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
103 lines
2.7 KiB
PHP
Executable File
103 lines
2.7 KiB
PHP
Executable File
<?php
|
|
|
|
namespace App\Models\Clientes;
|
|
|
|
class ClientePlantillaPreciosLineasModel extends \App\Models\GoBaseModel
|
|
{
|
|
protected $table = "cliente_plantilla_precios_linea";
|
|
|
|
/**
|
|
* Whether primary key uses auto increment.
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $useAutoIncrement = true;
|
|
|
|
|
|
protected $allowedFields = [
|
|
"plantilla_id",
|
|
"tipo",
|
|
"tipo_maquina",
|
|
"tipo_impresion",
|
|
"tiempo_min",
|
|
"tiempo_max",
|
|
"precio_hora",
|
|
"margen",
|
|
"is_deleted",
|
|
"deleted_at",
|
|
"created_at",
|
|
"updated_at"];
|
|
|
|
protected $returnType = "App\Entities\Clientes\ClientePlantillaPreciosLineasEntity";
|
|
|
|
protected $useTimestamps = true;
|
|
protected $useSoftDeletes = false;
|
|
|
|
protected $createdField = "created_at";
|
|
|
|
protected $updatedField = "updated_at";
|
|
|
|
public static $labelField = "plantilla_id";
|
|
|
|
protected $validationRules = [
|
|
"plantilla_id" => [
|
|
"label" => "ClientePrecios.plantilla_id",
|
|
"rules" => "required",
|
|
],
|
|
"tipo" => [
|
|
"label" => "ClientePrecios.tipo",
|
|
"rules" => "required|in_list[interior,cubierta,sobrecubierta]",
|
|
],
|
|
"tipo_maquina" => [
|
|
"label" => "ClientePrecios.tipo_maquina",
|
|
"rules" => "required|in_list[toner,inkjet]",
|
|
],
|
|
"tipo_impresion" => [
|
|
"label" => "ClientePrecios.tipo_impresion",
|
|
"rules" => "required|in_list[negro,color,negrohq,colorhq]",
|
|
],
|
|
"tiempo_min" => [
|
|
"label" => "ClientePrecios.tiempo_min",
|
|
"rules" => "required|decimal",
|
|
],
|
|
"tiempo_max" => [
|
|
"label" => "ClientePrecios.tiempo_max",
|
|
"rules" => "required|decimal",
|
|
],
|
|
"margen" => [
|
|
"label" => "ClientePrecios.margen",
|
|
"rules" => "required|decimal",
|
|
],
|
|
|
|
|
|
|
|
];
|
|
|
|
protected $validationMessages = [
|
|
"plantilla_id" => [
|
|
"required" => "ClientePrecios.validation.required",
|
|
|
|
],
|
|
"tipo" => [
|
|
"required" => "ClientePrecios.validation.required",
|
|
],
|
|
"tipo_maquina" => [
|
|
"required" => "ClientePrecios.validation.required",
|
|
],
|
|
"tipo_impresion" => [
|
|
"required" => "ClientePrecios.validation.required",
|
|
],
|
|
"tiempo_min" => [
|
|
"required" => "ClientePrecios.validation.required",
|
|
],
|
|
"tiempo_max" => [
|
|
"required" => "ClientePrecios.validation.required",
|
|
],
|
|
"margen" => [
|
|
"required" => "ClientePrecios.validation.required",
|
|
],
|
|
];
|
|
|
|
|
|
}
|