mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
Merge pull request #29428 from deepeshgarg007/shipping_rule_apply
fix: Add shipping charges to taxes only if applicable
This commit is contained in:
@@ -71,6 +71,7 @@ class ShippingRule(Document):
|
|||||||
if doc.currency != doc.company_currency:
|
if doc.currency != doc.company_currency:
|
||||||
shipping_amount = flt(shipping_amount / doc.conversion_rate, 2)
|
shipping_amount = flt(shipping_amount / doc.conversion_rate, 2)
|
||||||
|
|
||||||
|
if shipping_amount:
|
||||||
self.add_shipping_rule_to_tax_table(doc, shipping_amount)
|
self.add_shipping_rule_to_tax_table(doc, shipping_amount)
|
||||||
|
|
||||||
def get_shipping_amount_from_rules(self, value):
|
def get_shipping_amount_from_rules(self, value):
|
||||||
|
|||||||
Reference in New Issue
Block a user