mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
refactor: remove test file import in stock ageing report (#53619)
This commit is contained in:
@@ -245,10 +245,7 @@ class FIFOSlots:
|
|||||||
consumed/updated and maintained via FIFO. **
|
consumed/updated and maintained via FIFO. **
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
from erpnext.stock.serial_batch_bundle import get_serial_nos_from_bundle
|
||||||
from erpnext.stock.doctype.serial_and_batch_bundle.test_serial_and_batch_bundle import (
|
|
||||||
get_serial_nos_from_bundle,
|
|
||||||
)
|
|
||||||
|
|
||||||
stock_ledger_entries = self.sle
|
stock_ledger_entries = self.sle
|
||||||
|
|
||||||
@@ -273,7 +270,7 @@ class FIFOSlots:
|
|||||||
if bundle_wise_serial_nos:
|
if bundle_wise_serial_nos:
|
||||||
serial_nos = bundle_wise_serial_nos.get(d.serial_and_batch_bundle) or []
|
serial_nos = bundle_wise_serial_nos.get(d.serial_and_batch_bundle) or []
|
||||||
else:
|
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)
|
serial_nos = self.uppercase_serial_nos(serial_nos)
|
||||||
if d.actual_qty > 0:
|
if d.actual_qty > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user