Fixes for uom in get_item_details

This commit is contained in:
Nabin Hait
2017-09-29 18:14:10 +05:30
parent e292c83114
commit 79a1d2a3b0
2 changed files with 10 additions and 4 deletions

View File

@@ -187,9 +187,6 @@ class AccountsController(TransactionBase):
if stock_qty != len(get_serial_nos(item.get('serial_no'))):
item.set(fieldname, value)
elif fieldname == "conversion_factor" and not item.get("conversion_factor"):
item.set(fieldname, value)
if ret.get("pricing_rule"):
# if user changed the discount percentage then set user's discount percentage ?
item.set("discount_percentage", ret.get("discount_percentage"))