mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
[fix] fetch price list rate
This commit is contained in:
@@ -643,7 +643,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
"item_code": d.item_code,
|
"item_code": d.item_code,
|
||||||
"item_group": d.item_group,
|
"item_group": d.item_group,
|
||||||
"brand": d.brand,
|
"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"))
|
or args.get("cost_center"))
|
||||||
|
|
||||||
def get_price_list_rate(args, item_doc, out):
|
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"):
|
if meta.get_field("currency"):
|
||||||
validate_price_list(args)
|
validate_price_list(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user