Skip to content

Commit

Permalink
fix: Purchase Order creation from Sales Order
Browse files Browse the repository at this point in the history
(cherry picked from commit bd4b4dd)
  • Loading branch information
Solufyin authored and mergify[bot] committed Aug 26, 2022
1 parent 4d8ced6 commit 39ff0cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ def set_missing_values(source, target):
target.additional_discount_percentage = 0.0
target.discount_amount = 0.0
target.inter_company_order_reference = ""
target.shipping_rule = ""

default_price_list = frappe.get_value("Supplier", supplier, "default_price_list")
if default_price_list:
Expand Down Expand Up @@ -1010,6 +1011,7 @@ def set_missing_values(source, target):
target.additional_discount_percentage = 0.0
target.discount_amount = 0.0
target.inter_company_order_reference = ""
target.shipping_rule = ""
target.customer = ""
target.customer_name = ""
target.run_method("set_missing_values")
Expand Down

0 comments on commit 39ff0cc

Please sign in to comment.