Let’s pretend we create a new doctype called "reminder"
(I do not use “todo” as example since this is a real core doctype)
So we have our doctype reminder and reminders will have this minimal set of fields for this example:
reminder.generated_from_tmpl_id // if created automatically the id of the tmpl (see below) used
So maybe we use reminder.duedate to send some notifications to remind_this_user. Ok fine, let’s pretend that’s the complete app. Great! If we only wanted directly created entries. But maybe we want to have some of these reminders generated on schedule for us, automatically?..
Now what if I what to make another doctype called reminder_template and in this doctype I have some of the the pre-filled fields in “reminder” doctype above:
reminder_tmpl.duedate_days (i.e. “30” = duedate will be +30 days from when reminder is created)
as well as these fields for the reminder generator / scheduler…
reminder_tmpl.generate_startdate // the first date it will create this reminder
reminder_tmpl.generate_enddate // the last date it will create this reminder i.e. 12/31/9999
reminder_tmpl.generate_interval_days // (i.e. 365 = 1 year)
reminder_tmpl.generate_frequency // (ie. frequency 12, interval_days 365 = monthly reminder)
reminder_tmpl.generate_next // the next date this reminder should be generated
Does this scheduler / generator type of functionality exist in frappe or erpnext already? Any type of doctype record creator that will autmatically create a new record based on a pre-defined template like this?