fix: Customer based price_list in online POS

This commit is contained in:
deepeshgarg007
2019-01-25 16:41:01 +05:30
parent f74e28bc64
commit 49cca7ac76
2 changed files with 10 additions and 3 deletions

View File

@@ -477,7 +477,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
var me = this;
var item = frappe.get_doc(cdt, cdn);
if (item.serial_no) {
if (item && item.serial_no) {
if (!item.item_code) {
this.frm.trigger("item_code", cdt, cdn);
}