|
|
|
@ -161,6 +161,13 @@ export default function RptAmazonFinishedClasificationInvoices( |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function getReceiver(Cadena: string, char1: string[1], char2: string[1]) { |
|
|
|
|
return Cadena.slice( |
|
|
|
|
Cadena.indexOf(char1) + 1, |
|
|
|
|
Cadena.lastIndexOf(char2), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div> |
|
|
|
|
<Card> |
|
|
|
@ -195,6 +202,7 @@ export default function RptAmazonFinishedClasificationInvoices( |
|
|
|
|
<th style={{ width: '50px' }}></th> |
|
|
|
|
<th style={{ width: '80px' }}>Commercial Invoice Date</th> |
|
|
|
|
<th style={{ width: '300px' }}>Invoice Number</th> |
|
|
|
|
<th style={{ width: '80px' }}>Receiver</th> |
|
|
|
|
<th style={{ width: '100px' }}>Incoterms</th> |
|
|
|
|
<th style={{ textAlign: 'center' }}>HAWB</th> |
|
|
|
|
<th>Qty Unit of measure</th> |
|
|
|
@ -300,6 +308,13 @@ export default function RptAmazonFinishedClasificationInvoices( |
|
|
|
|
<td style={{ width: '300px' }}> |
|
|
|
|
{MasterData.invoiceNumber} |
|
|
|
|
</td> |
|
|
|
|
<td style={{ width: '80px', textAlign:'center' }}> |
|
|
|
|
{mInvoices |
|
|
|
|
.filter((value) => value.id === MasterData.id) |
|
|
|
|
.map((row) => { |
|
|
|
|
return getReceiver(row.detail[0].amazonShipmentReferenceId,'_','_') |
|
|
|
|
})} |
|
|
|
|
</td> |
|
|
|
|
<td style={{ width: '100px', textAlign: 'center' }}> |
|
|
|
|
{MasterData.incoterms} |
|
|
|
|
</td> |
|
|
|
|