FIX: If pendiente
This commit is contained in:
@ -793,7 +793,9 @@
|
|||||||
button.prop('disabled', true)
|
button.prop('disabled', true)
|
||||||
button.css('cursor', 'wait')
|
button.css('cursor', 'wait')
|
||||||
const body = new FormData(event.currentTarget)
|
const body = new FormData(event.currentTarget)
|
||||||
if (body.get('unidad'))
|
/*const unidades = event.currentTarget.querySelectorAll("[name^='unidad_']")
|
||||||
|
console.debug(unidades)
|
||||||
|
return;*/
|
||||||
const uri = '{{$urls->api}}/ventas/add'
|
const uri = '{{$urls->api}}/ventas/add'
|
||||||
return fetchAPI(uri, {method: 'post', body}).then(response => {
|
return fetchAPI(uri, {method: 'post', body}).then(response => {
|
||||||
if (!response) {
|
if (!response) {
|
||||||
|
Reference in New Issue
Block a user