mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -186,7 +186,6 @@ erpnext.GeneralLedger = wn.views.GridReport.extend({
|
|||||||
var totals = this.make_summary_row("Totals", this.account);
|
var totals = this.make_summary_row("Totals", this.account);
|
||||||
|
|
||||||
var grouped_ledgers = {};
|
var grouped_ledgers = {};
|
||||||
|
|
||||||
$.each(data, function(i, item) {
|
$.each(data, function(i, item) {
|
||||||
if((me.is_default("company") ? true : me.apply_filter(item, "company")) &&
|
if((me.is_default("company") ? true : me.apply_filter(item, "company")) &&
|
||||||
(me.account ? me.is_child_account(me.account, item.account)
|
(me.account ? me.is_child_account(me.account, item.account)
|
||||||
@@ -217,8 +216,7 @@ erpnext.GeneralLedger = wn.views.GridReport.extend({
|
|||||||
grouped_ledgers[item.account].totals.debit += item.debit;
|
grouped_ledgers[item.account].totals.debit += item.debit;
|
||||||
grouped_ledgers[item.account].totals.credit += item.credit;
|
grouped_ledgers[item.account].totals.credit += item.credit;
|
||||||
}
|
}
|
||||||
|
if(item.account) {
|
||||||
if(me.account) {
|
|
||||||
item.against_account = me.voucher_accounts[item.voucher_type + ":"
|
item.against_account = me.voucher_accounts[item.voucher_type + ":"
|
||||||
+ item.voucher_no][(item.debit > 0 ? "credits" : "debits")].join(", ");
|
+ item.voucher_no][(item.debit > 0 ? "credits" : "debits")].join(", ");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,6 +95,8 @@ erpnext.StockAgeing = erpnext.StockGridReport.extend({
|
|||||||
|
|
||||||
this.data = [].concat(this._data);
|
this.data = [].concat(this._data);
|
||||||
|
|
||||||
|
this.serialized_buying_rates = this.get_serialized_buying_rates();
|
||||||
|
|
||||||
$.each(this.data, function(i, d) {
|
$.each(this.data, function(i, d) {
|
||||||
me.reset_item_values(d);
|
me.reset_item_values(d);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user