refactor: remove test file import in stock ageing report (backport #53619) (#53625)

Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
mergify[bot]
2026-03-19 06:50:54 +00:00
committed by GitHub
parent af86fd3cb4
commit 9c243e8dd0

View File

@@ -243,10 +243,7 @@ class FIFOSlots:
consumed/updated and maintained via FIFO. **
}
"""
from erpnext.stock.doctype.serial_and_batch_bundle.test_serial_and_batch_bundle import (
get_serial_nos_from_bundle,
)
from erpnext.stock.serial_batch_bundle import get_serial_nos_from_bundle
stock_ledger_entries = self.sle
@@ -271,7 +268,7 @@ class FIFOSlots:
if bundle_wise_serial_nos:
serial_nos = bundle_wise_serial_nos.get(d.serial_and_batch_bundle) or []
else:
serial_nos = get_serial_nos_from_bundle(d.serial_and_batch_bundle) or []
serial_nos = sorted(get_serial_nos_from_bundle(d.serial_and_batch_bundle)) or []
serial_nos = self.uppercase_serial_nos(serial_nos)
if d.actual_qty > 0: