fix: typo in function name and msg (backport #37722) (#37741)

fix: typo in function name and msg

(cherry picked from commit 48c66b68abe5573c477cbbdc49af22dbde1ea2db)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
This commit is contained in:
mergify[bot] 2023-10-29 12:28:42 +05:30 committed by GitHub
parent 5c46d7452e
commit 4819fde8c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -658,7 +658,7 @@ class SerialandBatchBundle(Document):
if not available_batches:
return
available_batches = get_availabel_batches_qty(available_batches)
available_batches = get_available_batches_qty(available_batches)
for batch_no in batches:
if batch_no not in available_batches or available_batches[batch_no] < 0:
self.throw_error_message(
@ -1074,7 +1074,7 @@ def get_auto_data(**kwargs):
return get_auto_batch_nos(kwargs)
def get_availabel_batches_qty(available_batches):
def get_available_batches_qty(available_batches):
available_batches_qty = defaultdict(float)
for batch in available_batches:
available_batches_qty[batch.batch_no] += batch.qty

View File

@ -241,7 +241,7 @@ class StockReservationEntry(Document):
if available_qty_to_reserve <= 0:
msg = _(
"Row #{0}: Stock not availabe to reserve for Item {1} against Batch {2} in Warehouse {3}."
"Row #{0}: Stock not available to reserve for Item {1} against Batch {2} in Warehouse {3}."
).format(
entry.idx,
frappe.bold(self.item_code),