mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
merge
This commit is contained in:
@@ -37,37 +37,6 @@ wn.pages['trial-balance'].onload = function(wrapper) {
|
||||
});
|
||||
},
|
||||
|
||||
export: function() {
|
||||
var msgbox = msgprint('<p>Select To Download:</p>\
|
||||
<p><input type="checkbox" name="with_groups" checked> Account Groups</p>\
|
||||
<p><input type="checkbox" name="with_ledgers" checked> Account Ledgers</p>\
|
||||
<p><button class="btn btn-info">Download</button>');
|
||||
|
||||
var me = this;
|
||||
|
||||
$(msgbox.body).find("button").click(function() {
|
||||
var with_groups = $(msgbox.body).find("[name='with_groups']").is(":checked");
|
||||
var with_ledgers = $(msgbox.body).find("[name='with_ledgers']").is(":checked");
|
||||
|
||||
var data = wn.slickgrid_tools.get_view_data(me.columns, me.dataView,
|
||||
function(row, item) {
|
||||
if(with_groups) {
|
||||
// pad row
|
||||
for(var i=0; i<item.indent; i++) row[0] = " " + row[0];
|
||||
}
|
||||
if(with_groups && item.group_or_ledger == "Group") return true;
|
||||
if(with_ledgers && item.group_or_ledger == "Ledger") return true;
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
wn.tools.downloadify(data, ["Report Manager", "System Manager"], me);
|
||||
return false;
|
||||
})
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
prepare_balances: function() {
|
||||
// store value of with closing entry
|
||||
this.with_period_closing_entry = this.wrapper
|
||||
|
||||
Reference in New Issue
Block a user