fix: map warehouses in return SCR
This commit is contained in:
parent
096a2c8cd0
commit
874766a82f
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user