mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
Fixes #3349. Thanks @abelbm for reporting.
This commit is contained in:
@@ -85,9 +85,9 @@ class SellingController(StockController):
|
|||||||
existing_shipping_charge = self.get("taxes", filters=shipping_charge)
|
existing_shipping_charge = self.get("taxes", filters=shipping_charge)
|
||||||
if existing_shipping_charge:
|
if existing_shipping_charge:
|
||||||
# take the last record found
|
# take the last record found
|
||||||
existing_shipping_charge[-1].rate = shipping_amount
|
existing_shipping_charge[-1].tax_amount = shipping_amount
|
||||||
else:
|
else:
|
||||||
shipping_charge["rate"] = shipping_amount
|
shipping_charge["tax_amount"] = shipping_amount
|
||||||
shipping_charge["description"] = shipping_rule.label
|
shipping_charge["description"] = shipping_rule.label
|
||||||
self.append("taxes", shipping_charge)
|
self.append("taxes", shipping_charge)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user