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:
Deepesh Garg
2023-09-27 11:18:29 +05:30
committed by GitHub

View File

@@ -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,
)