|
|
|
@ -312,28 +312,32 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
toggleExpandRow(row) |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if (BOTEnabled && !row.max) { |
|
|
|
|
setWaitingMessage('BOT trabajando...') |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.ClasificacionBOT(row.id) |
|
|
|
|
.then((response) => { |
|
|
|
|
if (response.data) { |
|
|
|
|
setIDFactura(0) |
|
|
|
|
setFactura('') |
|
|
|
|
setShowModalInvoiceFile(false) |
|
|
|
|
if (BOTEnabled) { |
|
|
|
|
// if (!row.max) {
|
|
|
|
|
setWaitingMessage('BOT trabajando...') |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.ClasificacionBOT(row.id) |
|
|
|
|
.then((response) => { |
|
|
|
|
if (response.data) { |
|
|
|
|
setIDFactura(0) |
|
|
|
|
setFactura('') |
|
|
|
|
setShowModalInvoiceFile(false) |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
//loadReport()
|
|
|
|
|
toggleExpandRow(row) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
//loadReport()
|
|
|
|
|
toggleExpandRow(row) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
/* } else { |
|
|
|
|
toggleExpandRow(row) |
|
|
|
|
} */ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|