fixes for purchase price list

This commit is contained in:
Nabin Hait
2013-03-04 15:35:45 +05:30
parent ba0e1ea194
commit 0d20d6fdd2
4 changed files with 23 additions and 12 deletions

View File

@@ -45,9 +45,11 @@ erpnext.buying.PurchaseReceiptController = erpnext.buying.BuyingController.exten
}
// TODO: improve this
if(this.frm.doc.__islocal && this.frm.fields_dict.price_list_name
&& this.frm.doc.price_list_name) {
this.price_list_name(callback);
if(this.frm.doc.__islocal) {
if (this.frm.fields_dict.price_list_name && this.frm.doc.price_list_name)
this.price_list_name(callback);
else
callback(doc, dt, dn);
}
}
});