[fix] [minor] stock balance report for serialized item
This commit is contained in:
parent
1a60fd8906
commit
570b1070a8
@ -29,8 +29,6 @@ erpnext.StockGridReport = wn.views.TreeGridReport.extend({
|
|||||||
|
|
||||||
if(add_qty)
|
if(add_qty)
|
||||||
wh.fifo_stack.push([add_qty, sl.incoming_rate, sl.posting_date]);
|
wh.fifo_stack.push([add_qty, sl.incoming_rate, sl.posting_date]);
|
||||||
|
|
||||||
if(sl.serial_no) value_diff = this.get_serialized_value_diff(sl);
|
|
||||||
} else {
|
} else {
|
||||||
// outgoing
|
// outgoing
|
||||||
if(sl.serial_no) {
|
if(sl.serial_no) {
|
||||||
@ -113,7 +111,8 @@ erpnext.StockGridReport = wn.views.TreeGridReport.extend({
|
|||||||
$.each(wn.report_dump.data["Stock Ledger Entry"], function(i, sle) {
|
$.each(wn.report_dump.data["Stock Ledger Entry"], function(i, sle) {
|
||||||
if(sle.qty > 0 && sle.serial_no) {
|
if(sle.qty > 0 && sle.serial_no) {
|
||||||
$.each(sle.serial_no.trim().split("\n"), function(i, sr) {
|
$.each(sle.serial_no.trim().split("\n"), function(i, sr) {
|
||||||
if(sr && sle.incoming_rate !== undefined) {
|
if(sr && sle.incoming_rate !== undefined
|
||||||
|
&& !serialized_buying_rates[sr.trim().toLowerCase()]) {
|
||||||
serialized_buying_rates[sr.trim().toLowerCase()] = flt(sle.incoming_rate);
|
serialized_buying_rates[sr.trim().toLowerCase()] = flt(sle.incoming_rate);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user