Sales analytics error after upgrade
Hi Team, We were getting errors in sales analytics report after the upgrade. https://discuss.erpnext.com/t/sales-analytics-report-hangs-on-erpnext-v7/17951/6 With the efforts of @Tropicalrambler into the report we made it work by putting checkpoint for item. Please see whether its good or there is better solution for it. Thanks, Nick
This commit is contained in:
parent
10ec553859
commit
089c5caea5
@ -202,7 +202,9 @@ erpnext.SalesAnalytics = frappe.views.TreeGridReport.extend({
|
||||
if (posting_date >= from_date && posting_date <= to_date) {
|
||||
var item = me.item_by_name[tl[me.tree_grid.item_key]] ||
|
||||
me.item_by_name['Not Set'];
|
||||
item[me.column_map[tl.posting_date].field] += (is_val ? tl.base_net_amount : tl.qty);
|
||||
if(item){
|
||||
item[me.column_map[tl.posting_date].field] += (is_val ? tl.base_net_amount : tl.qty);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user