mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 18:45:20 +00:00
listview indicator fix
This commit is contained in:
@@ -52,8 +52,8 @@ class AccountsController(TransactionBase):
|
||||
break
|
||||
|
||||
def calculate_taxes_and_totals(self):
|
||||
from erpnext.controllers.taxes_and_totals import taxes_and_totals
|
||||
taxes_and_totals(self).calculate()
|
||||
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"]:
|
||||
self.calculate_commission()
|
||||
|
||||
@@ -8,10 +8,12 @@ from frappe.utils import cint, flt, rounded
|
||||
from erpnext.setup.utils import get_company_currency
|
||||
from erpnext.controllers.accounts_controller import validate_conversion_rate
|
||||
|
||||
class taxes_and_totals(object):
|
||||
class calculate_taxes_and_totals(object):
|
||||
def __init__(self, doc):
|
||||
self.doc = doc
|
||||
|
||||
self.calculate()
|
||||
|
||||
def calculate(self):
|
||||
self.discount_amount_applied = False
|
||||
self._calculate()
|
||||
|
||||
Reference in New Issue
Block a user