mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
[minor] [fix]
This commit is contained in:
@@ -76,7 +76,8 @@ class TransactionBase(StatusUpdater):
|
||||
|
||||
# fields prepended with default in Customer doctype
|
||||
for f in ['sales_partner', 'commission_rate', 'currency', 'price_list']:
|
||||
out[f] = customer.fields.get("default_" + f)
|
||||
if customer.fields.get("default_" + f):
|
||||
out[f] = customer.fields.get("default_" + f)
|
||||
|
||||
return out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user