mirror of
https://github.com/inventree/InvenTree.git
synced 2025-11-13 11:26:42 +00:00
- Closes https://github.com/inventree/InvenTree/issues/10700
(cherry picked from commit c7593d983f)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1e6630317c
commit
485e4ae178
@@ -636,14 +636,14 @@ export default function BuildLineTable({
|
||||
},
|
||||
quantity: {}
|
||||
},
|
||||
table: table
|
||||
onFormSuccess: table.refreshTable
|
||||
});
|
||||
|
||||
const deleteAllocation = useDeleteApiFormModal({
|
||||
url: ApiEndpoints.build_item_list,
|
||||
pk: selectedAllocation,
|
||||
title: t`Delete Stock Allocation`,
|
||||
table: table
|
||||
onFormSuccess: table.refreshTable
|
||||
});
|
||||
|
||||
const [partsToOrder, setPartsToOrder] = useState<any[]>([]);
|
||||
@@ -870,6 +870,8 @@ export default function BuildLineTable({
|
||||
*/
|
||||
const formatRecords = useCallback(
|
||||
(records: any[]): any[] => {
|
||||
console.log('format records:', records);
|
||||
|
||||
return records.map((record) => {
|
||||
let allocations = [...record.allocations];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user