fix(demo): More exception handling on demo data generation (#36652)
This commit is contained in:
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user