featureBotClasifcacion
alfonso 1 year ago
parent 3f590ac953
commit 118cce6dd3
  1. 2
      package.json
  2. 2
      src/Components/Clientes/Amazon/Components/ComboSelect/ComboFraccion.tsx
  3. 15
      src/Components/Clientes/Amazon/Reportes/Clasification/Finished/RptAmazonFinishedClasificationInvoices.tsx
  4. 10
      src/Components/Clientes/Amazon/Reportes/Clasification/Pending/RptAmazonPendingClasificationInvoices.tsx
  5. 2
      src/Components/Clientes/Amazon/Reportes/Clasification/WaitingAnswerFromAmazon/RptPendingAnswerFromAmazon.tsx

@ -1,6 +1,6 @@
{
"name": "gemco",
"version": "3.0.0",
"version": "3.1.0",
"homepage": ".",
"private": true,
"dependencies": {

@ -209,7 +209,7 @@ export function ComboFraccion(props: IComboFraccionProps) {
<option value="0"> </option>
<option value="1"> = </option>
<option value="2"> != </option>
<option value="5">BOT</option>
{/* <option value="5">BOT</option> */}
</>
) : (
''

@ -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>

@ -313,7 +313,6 @@ export default function RtpAmazonPendingInvoices(
return false
}
if (BOTEnabled) {
// if (!row.max) {
setWaitingMessage('BOT trabajando...')
setWaitingDialog(true)
DSAmazon.ClasificacionBOT(row.id)
@ -335,9 +334,6 @@ export default function RtpAmazonPendingInvoices(
setWaitingDialog(false)
return
})
/* } else {
toggleExpandRow(row)
} */
}
}
@ -356,7 +352,7 @@ export default function RtpAmazonPendingInvoices(
</Col>
<Col xs={3}></Col>
<Col xs={2}>
<Row style={{}}>
{/* <Row>
<Col xs={4} style={{ textAlign: 'right' }}>
<IconContext.Provider
value={{ color: 'green', size: '65px' }}
@ -375,7 +371,7 @@ export default function RtpAmazonPendingInvoices(
}}
/>
</Col>
</Row>
</Row> */}
<Form></Form>
</Col>
<Col xs={2}>
@ -449,7 +445,7 @@ export default function RtpAmazonPendingInvoices(
<th style={{ width: '50px' }}></th>
<th style={{ width: '80px' }}>Commercial Invoice Date</th>
<th style={{ width: '300px' }}>Invoice Number</th>
<th style={{ width: '50px' }}>Name</th>
<th style={{ width: '50px' }}>Receiver</th>
<th style={{ width: '100px' }}>Incoterms</th>
<th style={{ width: '100px' }}>Qty Unit of measure</th>
<th style={{ width: '100px' }}>Tot Qty</th>

@ -305,7 +305,7 @@ export default function RptPendingAnswerFromAmazon(
<th style={{ width: '50px' }}></th>
<th style={{ width: '80px' }}>Commercial Invoice Date</th>
<th style={{ width: '300px' }}>Invoice Number</th>
<th style={{ width: '50px' }}>Name</th>
<th style={{ width: '50px' }}>Receiver</th>
<th style={{ width: '100px' }}>Incoterms</th>
<th style={{ width: '100px' }}>Qty Unit of measure</th>
<th style={{ width: '100px' }}>Tot Qty</th>

Loading…
Cancel
Save