ya se puede confirmar

This commit is contained in:
jaimejimenezortega
2024-06-16 18:02:50 +02:00
parent aed64581c9
commit 8335c458ed
10 changed files with 94 additions and 69 deletions

View File

@ -295,6 +295,12 @@ class Cosidotapablanda extends \App\Controllers\BaseResourceController
endif;
else :
if ($this->request->isAJAX()) {
if($presupuestoEntity->estado_id==1 && $presupuestoEntity->confirmar==1){
$this->model->confirmarPresupuesto($id);
PresupuestoService::crearPedido($id);
}
$newTokenHash = csrf_hash();
$csrfTokenName = csrf_token();
$data = [