Merge branch 'develop' into repost-item-valuation

This commit is contained in:
Sagar Sharma
2022-11-28 21:33:58 +05:30
committed by GitHub

View File

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