fix: valuation rate for the subcontracting receipt supplied items with Serial and Batch Bundle (#38094)

fix: valuation rate for the subcontracting receipt supplied items with batch
This commit is contained in:
rohitwaghchaure
2023-11-14 19:27:41 +05:30
committed by GitHub
parent e769e750ec
commit 3e77c0b564
6 changed files with 135 additions and 3 deletions

View File

@@ -766,7 +766,9 @@ class update_entries_after(object):
sle.doctype = "Stock Ledger Entry"
frappe.get_doc(sle).db_update()
if not self.args.get("sle_id"):
if not self.args.get("sle_id") or (
sle.serial_and_batch_bundle and sle.auto_created_serial_and_batch_bundle
):
self.update_outgoing_rate_on_transaction(sle)
def reset_actual_qty_for_stock_reco(self, sle):