[fix] Stock analytics report fixed for fifo stack related to stock reco
This commit is contained in:
parent
352187bee6
commit
995a78421a
@ -139,7 +139,7 @@ erpnext.StockAnalytics = erpnext.StockGridReport.extend({
|
|||||||
|
|
||||||
if(sl.voucher_type=="Stock Reconciliation") {
|
if(sl.voucher_type=="Stock Reconciliation") {
|
||||||
var diff = (sl.qty_after_transaction * sl.valuation_rate) - item.closing_qty_value;
|
var diff = (sl.qty_after_transaction * sl.valuation_rate) - item.closing_qty_value;
|
||||||
wh.fifo_stack.push([sl.qty_after_transaction, sl.valuation_rate, sl.posting_date]);
|
wh.fifo_stack = [[sl.qty_after_transaction, sl.valuation_rate, sl.posting_date]];
|
||||||
wh.balance_qty = sl.qty_after_transaction;
|
wh.balance_qty = sl.qty_after_transaction;
|
||||||
wh.balance_value = sl.valuation_rate * sl.qty_after_transaction;
|
wh.balance_value = sl.valuation_rate * sl.qty_after_transaction;
|
||||||
} else {
|
} else {
|
||||||
@ -167,7 +167,6 @@ erpnext.StockAnalytics = erpnext.StockGridReport.extend({
|
|||||||
},
|
},
|
||||||
update_groups: function() {
|
update_groups: function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
$.each(this.data, function(i, item) {
|
$.each(this.data, function(i, item) {
|
||||||
// update groups
|
// update groups
|
||||||
if(!item.is_group && me.apply_filter(item, "brand")) {
|
if(!item.is_group && me.apply_filter(item, "brand")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user