|
|
|
@ -10,7 +10,11 @@ import { |
|
|
|
|
Table |
|
|
|
|
} from 'react-bootstrap' |
|
|
|
|
import { IconContext } from 'react-icons' |
|
|
|
|
import { BsChevronDown, BsChevronRight } from 'react-icons/bs' |
|
|
|
|
import { |
|
|
|
|
BsChevronDown, |
|
|
|
|
BsChevronRight, |
|
|
|
|
BsFillXCircleFill |
|
|
|
|
} from 'react-icons/bs' |
|
|
|
|
import { FaAmazon } from 'react-icons/fa' |
|
|
|
|
import I2096Headers from '../../../Interfaces/I2096Header' |
|
|
|
|
import DSAmazon from '../../../Services/Amazon.Services' |
|
|
|
@ -26,6 +30,9 @@ import loadingImg from '../../../../../../images/ajaxloader.gif' |
|
|
|
|
import { useDispatch, useSelector } from 'react-redux' |
|
|
|
|
import RtpAmazonPendingClasificationInvoicesDetail from './RptAmazonPendingClasificationInvoicesDetail' |
|
|
|
|
import ClasificatorAssign from './ClasificatorAssign' |
|
|
|
|
import { FcQuestions, FcSettings } from 'react-icons/fc' |
|
|
|
|
import { MFileManager } from '../../../../../Utils/MFileManager/MFileManager' |
|
|
|
|
import CorresponsalesTabuladoresServices from '../../../../../../Services/Corresponsalias/Corresponsales.Tabuladores.Services' |
|
|
|
|
export interface IRtpAmazonPendingInvoicesProps {} |
|
|
|
|
|
|
|
|
|
export default function RtpAmazonPendingInvoices( |
|
|
|
@ -47,6 +54,9 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
const [IDFactura, setIDFactura] = useState(0) |
|
|
|
|
const [Factura, setFactura] = useState('') |
|
|
|
|
const [show, setShowMsg] = useState(false) |
|
|
|
|
const [ShowModalDeleteInvoice, setShowModalDeleteInvoice] = useState(false) |
|
|
|
|
const [ShowModalInvoiceFile, setShowModalInvoiceFile] = useState(false) |
|
|
|
|
const [IDProcess, setIDProcess] = useState(30) |
|
|
|
|
const [WaitingDialog, setWaitingDialog] = useState(false) |
|
|
|
|
const [WaitingMessage, setWaitingMessage] = useState('') |
|
|
|
|
const [ShowModal, setShowModal] = useState(false) |
|
|
|
@ -75,102 +85,135 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
const Obj = { ...Invoice[0] } |
|
|
|
|
Obj.max = !Obj.max |
|
|
|
|
dispatch(updateInvoice(Obj)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const descargaArchivoExcepciones = () => { |
|
|
|
|
setShowModalW(false) |
|
|
|
|
setWaitingMessage('Archivo de excepciones') |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.ExceptionsFileAmazonGET(IDFactura) |
|
|
|
|
.then((response: any) => { |
|
|
|
|
if (response.status === 200) { |
|
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
|
const link = document.createElement('a') |
|
|
|
|
link.href = url |
|
|
|
|
link.setAttribute('download', 'Excepciones '+Factura+'.xlsx') |
|
|
|
|
document.body.appendChild(link) |
|
|
|
|
link.click() |
|
|
|
|
DSAmazon.EnviaEsperaRespuestaAmazon(IDFactura) |
|
|
|
|
.then((response) => { |
|
|
|
|
loadReport() |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg( |
|
|
|
|
'Ocurrio un error, no se pudo actualizar informacion' + |
|
|
|
|
e.message.toString() |
|
|
|
|
) |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
DSAmazon.SETInvoiceDetail2Unchecked(row.id) |
|
|
|
|
.then((response) => { |
|
|
|
|
DSAmazon.AmazonInvoiceGET(row.id) |
|
|
|
|
.then((response) => { |
|
|
|
|
if (response.data) { |
|
|
|
|
//dispatch(updateInvoice(response.data[0]))
|
|
|
|
|
const Obj = { ...response.data[0] } |
|
|
|
|
console.log(JSON.stringify(Obj)) |
|
|
|
|
Obj.max = !Obj.max |
|
|
|
|
dispatch(updateInvoice(Obj)) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowMsg(true) |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const descargaPantillaPartes = () => { |
|
|
|
|
let Invoice: I2096Headers[] = mInvoices.filter((item) => item.id === IDFactura) |
|
|
|
|
let TotalPartidas = Invoice[0].detail.length |
|
|
|
|
let TotalFraccionesPreviamenteRegistradas = Invoice[0].detail.filter((item) => item.confirmaFraccion === 3).length |
|
|
|
|
if (TotalPartidas===TotalFraccionesPreviamenteRegistradas) { |
|
|
|
|
setShowModal(false) |
|
|
|
|
DSAmazon.TerminaClasificarFactura(IDFactura) |
|
|
|
|
.then((response) => { |
|
|
|
|
loadReport() |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
const descargaArchivoExcepciones = () => { |
|
|
|
|
setShowModalW(false) |
|
|
|
|
setWaitingMessage('Archivo de excepciones') |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.ExceptionsFileAmazonGET(IDFactura) |
|
|
|
|
.then((response: any) => { |
|
|
|
|
if (response.status === 200) { |
|
|
|
|
/* const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
|
const link = document.createElement('a') |
|
|
|
|
link.href = url |
|
|
|
|
link.setAttribute('download', 'Excepciones ' + Factura + '.xlsx') |
|
|
|
|
document.body.appendChild(link) |
|
|
|
|
link.click() */ |
|
|
|
|
DSAmazon.EnviaEsperaRespuestaAmazon(IDFactura) |
|
|
|
|
.then((response) => { |
|
|
|
|
loadReport() |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg( |
|
|
|
|
'Ocurrio un error, no se pudo actualizar informacion' + |
|
|
|
|
e.message.toString() |
|
|
|
|
) |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg( |
|
|
|
|
'Ocurrio un error, no se pudo actualizar informacion' + |
|
|
|
|
e.message.toString() |
|
|
|
|
) |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const descargaPantillaPartes = () => { |
|
|
|
|
let Invoice: I2096Headers[] = mInvoices.filter( |
|
|
|
|
(item) => item.id === IDFactura |
|
|
|
|
) |
|
|
|
|
let TotalPartidas = Invoice[0].detail.length |
|
|
|
|
let TotalFraccionesPreviamenteRegistradas = Invoice[0].detail.filter( |
|
|
|
|
(item) => item.confirmaFraccion === 3 |
|
|
|
|
).length |
|
|
|
|
if (TotalPartidas === TotalFraccionesPreviamenteRegistradas) { |
|
|
|
|
setShowModal(false) |
|
|
|
|
DSAmazon.TerminaClasificarFactura(IDFactura) |
|
|
|
|
.then((response) => { |
|
|
|
|
loadReport() |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg( |
|
|
|
|
'Ocurrio un error, no se pudo actualizar informacion' + |
|
|
|
|
e.message.toString() |
|
|
|
|
) |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} else { |
|
|
|
|
setShowModal(false) |
|
|
|
|
setWaitingMessage('Plantilla de partes') |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.NoPartesAmazon2SIRGET(IDFactura) |
|
|
|
|
.then((response: any) => { |
|
|
|
|
if (response.status === 200) { |
|
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
|
const link = document.createElement('a') |
|
|
|
|
link.href = url |
|
|
|
|
link.setAttribute('download', 'Plantilla de partes '+Factura+'.xls') |
|
|
|
|
document.body.appendChild(link) |
|
|
|
|
link.click() |
|
|
|
|
DSAmazon.TerminaClasificarFactura(IDFactura) |
|
|
|
|
.then((response) => { |
|
|
|
|
loadReport() |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg( |
|
|
|
|
'Ocurrio un error, no se pudo actualizar informacion' + |
|
|
|
|
e.message.toString() |
|
|
|
|
) |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
}
|
|
|
|
|
setShowModal(false) |
|
|
|
|
setWaitingMessage('Plantilla de partes') |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.NoPartesAmazon2SIRGET(IDFactura) |
|
|
|
|
.then((response: any) => { |
|
|
|
|
if (response.status === 200) { |
|
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
|
const link = document.createElement('a') |
|
|
|
|
link.href = url |
|
|
|
|
link.setAttribute( |
|
|
|
|
'download', |
|
|
|
|
'Plantilla de partes ' + Factura + '.xls' |
|
|
|
|
) |
|
|
|
|
document.body.appendChild(link) |
|
|
|
|
link.click() |
|
|
|
|
DSAmazon.TerminaClasificarFactura(IDFactura) |
|
|
|
|
.then((response) => { |
|
|
|
|
loadReport() |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg( |
|
|
|
|
'Ocurrio un error, no se pudo actualizar informacion' + |
|
|
|
|
e.message.toString() |
|
|
|
|
) |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowMsg(true) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const facturaTerminada = (row: I2096Headers) => { |
|
|
|
@ -187,13 +230,76 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
setFactura(row.invoiceNumber) |
|
|
|
|
setShowModalW(true) |
|
|
|
|
} else if (response.data.estatus === 2) { |
|
|
|
|
setIDFactura(row.id)
|
|
|
|
|
setFactura(row.invoiceNumber)
|
|
|
|
|
setIDFactura(row.id) |
|
|
|
|
setFactura(row.invoiceNumber) |
|
|
|
|
setShowModal(true) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const eliminaFactura = () => { |
|
|
|
|
DSAmazon.EliminaFactura(IDFactura) |
|
|
|
|
.then((response) => { |
|
|
|
|
if (response.data) { |
|
|
|
|
setIDFactura(0) |
|
|
|
|
setFactura('') |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
loadReport() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const syncInvoicesInFilePath = () => { |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.UploadAndSyncAmazonInvoicesInFilePath() |
|
|
|
|
.then((response) => { |
|
|
|
|
if (response.data) { |
|
|
|
|
setIDFactura(0) |
|
|
|
|
setFactura('') |
|
|
|
|
setShowModalInvoiceFile(false) |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
loadReport() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const syncInvoicesByFTP = () => { |
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
DSAmazon.UploadAndSyncAmazonInvoicesByFTP() |
|
|
|
|
.then((response) => { |
|
|
|
|
if (response.data) { |
|
|
|
|
setIDFactura(0) |
|
|
|
|
setFactura('') |
|
|
|
|
setShowModalInvoiceFile(false) |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
loadReport() |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
setHeader('Error') |
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
return |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div> |
|
|
|
|
<Card> |
|
|
|
@ -203,11 +309,53 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
<Card.Title> |
|
|
|
|
<IconContext.Provider value={{ color: '#F6C34F', size: '8%' }}> |
|
|
|
|
<FaAmazon /> |
|
|
|
|
</IconContext.Provider>{' '} |
|
|
|
|
</IconContext.Provider> |
|
|
|
|
CLASIFICACION : facturas pendientes |
|
|
|
|
</Card.Title> |
|
|
|
|
</Col> |
|
|
|
|
<Col xs={4}></Col> |
|
|
|
|
<Col xs={5}></Col> |
|
|
|
|
<Col xs={2}> |
|
|
|
|
<Alert |
|
|
|
|
variant="primary" |
|
|
|
|
style={{ |
|
|
|
|
visibility: [ |
|
|
|
|
'Clasificador lider', |
|
|
|
|
'Administrador', |
|
|
|
|
'Sistemas' |
|
|
|
|
].includes(Perfil) |
|
|
|
|
? 'visible' |
|
|
|
|
: 'hidden' |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<span |
|
|
|
|
style={{ cursor: 'pointer' }} |
|
|
|
|
title="Sube facturas enviadas por correo electronico" |
|
|
|
|
onClick={() => { |
|
|
|
|
setShowModalInvoiceFile(true) |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<IconContext.Provider value={{ color: 'blue', size: '35px' }}> |
|
|
|
|
<FcQuestions /> |
|
|
|
|
</IconContext.Provider> |
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
<span |
|
|
|
|
style={{ |
|
|
|
|
cursor: 'pointer', |
|
|
|
|
paddingLeft: '40px', |
|
|
|
|
visibility: 'hidden' |
|
|
|
|
}} |
|
|
|
|
title="Descarga y sincroniza facturas en este momento" |
|
|
|
|
onClick={() => { |
|
|
|
|
syncInvoicesByFTP() |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<IconContext.Provider value={{ color: 'blue', size: '35px' }}> |
|
|
|
|
<FcSettings /> |
|
|
|
|
</IconContext.Provider> |
|
|
|
|
</span> |
|
|
|
|
</Alert> |
|
|
|
|
</Col> |
|
|
|
|
</Row> |
|
|
|
|
</Card.Body> |
|
|
|
|
</Card> |
|
|
|
@ -251,9 +399,11 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
) { |
|
|
|
|
return a |
|
|
|
|
} else if ( |
|
|
|
|
['Clasificador lider', 'Administrador', 'Clasificador'].includes( |
|
|
|
|
Perfil |
|
|
|
|
) |
|
|
|
|
[ |
|
|
|
|
'Clasificador lider', |
|
|
|
|
'Administrador', |
|
|
|
|
'Sistemas' |
|
|
|
|
].includes(Perfil) |
|
|
|
|
) { |
|
|
|
|
return a |
|
|
|
|
} |
|
|
|
@ -315,6 +465,29 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
</td> |
|
|
|
|
<td style={{ width: '150px' }}> |
|
|
|
|
{MasterData.invoiceNumber} |
|
|
|
|
<span |
|
|
|
|
style={{ |
|
|
|
|
paddingLeft: '5px', |
|
|
|
|
visibility: [ |
|
|
|
|
'Clasificador lider', |
|
|
|
|
'Administrador', |
|
|
|
|
'Sistemas' |
|
|
|
|
].includes(Perfil) |
|
|
|
|
? 'visible' |
|
|
|
|
: 'hidden' |
|
|
|
|
}} |
|
|
|
|
onClick={() => { |
|
|
|
|
setIDFactura(MasterData.id) |
|
|
|
|
setFactura(MasterData.invoiceNumber) |
|
|
|
|
setShowModalDeleteInvoice(true) |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
<IconContext.Provider |
|
|
|
|
value={{ color: '#DD0E0E' }} |
|
|
|
|
> |
|
|
|
|
<BsFillXCircleFill /> |
|
|
|
|
</IconContext.Provider> |
|
|
|
|
</span> |
|
|
|
|
</td> |
|
|
|
|
<td |
|
|
|
|
style={{ width: '50px', textAlign: 'center' }} |
|
|
|
@ -549,7 +722,6 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
> |
|
|
|
|
Unit Net Weight |
|
|
|
|
</th> |
|
|
|
|
|
|
|
|
|
<th |
|
|
|
|
style={{ |
|
|
|
|
width: '70px', |
|
|
|
@ -638,7 +810,7 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
</div> |
|
|
|
|
</Card.Body> |
|
|
|
|
</Card> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Modal |
|
|
|
|
show={ShowModal} |
|
|
|
|
onHide={() => { |
|
|
|
@ -736,9 +908,9 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
onHide={() => { |
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
}} |
|
|
|
|
backdrop='static' |
|
|
|
|
backdrop="static" |
|
|
|
|
keyboard={false} |
|
|
|
|
size='sm' |
|
|
|
|
size="sm" |
|
|
|
|
dialogClassName={'modal-50w'} |
|
|
|
|
centered |
|
|
|
|
> |
|
|
|
@ -746,11 +918,109 @@ export default function RtpAmazonPendingInvoices( |
|
|
|
|
<Modal.Title></Modal.Title> |
|
|
|
|
</Modal.Header> |
|
|
|
|
<Modal.Body> |
|
|
|
|
<img src={loadingImg} style={{ height: '150px' }} alt='proccessing' /> |
|
|
|
|
<img src={loadingImg} style={{ height: '150px' }} alt="proccessing" /> |
|
|
|
|
Generando {WaitingMessage}... |
|
|
|
|
</Modal.Body> |
|
|
|
|
<Modal.Footer></Modal.Footer> |
|
|
|
|
</Modal> |
|
|
|
|
|
|
|
|
|
<Modal |
|
|
|
|
show={ShowModalDeleteInvoice} |
|
|
|
|
onHide={() => { |
|
|
|
|
setShowModal(false) |
|
|
|
|
}} |
|
|
|
|
size={'sm'} |
|
|
|
|
dialogClassName={'modal-50w'} |
|
|
|
|
> |
|
|
|
|
<Modal.Body> |
|
|
|
|
<div style={{ height: '180px' }}> |
|
|
|
|
<Row style={{ paddingTop: '15px' }}> |
|
|
|
|
<Col xs={1}></Col> |
|
|
|
|
<Col xs={10}> |
|
|
|
|
<Alert key={'danger'} variant={'danger'}> |
|
|
|
|
¿Esta seguro de eliminar esta factura: <b>{Factura}</b>? |
|
|
|
|
</Alert> |
|
|
|
|
</Col> |
|
|
|
|
<Col xs={1}></Col> |
|
|
|
|
</Row> |
|
|
|
|
<Row style={{ paddingTop: '15px' }}> |
|
|
|
|
<Col xs={6} style={{ textAlign: 'center' }}> |
|
|
|
|
<Button |
|
|
|
|
variant="secondary" |
|
|
|
|
onClick={() => { |
|
|
|
|
setShowModalDeleteInvoice(false) |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
Cerrar |
|
|
|
|
</Button> |
|
|
|
|
</Col> |
|
|
|
|
<Col xs={6} style={{ textAlign: 'center' }}> |
|
|
|
|
<Button |
|
|
|
|
variant="danger" |
|
|
|
|
onClick={() => { |
|
|
|
|
eliminaFactura() |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
Elimina factura |
|
|
|
|
</Button> |
|
|
|
|
</Col> |
|
|
|
|
</Row> |
|
|
|
|
</div> |
|
|
|
|
</Modal.Body> |
|
|
|
|
</Modal> |
|
|
|
|
|
|
|
|
|
<Modal |
|
|
|
|
show={ShowModalInvoiceFile} |
|
|
|
|
onHide={() => { |
|
|
|
|
setShowModalInvoiceFile(false) |
|
|
|
|
}} |
|
|
|
|
size={'sm'} |
|
|
|
|
dialogClassName={'modal-50w'} |
|
|
|
|
> |
|
|
|
|
<Modal.Body> |
|
|
|
|
<div style={{ height: '330px' }}> |
|
|
|
|
<Row style={{ paddingTop: '15px' }}> |
|
|
|
|
<Col xs={12}> |
|
|
|
|
<Alert |
|
|
|
|
key={'danger'} |
|
|
|
|
variant={'danger'} |
|
|
|
|
style={{ textAlign: 'center' }} |
|
|
|
|
> |
|
|
|
|
Proporcione la(facturas) que llegaron por correo en el proceso |
|
|
|
|
de Amazon |
|
|
|
|
</Alert> |
|
|
|
|
</Col> |
|
|
|
|
</Row> |
|
|
|
|
<Row style={{ paddingTop: '15px' }}> |
|
|
|
|
<Col></Col> |
|
|
|
|
<Col xs={10} style={{ textAlign: 'center' }}> |
|
|
|
|
<MFileManager |
|
|
|
|
IDTrafico={IDFactura} |
|
|
|
|
Proceso={IDProcess} |
|
|
|
|
showPreview={0} |
|
|
|
|
canEdit={true} |
|
|
|
|
Leyenda="Seleccione las facturas de Amazon" |
|
|
|
|
/> |
|
|
|
|
</Col> |
|
|
|
|
<Col></Col> |
|
|
|
|
</Row> |
|
|
|
|
<Row style={{ paddingTop: '80px' }}> |
|
|
|
|
<Col xs={10}></Col> |
|
|
|
|
<Col xs={2}> |
|
|
|
|
<Button |
|
|
|
|
variant="primary" |
|
|
|
|
onClick={() => { |
|
|
|
|
syncInvoicesInFilePath() |
|
|
|
|
}} |
|
|
|
|
> |
|
|
|
|
Sincronize... |
|
|
|
|
</Button> |
|
|
|
|
</Col> |
|
|
|
|
</Row> |
|
|
|
|
</div> |
|
|
|
|
</Modal.Body> |
|
|
|
|
</Modal> |
|
|
|
|
|
|
|
|
|
<MsgInformativo |
|
|
|
|
show={show} |
|
|
|
|
msg={msg} |
|
|
|
|