fix: error message args in sle.py

This commit is contained in:
Mihir Kandoi
2026-01-10 15:40:03 +05:30
parent 46e7fedff8
commit 9f4bf65768

View File

@@ -232,7 +232,7 @@ class StockLedgerEntry(Document):
)
if item_detail.is_stock_item != 1:
self.throw_error_message("Item {0} must be a stock Item").format(self.item_code)
self.throw_error_message(f"Item {self.item_code} must be a stock Item")
if item_detail.has_serial_no or item_detail.has_batch_no:
if not self.serial_and_batch_bundle: