[Fix] Asset adjustment issues

This commit is contained in:
Rohit Waghchaure
2018-05-17 11:18:34 +05:30
parent de6ce587d0
commit 992fb34c95
6 changed files with 136 additions and 15 deletions

View File

@@ -635,8 +635,8 @@ class AccountsController(TransactionBase):
frappe.throw(_("Row #{0}: Asset {1} does not linked to Item {2}")
.format(d.idx, d.asset, d.item_code))
elif asset.docstatus != 1:
frappe.throw(_("Row #{0}: Asset {1} must be submitted").format(d.idx, d.asset))
# elif asset.docstatus != 1:
# frappe.throw(_("Row #{0}: Asset {1} must be submitted").format(d.idx, d.asset))
elif self.doctype == "Purchase Invoice":
# if asset.status != "Submitted":