feat: Add half-yearly asset maintenance periodicity. (#37006)
This commit is contained in:
parent
b34c03d306
commit
846ae32d92
@ -79,14 +79,16 @@ def calculate_next_due_date(
|
||||
next_due_date = add_days(start_date, 7)
|
||||
if periodicity == "Monthly":
|
||||
next_due_date = add_months(start_date, 1)
|
||||
if periodicity == "Quarterly":
|
||||
next_due_date = add_months(start_date, 3)
|
||||
if periodicity == "Half-yearly":
|
||||
next_due_date = add_months(start_date, 6)
|
||||
if periodicity == "Yearly":
|
||||
next_due_date = add_years(start_date, 1)
|
||||
if periodicity == "2 Yearly":
|
||||
next_due_date = add_years(start_date, 2)
|
||||
if periodicity == "3 Yearly":
|
||||
next_due_date = add_years(start_date, 3)
|
||||
if periodicity == "Quarterly":
|
||||
next_due_date = add_months(start_date, 3)
|
||||
if end_date and (
|
||||
(start_date and start_date >= end_date)
|
||||
or (last_completion_date and last_completion_date >= end_date)
|
||||
|
@ -71,7 +71,7 @@
|
||||
"fieldtype": "Select",
|
||||
"in_list_view": 1,
|
||||
"label": "Periodicity",
|
||||
"options": "\nDaily\nWeekly\nMonthly\nQuarterly\nYearly\n2 Yearly\n3 Yearly",
|
||||
"options": "\nDaily\nWeekly\nMonthly\nQuarterly\nHalf-yearly\nYearly\n2 Yearly\n3 Yearly",
|
||||
"reqd": 1
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user