feat: Grant commission on certain items only (#28645)
Co-authored-by: Sagar Vora <sagar@resilient.tech>
(cherry picked from commit e10ab1626c)
This commit is contained in:
@@ -256,7 +256,12 @@ class AccountsController(TransactionBase):
|
||||
from erpnext.controllers.taxes_and_totals import calculate_taxes_and_totals
|
||||
calculate_taxes_and_totals(self)
|
||||
|
||||
if self.doctype in ["Quotation", "Sales Order", "Delivery Note", "Sales Invoice"]:
|
||||
if self.doctype in (
|
||||
'Sales Order',
|
||||
'Delivery Note',
|
||||
'Sales Invoice',
|
||||
'POS Invoice',
|
||||
):
|
||||
self.calculate_commission()
|
||||
self.calculate_contribution()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user