Merge branch 'master' into staging-fixes

This commit is contained in:
Sagar Vora
2019-01-29 17:20:46 +05:30
25 changed files with 2560 additions and 2667 deletions

View File

@@ -264,6 +264,9 @@ class AccountsController(TransactionBase):
if item_qty != len(get_serial_nos(item.get('serial_no'))):
item.set(fieldname, value)
if self.doctype in ["Purchase Invoice", "Sales Invoice"] and item.meta.get_field('is_fixed_asset'):
item.set('is_fixed_asset', ret.get('is_fixed_asset', 0))
if ret.get("pricing_rule"):
# if user changed the discount percentage then set user's discount percentage ?
item.set("pricing_rule", ret.get("pricing_rule"))