añadido calculo de formas rot y merma automatica para rot

This commit is contained in:
2023-12-28 12:43:23 +01:00
parent 101b6508de
commit 98b416cedc
18 changed files with 521 additions and 17 deletions

View File

@ -0,0 +1,44 @@
<?php
namespace App\Models\Clientes;
class ClientePlantillaPreciosModel extends \App\Models\GoBaseModel
{
protected $table = "cliente_plantilla_precios";
/**
* Whether primary key uses auto increment.
*
* @var bool
*/
protected $useAutoIncrement = true;
protected $allowedFields = ["nombre", "is_deleted", "deleted_at", "created_at", "updated_at"];
protected $returnType = "App\Entities\Clientes\ClientePlantillaPreciosEntity";
protected $useTimestamps = true;
protected $useSoftDeletes = false;
protected $createdField = "created_at";
protected $updatedField = "updated_at";
public static $labelField = "nombre";
protected $validationRules = [
"nombre" => [
"label" => "ClientePrecios.nombre",
"rules" => "trim|max_length[100]",
],
];
protected $validationMessages = [
"nombre" => [
"max_length" => "ClientePrecios.validation.max_length",
],
];
}