feature/cierres #25

Open
aldarien wants to merge 446 commits from feature/cierres into develop
6 changed files with 6 additions and 89 deletions
Showing only changes of commit 6c25c5f6d5 - Show all commits

View File

@ -61,8 +61,8 @@
return return
} }
const body = new FormData() const body = new FormData()
const fecha = date const fecha = new Date(date.getTime())
fecha.setDate(date.getDate() - 1) fecha.setDate(fecha.getDate() - 1)
body.set('fecha', fecha.toISOString()) body.set('fecha', fecha.toISOString())
$('#loading-spinner-fecha').show() $('#loading-spinner-fecha').show()
APIClient.fetch(url, {method: 'post', body}).then(response => { APIClient.fetch(url, {method: 'post', body}).then(response => {
@ -70,7 +70,7 @@
if (!response) { if (!response) {
return return
} }
old = date old = new Date(date.getTime())
alertResponse('Fecha cambiada correctamente.') alertResponse('Fecha cambiada correctamente.')
}) })
} }

View File

@ -160,7 +160,7 @@ class Ventas
]; ];
try { try {
$pago = $pagoService->add($pagoData); $pago = $pagoService->add($pagoData);
$ventaService->edit($venta, ['resciliacion' => $pago->id]); $venta = $ventaService->edit($venta, ['resciliacion' => $pago->id]);
} catch (Create | Update) {} } catch (Create | Update) {}
} }
return $view->render($response, 'ventas.desistida', compact('venta')); return $view->render($response, 'ventas.desistida', compact('venta'));