mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
copiada la rama presu_cliente_v2 en esta para poder hacer el merge al main
This commit is contained in:
@ -13,7 +13,9 @@ class TarifapreimpresionModel extends \App\Models\BaseModel
|
||||
protected $useAutoIncrement = true;
|
||||
|
||||
protected $allowedFields = [
|
||||
"nombre",
|
||||
"nombre",
|
||||
"code",
|
||||
"comment",
|
||||
"precio",
|
||||
"margen",
|
||||
"mostrar_en_presupuesto",
|
||||
@ -37,6 +39,14 @@ class TarifapreimpresionModel extends \App\Models\BaseModel
|
||||
"label" => "Tarifapreimpresion.nombre",
|
||||
"rules" => "trim|required|max_length[255]",
|
||||
],
|
||||
"code" => [
|
||||
"label" => "Tarifapreimpresion.code",
|
||||
"rules" => "trim|required|max_length[5]",
|
||||
],
|
||||
"comment" => [
|
||||
"label" => "Tarifapreimpresion.comment",
|
||||
"rules" => "trim|max_length[255]",
|
||||
],
|
||||
"precio" => [
|
||||
"label" => "Tarifapreimpresion.precio",
|
||||
"rules" => "required|decimal",
|
||||
@ -52,6 +62,14 @@ class TarifapreimpresionModel extends \App\Models\BaseModel
|
||||
"max_length" => "Tarifapreimpresion.validation.nombre.max_length",
|
||||
"required" => "Tarifapreimpresion.validation.nombre.required",
|
||||
],
|
||||
"code" => [
|
||||
"max_length" => "Tarifapreimpresion.validation.code.max_length",
|
||||
"required" => "Tarifapreimpresion.validation.code.required",
|
||||
],
|
||||
"comment" => [
|
||||
"max_length" => "Tarifapreimpresion.validation.comment.max_length",
|
||||
"required" => "Tarifapreimpresion.validation.comment.required",
|
||||
],
|
||||
"precio" => [
|
||||
"decimal" => "Tarifapreimpresion.validation.precio.decimal",
|
||||
"required" => "Tarifapreimpresion.validation.precio.required",
|
||||
|
||||
Reference in New Issue
Block a user