|
@@ -40,6 +40,8 @@ export type FGRecord = { |
|
|
inStockQty: number; |
|
|
inStockQty: number; |
|
|
productionQty?: number; |
|
|
productionQty?: number; |
|
|
purchaseQty?: number; |
|
|
purchaseQty?: number; |
|
|
|
|
|
safetyStock?: number; |
|
|
|
|
|
lastMonthAvgStock?: number |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit }) => { |
|
|
const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit }) => { |
|
@@ -1742,7 +1744,7 @@ const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit }) => { |
|
|
}, |
|
|
}, |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
const updatePagingController = (updatedObj) => { |
|
|
|
|
|
|
|
|
const updatePagingController = (updatedObj: any) => { |
|
|
setPagingController((prevState) => { |
|
|
setPagingController((prevState) => { |
|
|
return prevState.map((item, index) => { |
|
|
return prevState.map((item, index) => { |
|
|
if (index === updatedObj?.index) { |
|
|
if (index === updatedObj?.index) { |
|
@@ -2176,6 +2178,7 @@ const ViewByFGDetails: React.FC<Props> = ({ apiRef, isEdit }) => { |
|
|
{`${t("FG Demand Date")}: ${date}`} |
|
|
{`${t("FG Demand Date")}: ${date}`} |
|
|
</Typography> */} |
|
|
</Typography> */} |
|
|
<EditableSearchResults<FGRecord> |
|
|
<EditableSearchResults<FGRecord> |
|
|
|
|
|
index={1} |
|
|
items={fakeRecords[index]} // Use the corresponding records for the day |
|
|
items={fakeRecords[index]} // Use the corresponding records for the day |
|
|
columns={columns} |
|
|
columns={columns} |
|
|
setPagingController={updatePagingController} |
|
|
setPagingController={updatePagingController} |
|
|