fixes for purchase price list
This commit is contained in:
parent
ba0e1ea194
commit
0d20d6fdd2
@ -44,9 +44,12 @@ erpnext.buying.PurchaseInvoiceController = erpnext.buying.BuyingController.exten
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: improve this
|
// TODO: improve this
|
||||||
if(this.frm.doc.__islocal && this.frm.fields_dict.price_list_name
|
if(this.frm.doc.__islocal) {
|
||||||
&& this.frm.doc.price_list_name) {
|
if (this.frm.fields_dict.price_list_name && this.frm.doc.price_list_name) {
|
||||||
this.price_list_name(callback1);
|
this.price_list_name(callback1);
|
||||||
|
} else {
|
||||||
|
callback1(doc, dt, dn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -50,9 +50,12 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: improve this
|
// TODO: improve this
|
||||||
if(this.frm.doc.__islocal && this.frm.fields_dict.price_list_name
|
if(this.frm.doc.__islocal) {
|
||||||
&& this.frm.doc.price_list_name) {
|
if (this.frm.fields_dict.price_list_name && this.frm.doc.price_list_name) {
|
||||||
this.price_list_name(callback1);
|
this.price_list_name(callback1);
|
||||||
|
} else {
|
||||||
|
callback1(doc, dt, dn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -40,9 +40,12 @@ erpnext.buying.SupplierQuotationController = erpnext.buying.BuyingController.ext
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: improve this
|
// TODO: improve this
|
||||||
if(this.frm.doc.__islocal && this.frm.fields_dict.price_list_name
|
if(this.frm.doc.__islocal) {
|
||||||
&& this.frm.doc.price_list_name) {
|
if (this.frm.fields_dict.price_list_name && this.frm.doc.price_list_name) {
|
||||||
this.price_list_name(callback);
|
this.price_list_name(callback);
|
||||||
|
} else {
|
||||||
|
callback(doc, dt, dn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -45,9 +45,11 @@ erpnext.buying.PurchaseReceiptController = erpnext.buying.BuyingController.exten
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: improve this
|
// TODO: improve this
|
||||||
if(this.frm.doc.__islocal && this.frm.fields_dict.price_list_name
|
if(this.frm.doc.__islocal) {
|
||||||
&& this.frm.doc.price_list_name) {
|
if (this.frm.fields_dict.price_list_name && this.frm.doc.price_list_name)
|
||||||
this.price_list_name(callback);
|
this.price_list_name(callback);
|
||||||
|
else
|
||||||
|
callback(doc, dt, dn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user