added module icons in grid reports

This commit is contained in:
Anand Doshi
2012-11-26 18:47:54 +05:30
parent 21df1479a7
commit ca868e42ae
9 changed files with 16 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ cur_frm.cscript['Make Purchase Receipt'] = function() {
//========================== Make Purchase Invoice =====================================================
cur_frm.cscript['Make Purchase Invoice'] = function() {
n = createLocal('Purchase Invoice');
$c('dt_map', args={
$c('dt_map', {
'docs':compress_doclist([locals['Purchase Invoice'][n]]),
'from_doctype':cur_frm.doc.doctype,
'to_doctype':'Purchase Invoice',

View File

@@ -22,6 +22,8 @@ wn.pages['purchase-analytics'].onload = function(wrapper) {
});
new erpnext.PurchaseAnalytics(wrapper);
wrapper.appframe.add_module_tab("Buying");
}
erpnext.PurchaseAnalytics = wn.views.TreeGridReport.extend({