fix: Linting Issues

This commit is contained in:
Deepesh Garg 2020-12-17 12:19:58 +05:30
parent d6cd02d29d
commit 6f99c0850c
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ frappe.ui.form.on('Landed Cost Voucher', {
} }
} }
}); });
}; }
}, },
set_base_amount: function(frm, cdt, cdn) { set_base_amount: function(frm, cdt, cdn) {

View File

@ -193,8 +193,8 @@ class LandedCostVoucher(Document):
docs = frappe.db.get_all('Asset', filters={ receipt_document_type: item.receipt_document, docs = frappe.db.get_all('Asset', filters={ receipt_document_type: item.receipt_document,
'item_code': item.item_code }, fields=['name', 'docstatus']) 'item_code': item.item_code }, fields=['name', 'docstatus'])
if not docs or len(docs) != item.qty: if not docs or len(docs) != item.qty:
frappe.throw(_('There are not enough asset created or linked to {0}. \ frappe.throw(_('There are not enough asset created or linked to {0}. Please create or link {1} Assets with respective document.').format(
Please create or link {1} Assets with respective document.').format(item.receipt_document, item.qty)) item.receipt_document, item.qty))
if docs: if docs:
for d in docs: for d in docs:
if d.docstatus == 1: if d.docstatus == 1: