mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 01:07:19 +00:00
Merge pull request #37263 from frappe/mergify/bp/version-14-hotfix/pr-37234
fix: Use default Cost Center of the Company for additional discount (backport #37234)
This commit is contained in:
@@ -1406,7 +1406,7 @@ class AccountsController(TransactionBase):
|
||||
"account": self.additional_discount_account,
|
||||
"against": supplier_or_customer,
|
||||
dr_or_cr: self.base_discount_amount,
|
||||
"cost_center": self.cost_center,
|
||||
"cost_center": self.cost_center or erpnext.get_default_cost_center(self.company),
|
||||
},
|
||||
item=self,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user