refactor: rename doctype serial and batch ledger to serial and batch entry

This commit is contained in:
Rohit Waghchaure
2023-03-21 10:54:41 +05:30
parent 16f26fb3d8
commit 5bb3173676
22 changed files with 176 additions and 211 deletions

View File

@@ -1370,7 +1370,7 @@ def get_batch_incoming_rate(
):
sle = frappe.qb.DocType("Stock Ledger Entry")
batch_ledger = frappe.qb.DocType("Serial and Batch Ledger")
batch_ledger = frappe.qb.DocType("Serial and Batch Entry")
timestamp_condition = CombineDatetime(sle.posting_date, sle.posting_time) < CombineDatetime(
posting_date, posting_time
@@ -1382,7 +1382,7 @@ def get_batch_incoming_rate(
) & (sle.creation < creation)
batches = frappe.get_all(
"Serial and Batch Ledger", fields=["batch_no"], filters={"parent": serial_and_batch_bundle}
"Serial and Batch Entry", fields=["batch_no"], filters={"parent": serial_and_batch_bundle}
)
batch_details = (