mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 22:12:12 +00:00
fix: Cannot read properties of undefined (reading 'price_list_rate') (#43376)
(cherry picked from commit a63dca0984)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -1102,7 +1102,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
|
|
||||||
apply_discount_on_item(doc, cdt, cdn, field) {
|
apply_discount_on_item(doc, cdt, cdn, field) {
|
||||||
var item = frappe.get_doc(cdt, cdn);
|
var item = frappe.get_doc(cdt, cdn);
|
||||||
if(!item.price_list_rate) {
|
if(!item?.price_list_rate) {
|
||||||
item[field] = 0.0;
|
item[field] = 0.0;
|
||||||
} else {
|
} else {
|
||||||
this.price_list_rate(doc, cdt, cdn);
|
this.price_list_rate(doc, cdt, cdn);
|
||||||
|
|||||||
Reference in New Issue
Block a user