From ff8a854b820c399abd379d77f4cb9041b1d75440 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 26 May 2015 18:06:09 -0400 Subject: [PATCH] Fixes #3349. Thanks @abelbm for reporting. --- erpnext/controllers/selling_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index 2dde68504cf..9a2da9620cc 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -85,9 +85,9 @@ class SellingController(StockController): existing_shipping_charge = self.get("taxes", filters=shipping_charge) if existing_shipping_charge: # take the last record found - existing_shipping_charge[-1].rate = shipping_amount + existing_shipping_charge[-1].tax_amount = shipping_amount else: - shipping_charge["rate"] = shipping_amount + shipping_charge["tax_amount"] = shipping_amount shipping_charge["description"] = shipping_rule.label self.append("taxes", shipping_charge)