fix: validation msg in stock entry

(cherry picked from commit ba77da0874)
This commit is contained in:
s-aga-r
2022-11-28 18:01:30 +05:30
committed by Mergify
parent 648a017eda
commit 65ac84e020

View File

@@ -264,7 +264,7 @@ def repost_future_sle(
def validate_item_warehouse(args): def validate_item_warehouse(args):
for field in ["item_code", "warehouse", "posting_date", "posting_time"]: for field in ["item_code", "warehouse", "posting_date", "posting_time"]:
if not args.get(field): if not args.get(field):
validation_msg = f"The field {frappe.unscrub(args.get(field))} is required for the reposting" validation_msg = f"The field {frappe.unscrub(field)} is required for the reposting"
frappe.throw(_(validation_msg)) frappe.throw(_(validation_msg))