mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
depurando fallos. Falta backend comprobacion
This commit is contained in:
@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user