depurando fallos. Falta backend comprobacion

This commit is contained in:
jaimejimenezortega
2024-04-07 22:01:30 +02:00
parent 987da56f2a
commit eb3b3e5e3b
5 changed files with 5039 additions and 99 deletions

View File

@ -20,7 +20,7 @@ class PresupuestoServiciosExtraModel extends \App\Models\GoBaseModel
];
protected $allowedFields = ["presupuesto_id", "tarifa_extra_id", "nombre", "precio_total", "precio_unidad", "margen"];
protected $returnType = "App\Entities\Presupuestos\PresupuestoPreimpresionesEntity";
protected $returnType = "App\Entities\Presupuestos\PresupuestoServiciosExtraEntity";
protected $useTimestamps = true;
protected $useSoftDeletes = false;
@ -48,7 +48,7 @@ class PresupuestoServiciosExtraModel extends \App\Models\GoBaseModel
public function getPrecioTarifa($tarifa_extra_id){
$modelTarifa = model('App\Models\Tarifas\TarifaextraModel');
$tarifa_value = $modelTarifa->getTarifaPresupuestoPreimpresion($tarifa_extra_id);
$tarifa_value = $modelTarifa->getTarifaPresupuestoExtra($tarifa_extra_id);
if (count($tarifa_value)>0) {
$result_data = $this->calcularTarifa($tarifa_value[0]);