mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-27 00:26:03 +00:00
fix: calling shipping rule method during net_total calculation in taxes_adn_totals.py
This commit is contained in:
@@ -259,6 +259,10 @@ class calculate_taxes_and_totals(object):
|
||||
|
||||
self.doc.round_floats_in(self.doc, ["total", "base_total", "net_total", "base_net_total"])
|
||||
|
||||
if hasattr(self.doc, "shipping_rule"):
|
||||
shipping_rule = frappe.get_doc("Shipping Rule", self.doc.shipping_rule)
|
||||
shipping_rule.apply(self.doc)
|
||||
|
||||
def calculate_taxes(self):
|
||||
self.doc.rounding_adjustment = 0
|
||||
# maintain actual tax rate based on idx
|
||||
|
||||
Reference in New Issue
Block a user