mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
fix: stock ledger entry was not created against stock reco
This commit is contained in:
@@ -216,7 +216,7 @@ class StockReconciliation(StockController):
|
|||||||
if row.qty and not row.valuation_rate:
|
if row.qty and not row.valuation_rate:
|
||||||
frappe.throw(_("Valuation Rate required for Item {0} at row {1}").format(row.item_code, row.idx))
|
frappe.throw(_("Valuation Rate required for Item {0} at row {1}").format(row.item_code, row.idx))
|
||||||
|
|
||||||
if ((previous_sle and row.qty == previous_sle.get("qty_after_transaction")
|
if (not item.has_batch_no and (previous_sle and row.qty == previous_sle.get("qty_after_transaction")
|
||||||
and (row.valuation_rate == previous_sle.get("valuation_rate") or row.qty == 0))
|
and (row.valuation_rate == previous_sle.get("valuation_rate") or row.qty == 0))
|
||||||
or (not previous_sle and not row.qty)):
|
or (not previous_sle and not row.qty)):
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -61,9 +61,11 @@ frappe.query_reports["Batch-Wise Balance History"] = {
|
|||||||
"options": "Batch",
|
"options": "Batch",
|
||||||
"get_query": function() {
|
"get_query": function() {
|
||||||
let item_code = frappe.query_report.get_filter_value('item_code');
|
let item_code = frappe.query_report.get_filter_value('item_code');
|
||||||
return {
|
if (item_code) {
|
||||||
filters: {
|
return {
|
||||||
"item": item_code
|
filters: {
|
||||||
|
"item": item_code
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user