mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-04 00:50:18 +00:00
fix: Add Taxes if missing via Update Items (#23705)
* fix: Add Taxes if missing via Update Items * chore: PO Test for adding tax row via Update Items * chore: SO Test for adding tax row via Update Items
This commit is contained in:
@@ -385,6 +385,11 @@ def get_item_warehouse(item, args, overwrite_warehouse, defaults={}):
|
||||
else:
|
||||
warehouse = args.get('warehouse')
|
||||
|
||||
if not warehouse:
|
||||
default_warehouse = frappe.db.get_single_value("Stock Settings", "default_warehouse")
|
||||
if frappe.db.get_value("Warehouse", default_warehouse, "company") == args.company:
|
||||
return default_warehouse
|
||||
|
||||
return warehouse
|
||||
|
||||
def update_barcode_value(out):
|
||||
|
||||
Reference in New Issue
Block a user