From 0981b894dd51509d3ad63fdcc2a32ac471eddadc Mon Sep 17 00:00:00 2001 From: krupalvora Date: Sat, 10 Jan 2026 07:10:57 +0000 Subject: [PATCH] refactor: Batch & Bundle get sle for snos - Added docstring (cherry picked from commit 22dee50348ba8f6769e63987ad717ac5b02d5888) --- .../serial_and_batch_bundle/serial_and_batch_bundle.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py index ed3ba188a1f..ff247d00d90 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py @@ -2985,6 +2985,14 @@ def get_ledgers_from_serial_batch_bundle(**kwargs) -> list[frappe._dict]: def get_stock_ledgers_for_serial_nos(kwargs): + """ + Fetch stock ledger entries based on various filters. + + :param kwargs: etch stock ledger entries based on filters like posting_datetime, creation, warehouse, item_code, serial_nos, ignore_voucher_detail_no, voucher_no. Joining with Serial and Batch Entry table to filter based on serial numbers. + :return: List of stock ledger entries as dictionaries. + :rtype: Dictionary + """ + stock_ledger_entry = frappe.qb.DocType("Stock Ledger Entry") serial_batch_entry = frappe.qb.DocType("Serial and Batch Entry")