mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-29 17:11:33 +02:00
fix: duplicate reposting entries of same voucher
(cherry picked from commit f2253dd645)
This commit is contained in:
committed by
Mergify
parent
a5e6b371ac
commit
aeac43ccf9
@@ -1388,7 +1388,11 @@ def update_qty_in_future_sle(args, allow_negative_stock=False):
|
|||||||
def regenerate_sle_for_batch_stock_reco(detail):
|
def regenerate_sle_for_batch_stock_reco(detail):
|
||||||
doc = frappe.get_cached_doc("Stock Reconciliation", detail.voucher_no)
|
doc = frappe.get_cached_doc("Stock Reconciliation", detail.voucher_no)
|
||||||
doc.recalculate_current_qty(detail.item_code, detail.batch_no)
|
doc.recalculate_current_qty(detail.item_code, detail.batch_no)
|
||||||
doc.repost_future_sle_and_gle()
|
|
||||||
|
if not frappe.db.exists(
|
||||||
|
"Repost Item Valuation", {"voucher_no": doc.name, "status": "Queued", "docstatus": "1"}
|
||||||
|
):
|
||||||
|
doc.repost_future_sle_and_gle()
|
||||||
|
|
||||||
|
|
||||||
def get_stock_reco_qty_shift(args):
|
def get_stock_reco_qty_shift(args):
|
||||||
|
|||||||
Reference in New Issue
Block a user