Added a waiting image whenever processing answer file from Amazon

feaureInd4Manager
alfonso 1 year ago
parent ff35aafde6
commit d259703c3b
  1. 4
      src/Components/Clientes/Amazon/Reportes/Clasification/WaitingAnswerFromAmazon/RptPendingAnswerFromAmazon.tsx

@ -241,11 +241,14 @@ export default function RptPendingAnswerFromAmazon(
}
const ApplyAnswerFiles2Invoice = () => {
setWaitingMessage('Generando...')
const Filenames = AmazonAnswerFile.map(element => element.nombreArchivo);
setWaitingDialog(true)
DSAmazon.ApplyAnswerFile2Invoice(Filenames)
.then((response) => {
loadReport()
setAmazonAnswerFile([])
setWaitingDialog(false)
setShowModal(false)
})
.catch((e: Error) => {
@ -922,6 +925,7 @@ export default function RptPendingAnswerFromAmazon(
</Modal.Body>
<Modal.Footer></Modal.Footer>
</Modal>
<MsgInformativo
show={show}
msg={msg}

Loading…
Cancel
Save