Parcourir la source

update

master
cyril.tsui il y a 6 jours
Parent
révision
6fdb5574a8
4 fichiers modifiés avec 15 ajouts et 5 suppressions
  1. +4
    -1
      src/components/PoDetail/PoDetail.tsx
  2. +1
    -1
      src/i18n/zh/common.json
  3. +2
    -2
      src/i18n/zh/inventory.json
  4. +8
    -1
      src/theme/devias-material-kit/components.ts

+ 4
- 1
src/components/PoDetail/PoDetail.tsx Voir le fichier

@@ -447,6 +447,8 @@ const PoDetail: React.FC<Props> = ({ po, qc, warehouse }) => {
}
// setPolInputList(() => temp)
}, 300), [rowIndex]);

const purchaseToStockRatio = (row.stockUom.purchaseRatioN ?? 1) / (row.stockUom.purchaseRatioD ?? 1) * (row.stockUom.stockRatioD ?? 1) / (row.stockUom.stockRatioN ?? 1)
return (
<>
<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(processedQty)}</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="right">
{decimalFormatter.format(totalWeight)} {weightUnit}


+ 1
- 1
src/i18n/zh/common.json Voir le fichier

@@ -40,7 +40,7 @@
"non-consumables": "非消耗品",
"fg": "成品",
"sfg": "半成品",
"item": "品",
"item": "品",
"FG":"成品",
"FG & Material Demand Forecast Detail":"成品及材料需求預測詳情",
"View item In-out And inventory Ledger":"查看物料出入庫及庫存日誌",


+ 2
- 2
src/i18n/zh/inventory.json Voir le fichier

@@ -15,6 +15,6 @@
"Base UoM": "基本單位",
"Lot No": "批號",
"Expiry Date": "到期日",
"No items are selected yet.": "未選擇項目",
"Item selected": "已選擇項目"
"No items are selected yet.": "未選擇貨品",
"Item selected": "已選擇貨品"
}

+ 8
- 1
src/theme/devias-material-kit/components.ts Voir le fichier

@@ -314,7 +314,7 @@ const components: ThemeOptions["components"] = {
styleOverrides: {
root: {
borderBottomColor: palette.divider,
padding: "1px 6px",
padding: "10px 6px",
fontSize: defaultFontSize - 2,
// padding: "15px 16px",
// lineHeight: 1.5,
@@ -342,6 +342,13 @@ const components: ThemeOptions["components"] = {
},
},
},
// MuiTableFooter: {
// styleOverrides: {
// root: {
// padding: "1px 6px",
// },
// },
// },
MuiTextField: {
defaultProps: {
variant: "filled",


Chargement…
Annuler
Enregistrer