mirror of
https://github.com/inventree/InvenTree.git
synced 2025-11-14 03:46:44 +00:00
[PUI] Build allocation sub tables (#8380)
* Add helpers methods for table row expansion * Render a simplified "line item sub table" - Akin to CUI implementation - But like, better... * Edit / delete individual stock allocations * Improvements for BuildLineTable and BuildOutputTable * Improvements for table fields * Refactoring * Refactor BuildLineTable - Calculate and cache filtered allocation values * Code cleanup * Further fixes and features * Revert new serializer field - Turns out not to be needed * Add playwright tests * Bug fix for CUI tables - Ensure allocations are correctly filtered by output ID * Adjust CUI table
This commit is contained in:
@@ -161,8 +161,11 @@ export default function BuildAllocatedStockTable({
|
||||
const editItem = useEditApiFormModal({
|
||||
pk: selectedItem,
|
||||
url: ApiEndpoints.build_item_list,
|
||||
title: t`Edit Build Item`,
|
||||
title: t`Edit Stock Allocation`,
|
||||
fields: {
|
||||
stock_item: {
|
||||
disabled: true
|
||||
},
|
||||
quantity: {}
|
||||
},
|
||||
table: table
|
||||
@@ -171,7 +174,7 @@ export default function BuildAllocatedStockTable({
|
||||
const deleteItem = useDeleteApiFormModal({
|
||||
pk: selectedItem,
|
||||
url: ApiEndpoints.build_item_list,
|
||||
title: t`Delete Build Item`,
|
||||
title: t`Delete Stock Allocation`,
|
||||
table: table
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user