Skip to content

Commit

Permalink
fix: set customer currency in pos_invoice if exists
Browse files Browse the repository at this point in the history
if currency exists in the profile and customer currency doesn't exists still it will update currency to None, so update customer currency only if exists

(cherry picked from commit 041d52e)
  • Loading branch information
milanpethani authored and mergify[bot] committed Sep 24, 2023
1 parent d3c9a6d commit e0da8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/pos_invoice/pos_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def set_pos_fields(self, for_validate=False):
selling_price_list = (
customer_price_list or customer_group_price_list or profile.get("selling_price_list")
)
if customer_currency != profile.get("currency"):
if customer_currency and customer_currency != profile.get("currency"):
self.set("currency", customer_currency)

else:
Expand Down

0 comments on commit e0da8d2

Please sign in to comment.