mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-27 22:26:00 +00:00
Add configurable default for PO line item merging (#12472)
* Add configurable default for PO line item merging Introduce PURCHASEORDER_MERGE_LINE_ITEMS global setting to control the default state of the merge_items option when creating purchase order lines. Fixes #10947 * Apply ruff and biome formatting for CI
This commit is contained in:
@@ -220,7 +220,9 @@ export function usePurchaseOrderLineItemFields({
|
||||
}
|
||||
|
||||
if (create) {
|
||||
fields['merge_items'] = {};
|
||||
fields['merge_items'] = {
|
||||
default: globalSettings.isSet('PURCHASEORDER_MERGE_LINE_ITEMS', true)
|
||||
};
|
||||
}
|
||||
|
||||
return fields;
|
||||
|
||||
Reference in New Issue
Block a user