mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 10:45:29 +00:00
Merge pull request #27815 from frappe/mergify/bp/version-13-pre-release/pr-27813
fix: ignore random periodicity in validations (backport #27813)
This commit is contained in:
@@ -47,7 +47,7 @@ class MaintenanceSchedule(TransactionBase):
|
||||
"Yearly": 365
|
||||
}
|
||||
for item in self.items:
|
||||
if item.periodicity and item.start_date:
|
||||
if item.periodicity and item.periodicity != "Random" and item.start_date:
|
||||
if not item.end_date:
|
||||
if item.no_of_visits:
|
||||
item.end_date = add_days(item.start_date, item.no_of_visits * days_in_period[item.periodicity])
|
||||
|
||||
Reference in New Issue
Block a user