[fix] fetch price list rate
This commit is contained in:
parent
f69b79fd16
commit
39a289145c
@ -280,7 +280,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
var party_type = "Supplier";
|
||||
var party_account_field = 'credit_to';
|
||||
}
|
||||
|
||||
|
||||
var party = me.frm.doc[frappe.model.scrub(party_type)];
|
||||
if(party) {
|
||||
return frappe.call({
|
||||
@ -643,7 +643,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
"item_code": d.item_code,
|
||||
"item_group": d.item_group,
|
||||
"brand": d.brand,
|
||||
"qty": d.qty
|
||||
"qty": d.qty,
|
||||
"parenttype": d.parenttype,
|
||||
"parent": d.parent
|
||||
});
|
||||
}
|
||||
};
|
||||
|
@ -196,7 +196,7 @@ def get_default_cost_center(args, item):
|
||||
or args.get("cost_center"))
|
||||
|
||||
def get_price_list_rate(args, item_doc, out):
|
||||
meta = frappe.get_meta(args.doctype)
|
||||
meta = frappe.get_meta(args.parenttype or args.doctype)
|
||||
|
||||
if meta.get_field("currency"):
|
||||
validate_price_list(args)
|
||||
|
Loading…
Reference in New Issue
Block a user