mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix: map warehouses in return SCR
This commit is contained in:
@@ -391,7 +391,10 @@ def make_return_doc(
|
|||||||
if doc.get("discount_amount"):
|
if doc.get("discount_amount"):
|
||||||
doc.discount_amount = -1 * source.discount_amount
|
doc.discount_amount = -1 * source.discount_amount
|
||||||
|
|
||||||
if doctype != "Subcontracting Receipt":
|
if doctype == "Subcontracting Receipt":
|
||||||
|
doc.set_warehouse = source.set_warehouse
|
||||||
|
doc.supplier_warehouse = source.supplier_warehouse
|
||||||
|
else:
|
||||||
doc.run_method("calculate_taxes_and_totals")
|
doc.run_method("calculate_taxes_and_totals")
|
||||||
|
|
||||||
def update_item(source_doc, target_doc, source_parent):
|
def update_item(source_doc, target_doc, source_parent):
|
||||||
|
|||||||
Reference in New Issue
Block a user