This commit is contained in:
2021-07-28 17:06:09 +00:00
parent 6b9b381355
commit 68132e9426
2 changed files with 88 additions and 4 deletions

View File

@@ -3702,9 +3702,10 @@ namespace AyaNova.Util
o.ExcludeDaysOfWeek= new bool[]{true,true,true,true,true,false,false};//Monday to Sunday (0-6 index)
o.Active=true;
o.NextServiceDate=woDate.AddDays(1);
o.Repeat=new TimeSpan()
// public TimeSpan Repeat { get; set; }//was generate span
// public TimeSpan GenerateBefore { get; set; }//was threshold span
o.RepeatInterval=1;
o.RepeatUnit= PMTimeUnit.Months;
o.GenerateBeforeInterval=3;
o.GenerateBeforeUnit=PMTimeUnit.Days;
// public DateTime? GenerateDate { get; set; }//Internal, not exposed to UI and is the date to do the next generate on that takes into account generatebefore and next service date and is calcd when generate happens for next time see pmbiz top with reference v7 code
//------