mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadida la logica en importador de RAMA
This commit is contained in:
@ -344,6 +344,10 @@ class ImportadorCatalogo extends BaseResourceController
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Vincular el presupuesto con el catálogo
|
||||||
|
model('\App\Models\Presupuestos\PresupuestoModel')
|
||||||
|
->vincularCatalogo($response['data']['sk_id'], $libro->id);
|
||||||
|
|
||||||
|
|
||||||
// Ajuste del precio a RAMA
|
// Ajuste del precio a RAMA
|
||||||
$respuesta_ajuste = PresupuestoService::ajustarPresupuesto(
|
$respuesta_ajuste = PresupuestoService::ajustarPresupuesto(
|
||||||
@ -362,7 +366,7 @@ class ImportadorCatalogo extends BaseResourceController
|
|||||||
|
|
||||||
// confirmar y crear pedido y ot
|
// confirmar y crear pedido y ot
|
||||||
model('App\Models\Presupuestos\PresupuestoModel')->confirmarPresupuesto($response['data']['sk_id']);
|
model('App\Models\Presupuestos\PresupuestoModel')->confirmarPresupuesto($response['data']['sk_id']);
|
||||||
PresupuestoService::crearPedido($response['data']['sk_id'],isImported:true);
|
PresupuestoService::crearPedido($response['data']['sk_id'], isImported: true);
|
||||||
|
|
||||||
return $this->respond($response);
|
return $this->respond($response);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user