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
ed94aa4798
commit
acb5e9a11b
@ -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…
Reference in New Issue
Block a user