|
|
@ -14,23 +14,13 @@ import { |
|
|
|
BsChevronDown, |
|
|
|
BsChevronDown, |
|
|
|
BsChevronRight, |
|
|
|
BsChevronRight, |
|
|
|
BsFilePdfFill, |
|
|
|
BsFilePdfFill, |
|
|
|
BsSearch |
|
|
|
|
|
|
|
} from 'react-icons/bs' |
|
|
|
} from 'react-icons/bs' |
|
|
|
import { |
|
|
|
import { |
|
|
|
FaAmazon, |
|
|
|
FaAmazon, |
|
|
|
FaCheckCircle, |
|
|
|
|
|
|
|
FaFileExcel, |
|
|
|
|
|
|
|
FaQuestionCircle |
|
|
|
|
|
|
|
} from 'react-icons/fa' |
|
|
|
} from 'react-icons/fa' |
|
|
|
import { ImCross } from 'react-icons/im' |
|
|
|
|
|
|
|
import { ComboDescripcion } from '../../../Components/ComboSelect/ComboDescripcion' |
|
|
|
|
|
|
|
import { ComboFraccion } from '../../../Components/ComboSelect/ComboFraccion' |
|
|
|
|
|
|
|
import { TextBoxFraccion } from '../../../Components/TextBox/TextBoxFraccion' |
|
|
|
|
|
|
|
import I2096Detail from '../../../Interfaces/I2096Detail' |
|
|
|
|
|
|
|
import I2096Headers from '../../../Interfaces/I2096Header' |
|
|
|
import I2096Headers from '../../../Interfaces/I2096Header' |
|
|
|
import DSAmazon from '../../../Services/Amazon.Services' |
|
|
|
import DSAmazon from '../../../Services/Amazon.Services' |
|
|
|
import * as XLSX from 'xlsx' |
|
|
|
import * as XLSX from 'xlsx' |
|
|
|
import DTO2096PrevioExcel from '../../../DTO/DTO2096PrevioExcel' |
|
|
|
|
|
|
|
import { MsgInformativo } from '../../../../../Utils/Toast/msgInformativo' |
|
|
|
import { MsgInformativo } from '../../../../../Utils/Toast/msgInformativo' |
|
|
|
import { RootState } from '../../../../../../store/store' |
|
|
|
import { RootState } from '../../../../../../store/store' |
|
|
|
import { |
|
|
|
import { |
|
|
@ -38,12 +28,13 @@ import { |
|
|
|
populateInvoices, |
|
|
|
populateInvoices, |
|
|
|
updateInvoice |
|
|
|
updateInvoice |
|
|
|
} from '../../../../../../store/features/Clientes/2096/AmazonInvoices' |
|
|
|
} from '../../../../../../store/features/Clientes/2096/AmazonInvoices' |
|
|
|
import RptAmazonInvoiceTrafficDetail from './RptAmazonLinkInvoice2TrafficDetail' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Redux
|
|
|
|
// Redux
|
|
|
|
import { useDispatch, useSelector } from 'react-redux' |
|
|
|
import { useDispatch, useSelector } from 'react-redux' |
|
|
|
import DTO2096LinkInvoice2Reference from '../../../DTO/DTO2096LinkInvoice2Reference' |
|
|
|
import DTO2096LinkInvoice2Reference from '../../../DTO/DTO2096LinkInvoice2Reference' |
|
|
|
import { AiFillFileExcel } from 'react-icons/ai' |
|
|
|
import { AiFillFileExcel } from 'react-icons/ai' |
|
|
|
|
|
|
|
import RptAmazonLinkInvoice2TrafficDetail from './RptAmazonLinkInvoice2TrafficDetail' |
|
|
|
|
|
|
|
import loadingImg from '../../../../../../images/ajaxloader.gif' |
|
|
|
|
|
|
|
|
|
|
|
export interface IRptAmazonLinkInvoice2TrafficProps {} |
|
|
|
export interface IRptAmazonLinkInvoice2TrafficProps {} |
|
|
|
|
|
|
|
|
|
|
@ -58,19 +49,12 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
const [Referencia, setReferencia] = useState('') |
|
|
|
const [Referencia, setReferencia] = useState('') |
|
|
|
const [show, setShowMsg] = useState(false) |
|
|
|
const [show, setShowMsg] = useState(false) |
|
|
|
const [ShowModal, setShowModal] = useState(false) |
|
|
|
const [ShowModal, setShowModal] = useState(false) |
|
|
|
|
|
|
|
const [WaitingDialog, setWaitingDialog] = useState(false) |
|
|
|
|
|
|
|
const [WaitingMessage, setWaitingMessage] = useState('') |
|
|
|
const [msg, setMsg] = useState('') |
|
|
|
const [msg, setMsg] = useState('') |
|
|
|
const [Invoices, setInvoices] = useState<number[]>([]) |
|
|
|
const [Invoices, setInvoices] = useState<number[]>([]) |
|
|
|
const msgColor = 'primary' |
|
|
|
const msgColor = 'primary' |
|
|
|
|
|
|
|
|
|
|
|
function currentDate(days: number): string { |
|
|
|
|
|
|
|
var today = new Date() |
|
|
|
|
|
|
|
today.setDate(today.getDate() + days) |
|
|
|
|
|
|
|
var dd = String(today.getDate()).padStart(2, '0') |
|
|
|
|
|
|
|
var mm = String(today.getMonth() + 1).padStart(2, '0') |
|
|
|
|
|
|
|
var yyyy = today.getFullYear() |
|
|
|
|
|
|
|
return yyyy + '-' + mm + '-' + dd |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const loadReport = () => { |
|
|
|
const loadReport = () => { |
|
|
|
DSAmazon.AmazonLinkInvoice2TrafficGet() |
|
|
|
DSAmazon.AmazonLinkInvoice2TrafficGet() |
|
|
|
.then((response) => { |
|
|
|
.then((response) => { |
|
|
@ -82,30 +66,9 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* const downloadExcel = (id: number) => { |
|
|
|
|
|
|
|
DSAmazon.SePuedeTerminardeClasificarFactura(id) |
|
|
|
|
|
|
|
.then((response) => {}) |
|
|
|
|
|
|
|
.catch((e: Error) => {}) |
|
|
|
|
|
|
|
DSAmazon.NoPartesAmazon2SIRGET(id) |
|
|
|
|
|
|
|
.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.xlsx') |
|
|
|
|
|
|
|
document.body.appendChild(link) |
|
|
|
|
|
|
|
link.click() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.catch((e: Error) => { |
|
|
|
|
|
|
|
setHeader('Error') |
|
|
|
|
|
|
|
setMsg('Ocurrio un error') |
|
|
|
|
|
|
|
setShowMsg(true) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
const downloadPDF = (id: number) => { |
|
|
|
const downloadPDF = (id: number) => { |
|
|
|
|
|
|
|
setWaitingDialog(true) |
|
|
|
|
|
|
|
setWaitingMessage(' archivo PDF ') |
|
|
|
DSAmazon.PDFAmazonInvoiceGET(id) |
|
|
|
DSAmazon.PDFAmazonInvoiceGET(id) |
|
|
|
.then((response: any) => { |
|
|
|
.then((response: any) => { |
|
|
|
if (response.status === 200) { |
|
|
|
if (response.status === 200) { |
|
|
@ -115,7 +78,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
link.setAttribute('download', 'AmazonInvoice.pdf') |
|
|
|
link.setAttribute('download', 'AmazonInvoice.pdf') |
|
|
|
document.body.appendChild(link) |
|
|
|
document.body.appendChild(link) |
|
|
|
link.click() |
|
|
|
link.click() |
|
|
|
loadReport() |
|
|
|
setWaitingDialog(false) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((e: Error) => { |
|
|
|
.catch((e: Error) => { |
|
|
@ -127,13 +90,14 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const downloadExcelInvoices = (Referencia: string) => { |
|
|
|
const downloadExcelInvoices = (Referencia: string) => { |
|
|
|
|
|
|
|
setWaitingMessage(' archivo Excel ') |
|
|
|
DSAmazon.GETExcelInvoicesLinkByReference(Referencia) |
|
|
|
DSAmazon.GETExcelInvoicesLinkByReference(Referencia) |
|
|
|
.then((response: any) => { |
|
|
|
.then((response: any) => { |
|
|
|
if (response.status === 200) { |
|
|
|
if (response.status === 200) { |
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
const link = document.createElement('a') |
|
|
|
const link = document.createElement('a') |
|
|
|
link.href = url |
|
|
|
link.href = url |
|
|
|
link.setAttribute('download', 'FACTURAS_MODIFICA.xlsx') |
|
|
|
link.setAttribute('download', Referencia+'_FACTURAS_MODIFICA.xlsx') |
|
|
|
document.body.appendChild(link) |
|
|
|
document.body.appendChild(link) |
|
|
|
link.click() |
|
|
|
link.click() |
|
|
|
loadReport() |
|
|
|
loadReport() |
|
|
@ -148,13 +112,14 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const downloadExcelPartidas = (Referencia: string) => { |
|
|
|
const downloadExcelPartidas = (Referencia: string) => { |
|
|
|
|
|
|
|
setWaitingMessage(' archivo Excel ') |
|
|
|
DSAmazon.GETAmazonExcelByReference(Referencia) |
|
|
|
DSAmazon.GETAmazonExcelByReference(Referencia) |
|
|
|
.then((response: any) => { |
|
|
|
.then((response: any) => { |
|
|
|
if (response.status === 200) { |
|
|
|
if (response.status === 200) { |
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
const url = window.URL.createObjectURL(new Blob([response.data])) |
|
|
|
const link = document.createElement('a') |
|
|
|
const link = document.createElement('a') |
|
|
|
link.href = url |
|
|
|
link.href = url |
|
|
|
link.setAttribute('download', 'PARTIDAS_MODIFICA.xlsx') |
|
|
|
link.setAttribute('download', Referencia+'_PARTIDAS_MODIFICA.xlsx') |
|
|
|
document.body.appendChild(link) |
|
|
|
document.body.appendChild(link) |
|
|
|
link.click() |
|
|
|
link.click() |
|
|
|
loadReport() |
|
|
|
loadReport() |
|
|
@ -190,7 +155,6 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
}) |
|
|
|
}) |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('Invoices=' + Invoices) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const processInvoices = () => { |
|
|
|
const processInvoices = () => { |
|
|
@ -202,12 +166,10 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
setShowMsg(true) |
|
|
|
setShowMsg(true) |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
//alert(Invoices)
|
|
|
|
|
|
|
|
setShowModal(true) |
|
|
|
setShowModal(true) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const asociaFacturasReferencia = () => { |
|
|
|
const asociaFacturasReferencia = () => { |
|
|
|
// alert(Invoices)
|
|
|
|
|
|
|
|
const data : DTO2096LinkInvoice2Reference = { |
|
|
|
const data : DTO2096LinkInvoice2Reference = { |
|
|
|
referencia: Referencia, |
|
|
|
referencia: Referencia, |
|
|
|
facturas : Invoices
|
|
|
|
facturas : Invoices
|
|
|
@ -227,9 +189,6 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const openLink = (item: string) => { |
|
|
|
|
|
|
|
window.open('https://www.amazon.com/dp/' + item) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<Card> |
|
|
|
<Card> |
|
|
@ -339,7 +298,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
</IconContext.Provider> |
|
|
|
</IconContext.Provider> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td style={{ width: '50px', textAlign: 'center' }}> |
|
|
|
<td style={{ width: '50px', textAlign: 'center', visibility: MasterData.referencia ? 'visible' : 'hidden'}}> |
|
|
|
<div onClick={() => {downloadExcelInvoices(MasterData.referencia)}}> |
|
|
|
<div onClick={() => {downloadExcelInvoices(MasterData.referencia)}}> |
|
|
|
<IconContext.Provider |
|
|
|
<IconContext.Provider |
|
|
|
value={{ color: 'green', size: '20px' }} |
|
|
|
value={{ color: 'green', size: '20px' }} |
|
|
@ -348,7 +307,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
</IconContext.Provider> |
|
|
|
</IconContext.Provider> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td style={{ width: '50px', textAlign: 'center' }}> |
|
|
|
<td style={{ width: '50px', textAlign: 'center', visibility: MasterData.referencia ? 'visible' : 'hidden'}}> |
|
|
|
<div onClick={() => {downloadExcelPartidas(MasterData.referencia)}}> |
|
|
|
<div onClick={() => {downloadExcelPartidas(MasterData.referencia)}}> |
|
|
|
<IconContext.Provider |
|
|
|
<IconContext.Provider |
|
|
|
value={{ color: 'green', size: '20px' }} |
|
|
|
value={{ color: 'green', size: '20px' }} |
|
|
@ -446,15 +405,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
> |
|
|
|
> |
|
|
|
Item Description |
|
|
|
Item Description |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
width: '120px', |
|
|
|
|
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
|
|
|
|
color: '#346288' |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Pedimento Description |
|
|
|
|
|
|
|
</th> |
|
|
|
|
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
width: '120px', |
|
|
|
width: '120px', |
|
|
@ -463,65 +414,54 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
textAlign: 'center' |
|
|
|
textAlign: 'center' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Destination HTS Code |
|
|
|
Fraccion GEMCO |
|
|
|
</th> |
|
|
|
|
|
|
|
<th |
|
|
|
|
|
|
|
style={{ |
|
|
|
|
|
|
|
width: '120px', |
|
|
|
|
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
|
|
|
|
color: '#346288' |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Valida |
|
|
|
|
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
width: '120px', |
|
|
|
width: '70px', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
color: '#346288' |
|
|
|
color: '#346288', |
|
|
|
|
|
|
|
textAlign: 'center' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Confirme fraccion |
|
|
|
Descripcion GEMCO |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
width: '120px', |
|
|
|
width: '70px', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
color: '#346288', |
|
|
|
color: '#346288', |
|
|
|
textAlign: 'center' |
|
|
|
textAlign: 'center' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Fraccion GEMCO |
|
|
|
Country of Origin |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
width: '120px', |
|
|
|
width: '70px', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
color: '#346288', |
|
|
|
color: '#346288' |
|
|
|
textAlign: 'center' |
|
|
|
|
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Confirme descripcion |
|
|
|
ProductGroup |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
width: '70px', |
|
|
|
width: '70px', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
color: '#346288', |
|
|
|
color: '#346288' |
|
|
|
textAlign: 'center' |
|
|
|
|
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Descripcion GEMCO |
|
|
|
Brand |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
width: '70px', |
|
|
|
width: '70px', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
backgroundColor: '#D3E0EA', |
|
|
|
color: '#346288', |
|
|
|
color: '#346288' |
|
|
|
textAlign: 'center' |
|
|
|
|
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Country of Origin |
|
|
|
Model |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -530,7 +470,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
ProductGroup |
|
|
|
Unit Measure |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -539,7 +479,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Brand |
|
|
|
Qty Shipped |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -548,7 +488,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Model |
|
|
|
Unit of measure |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -557,7 +497,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Unit Measure |
|
|
|
Unit Net Weight |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -566,7 +506,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Qty Shipped |
|
|
|
Unit Cost |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -575,7 +515,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Unit of measure |
|
|
|
Total value |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -584,7 +524,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Unit Net Weight |
|
|
|
Sideline |
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -593,7 +533,6 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Unit Cost |
|
|
|
|
|
|
|
</th> |
|
|
|
</th> |
|
|
|
<th |
|
|
|
<th |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
@ -602,7 +541,6 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
color: '#346288' |
|
|
|
color: '#346288' |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
Total value |
|
|
|
|
|
|
|
</th> |
|
|
|
</th> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
</thead> |
|
|
@ -618,7 +556,7 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
) |
|
|
|
) |
|
|
|
.map((detail) => { |
|
|
|
.map((detail) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<RptAmazonInvoiceTrafficDetail |
|
|
|
<RptAmazonLinkInvoice2TrafficDetail |
|
|
|
IDMaster={MasterData.id} |
|
|
|
IDMaster={MasterData.id} |
|
|
|
detail={detail} |
|
|
|
detail={detail} |
|
|
|
Habilitado={ |
|
|
|
Habilitado={ |
|
|
@ -690,6 +628,26 @@ export function RptAmazonLinkInvoice2Traffic( |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Modal.Body> |
|
|
|
</Modal.Body> |
|
|
|
</Modal> |
|
|
|
</Modal> |
|
|
|
|
|
|
|
<Modal |
|
|
|
|
|
|
|
show={WaitingDialog} |
|
|
|
|
|
|
|
onHide={() => { |
|
|
|
|
|
|
|
setWaitingDialog(false) |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
backdrop='static' |
|
|
|
|
|
|
|
keyboard={false} |
|
|
|
|
|
|
|
size='sm' |
|
|
|
|
|
|
|
dialogClassName={'modal-50w'} |
|
|
|
|
|
|
|
centered |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<Modal.Header closeButton> |
|
|
|
|
|
|
|
<Modal.Title></Modal.Title> |
|
|
|
|
|
|
|
</Modal.Header> |
|
|
|
|
|
|
|
<Modal.Body> |
|
|
|
|
|
|
|
<img src={loadingImg} style={{ height: '150px' }} alt='proccessing' /> |
|
|
|
|
|
|
|
Generando {WaitingMessage}... |
|
|
|
|
|
|
|
</Modal.Body> |
|
|
|
|
|
|
|
<Modal.Footer></Modal.Footer> |
|
|
|
|
|
|
|
</Modal> |
|
|
|
<MsgInformativo |
|
|
|
<MsgInformativo |
|
|
|
show={show} |
|
|
|
show={show} |
|
|
|
msg={msg} |
|
|
|
msg={msg} |
|
|
|