sf-i-events 1.0.310 → 1.0.312

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2123,7 +2123,9 @@ export class SfIEvents extends LitElement {
2123
2123
 
2124
2124
  getLateExecuted = (mmdd: string, event: any) => {
2125
2125
 
2126
- const tsDoc = new Date(parseInt(event.dateofcompletion[mmdd + "/" + new Date().getFullYear()])).getTime();
2126
+ console.log('late executed', mmdd, event.dateofcompletion)
2127
+
2128
+ const tsDoc = new Date(parseInt(event.dateofcompletion)).getTime();
2127
2129
 
2128
2130
  const dd = mmdd.substring(3, 5);
2129
2131
  const mm = mmdd.substring(0, 2);
@@ -2745,6 +2747,7 @@ export class SfIEvents extends LitElement {
2745
2747
  var lateStatus = "in-time";
2746
2748
 
2747
2749
  if(this.events[mmdd][j].approved != null && (this.events[mmdd][j].approved) != null && (this.events[mmdd][j].approved)) {
2750
+ console.log('lateness', this.events[mmdd][j]['obligationtitle'],this.getLateExecuted(mmdd, this.events[mmdd][j]));
2748
2751
  partStatus = "status-approved";
2749
2752
  if(this.getLateExecuted(mmdd, this.events[mmdd][j])) {
2750
2753
  lateStatus = "late-executed"
@@ -4566,6 +4569,7 @@ export class SfIEvents extends LitElement {
4566
4569
  var lateStatus = "in-time";
4567
4570
 
4568
4571
  if(this.events[mmdd][j].approved != null && (this.events[mmdd][j].approved) != null && (this.events[mmdd][j].approved)) {
4572
+
4569
4573
  partStatus = "status-approved";
4570
4574
  if(this.getLateExecuted(mmdd, this.events[mmdd][j])) {
4571
4575
  lateStatus = "late-executed"