Skip to content

Commit

Permalink
fix: add default price list
Browse files Browse the repository at this point in the history
  • Loading branch information
HenningWendtland committed Sep 16, 2024
1 parent 01689c2 commit 0c477ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def current_rate(self):
fetch_payment_terms_template=False,
)

price_list = party_details.selling_price_list or frappe.db.get_value(
price_list = party_details.selling_price_list or frappe.db.get_single_value(
"Selling Settings", "selling_price_list") or frappe.db.get_value(
"Price List", {"selling": 1, "currency": currency, "enabled": 1}
)

Expand Down

0 comments on commit 0c477ae

Please sign in to comment.