fix(demo): More exception handling on demo data generation (#36652)

This commit is contained in:
Deepesh Garg
2023-08-15 10:45:36 +05:30
committed by GitHub
parent 89e89de961
commit 1e07f6eef9
3 changed files with 16 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ def create_transaction(doctype, company, start_date):
if document_type == "Purchase Order":
posting_date = get_random_date(start_date, 1, 30)
else:
posting_date = get_random_date(start_date, 31, 365)
posting_date = get_random_date(start_date, 31, 364)
doctype.update(
{