diff --git a/server/AyaNova/models/PM.cs b/server/AyaNova/models/PM.cs index 63ee335a..692e759f 100644 --- a/server/AyaNova/models/PM.cs +++ b/server/AyaNova/models/PM.cs @@ -30,7 +30,7 @@ namespace AyaNova.Models public PMTimeUnit GenerateBeforeUnit { get; set; } public int RepeatInterval { get; set; } public int GenerateBeforeInterval { get; set; } - 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 + 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 first created and after that when generate happens for next time see pmbiz top with reference v7 code //---- [Required] diff --git a/server/AyaNova/util/Seeder.cs b/server/AyaNova/util/Seeder.cs index 17021791..2400183d 100644 --- a/server/AyaNova/util/Seeder.cs +++ b/server/AyaNova/util/Seeder.cs @@ -3706,8 +3706,7 @@ namespace AyaNova.Util 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 - //------ + //------ using (AyContext ct = ServiceProviderProvider.DBContext)