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:
Senior Data Engineer
2026-07-27 11:10:11 +10:00
committed by GitHub
parent b5abf47115
commit e43390badb
8 changed files with 71 additions and 4 deletions
@@ -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;