|
@@ -447,6 +447,8 @@ const PoDetail: React.FC<Props> = ({ po, qc, warehouse }) => { |
|
|
} |
|
|
} |
|
|
// setPolInputList(() => temp) |
|
|
// setPolInputList(() => temp) |
|
|
}, 300), [rowIndex]); |
|
|
}, 300), [rowIndex]); |
|
|
|
|
|
|
|
|
|
|
|
const purchaseToStockRatio = (row.stockUom.purchaseRatioN ?? 1) / (row.stockUom.purchaseRatioD ?? 1) * (row.stockUom.stockRatioD ?? 1) / (row.stockUom.stockRatioN ?? 1) |
|
|
return ( |
|
|
return ( |
|
|
<> |
|
|
<> |
|
|
<TableRow |
|
|
<TableRow |
|
@@ -477,7 +479,8 @@ const PoDetail: React.FC<Props> = ({ po, qc, warehouse }) => { |
|
|
<TableCell align="right">{integerFormatter.format(row.qty)}</TableCell> |
|
|
<TableCell align="right">{integerFormatter.format(row.qty)}</TableCell> |
|
|
<TableCell align="right">{integerFormatter.format(processedQty)}</TableCell> |
|
|
<TableCell align="right">{integerFormatter.format(processedQty)}</TableCell> |
|
|
<TableCell align="left">{row.uom?.code}</TableCell> |
|
|
<TableCell align="left">{row.uom?.code}</TableCell> |
|
|
<TableCell align="right">{decimalFormatter.format(row.stockUom.stockQty)}</TableCell> |
|
|
|
|
|
|
|
|
{/* <TableCell align="right">{decimalFormatter.format(row.stockUom.stockQty)}</TableCell> */} |
|
|
|
|
|
<TableCell align="right">{decimalFormatter.format(row.stockInLine.filter((sil) => sil.purchaseOrderLineId === row.id).reduce((acc, cur) => acc + (cur.acceptedQty ?? 0),0) * purchaseToStockRatio)}</TableCell> |
|
|
<TableCell align="left">{row.stockUom.stockUomCode}</TableCell> |
|
|
<TableCell align="left">{row.stockUom.stockUomCode}</TableCell> |
|
|
{/* <TableCell align="right"> |
|
|
{/* <TableCell align="right"> |
|
|
{decimalFormatter.format(totalWeight)} {weightUnit} |
|
|
{decimalFormatter.format(totalWeight)} {weightUnit} |
|
|