sf-i-events 1.0.886 → 1.0.887
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.
- package/package.json +1 -1
- package/sf-i-events.js +63 -20
- package/src/sf-i-events.ts +63 -22
package/package.json
CHANGED
package/sf-i-events.js
CHANGED
|
@@ -849,7 +849,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
849
849
|
|
|
850
850
|
`;
|
|
851
851
|
this.AUTOSAVE_FLAG = true;
|
|
852
|
-
this.EXCLUDE_COLS_FROM_REGS = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "
|
|
852
|
+
this.EXCLUDE_COLS_FROM_REGS = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"];
|
|
853
853
|
this.CHARTS_LIST_BY_MODULES = { "compliances": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "notices": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "contracts": ["compliance", "timeliness", "completeness", "location"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "rcmresources": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
|
|
854
854
|
this.chartSelectedLegend = [];
|
|
855
855
|
this.selectedFilters = null;
|
|
@@ -3779,6 +3779,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3779
3779
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
3780
3780
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
3781
3781
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
3782
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
3782
3783
|
bulkBodyReview.push({
|
|
3783
3784
|
"mmddyyyy": mmddyyyy,
|
|
3784
3785
|
"projectid": this.projectId,
|
|
@@ -3791,7 +3792,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3791
3792
|
"username": this.userName,
|
|
3792
3793
|
"userid": this.userProfileId,
|
|
3793
3794
|
"userrole": this.myRole,
|
|
3794
|
-
"year":
|
|
3795
|
+
"year": yearStr,
|
|
3795
3796
|
"module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
|
|
3796
3797
|
});
|
|
3797
3798
|
}
|
|
@@ -3862,6 +3863,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3862
3863
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
3863
3864
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
3864
3865
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
3866
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
3865
3867
|
bulkBodyReview.push({
|
|
3866
3868
|
"mmddyyyy": mmddyyyy,
|
|
3867
3869
|
"projectid": this.projectId,
|
|
@@ -3874,7 +3876,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
3874
3876
|
"username": this.userName,
|
|
3875
3877
|
"userid": this.userProfileId,
|
|
3876
3878
|
"userrole": this.myRole,
|
|
3877
|
-
"year":
|
|
3879
|
+
"year": yearStr,
|
|
3878
3880
|
"module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
|
|
3879
3881
|
});
|
|
3880
3882
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -4172,6 +4174,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4172
4174
|
// } )
|
|
4173
4175
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
4174
4176
|
// }else{
|
|
4177
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
4175
4178
|
bulkBody.push({
|
|
4176
4179
|
"mmddyyyy": mmddyyyy,
|
|
4177
4180
|
"projectid": this.projectId,
|
|
@@ -4189,7 +4192,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
4189
4192
|
"reportformatschema": reportformatschema,
|
|
4190
4193
|
"userid": this.userProfileId,
|
|
4191
4194
|
"userrole": this.myRole,
|
|
4192
|
-
"year":
|
|
4195
|
+
"year": yearStr,
|
|
4193
4196
|
"module": (_f = event.module) !== null && _f !== void 0 ? _f : "compliance",
|
|
4194
4197
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
4195
4198
|
});
|
|
@@ -5468,14 +5471,22 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5468
5471
|
this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
|
|
5469
5472
|
this.csvDataRegisters += ('\n');
|
|
5470
5473
|
}
|
|
5474
|
+
html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
|
|
5475
|
+
html += '<table>';
|
|
5476
|
+
let tablecols = [];
|
|
5471
5477
|
for (var j = 0; j < Object.keys(objCountry[statute]).length; j++) {
|
|
5472
5478
|
const complianceId = Object.keys(objCountry[statute])[j];
|
|
5473
5479
|
const compliance = objCountry[statute][complianceId];
|
|
5474
5480
|
const data = JSON.parse(compliance.data);
|
|
5475
5481
|
const cols = JSON.parse(compliance.cols);
|
|
5482
|
+
for (let col of cols) {
|
|
5483
|
+
if (!tablecols.includes(col.toLowerCase()) && !this.EXCLUDE_COLS_FROM_REGS.includes(col.toLowerCase())) {
|
|
5484
|
+
tablecols.push(col);
|
|
5485
|
+
}
|
|
5486
|
+
}
|
|
5476
5487
|
this.csvDataRegisters += ('"' + complianceId + '",');
|
|
5477
|
-
html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
|
|
5478
|
-
html += '<table>';
|
|
5488
|
+
// html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
|
|
5489
|
+
// html += '<table>';
|
|
5479
5490
|
html += '<tr>';
|
|
5480
5491
|
html += ('<td class="td-body left-sticky" part="td-body-register"><button part="button-icon" id="button-icon-country-' + index + '-' + i + '-' + j + '" class="button-icon-country"><span class="material-symbols-outlined">open_in_new</span></button></td>');
|
|
5481
5492
|
html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">ID</span><br /><sf-i-elastic-text text="' + complianceId + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
@@ -5486,13 +5497,33 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
5486
5497
|
// this.csvDataRegisters += ('",');
|
|
5487
5498
|
}
|
|
5488
5499
|
}
|
|
5500
|
+
if (compliance['entities'] != null && Array.isArray(compliance['entities'])) {
|
|
5501
|
+
let entities = '';
|
|
5502
|
+
for (let entity of compliance['entities']) {
|
|
5503
|
+
entities += entity.split(';')[0].replace(/\([^)]*\)/g, "") + ',';
|
|
5504
|
+
}
|
|
5505
|
+
entities = entities.slice(0, entities.length - 1);
|
|
5506
|
+
html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">entities</span><br /><sf-i-elastic-text text="' + entities + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
|
|
5507
|
+
// this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
|
|
5508
|
+
}
|
|
5509
|
+
if (compliance['locations'] != null && Array.isArray(compliance['locations'])) {
|
|
5510
|
+
let locations = '';
|
|
5511
|
+
for (let location of compliance['locations']) {
|
|
5512
|
+
locations += location.split(';')[0].replace(/\([^)]*\)/g, "") + ',';
|
|
5513
|
+
}
|
|
5514
|
+
locations = locations.slice(0, locations.length - 1);
|
|
5515
|
+
html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">locations</span><br /><sf-i-elastic-text text="' + locations + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
|
|
5516
|
+
// this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
|
|
5517
|
+
}
|
|
5489
5518
|
this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
|
|
5490
5519
|
this.csvDataRegisters += ('\n');
|
|
5491
5520
|
console.log('enter');
|
|
5492
5521
|
html += '</tr>';
|
|
5493
|
-
html += '</table>';
|
|
5494
|
-
html += '</div>';
|
|
5522
|
+
// html += '</table>';
|
|
5523
|
+
// html += '</div>';
|
|
5495
5524
|
}
|
|
5525
|
+
html += '</table>';
|
|
5526
|
+
html += '</div>';
|
|
5496
5527
|
// html += '</table>';
|
|
5497
5528
|
// html += '</div>';
|
|
5498
5529
|
}
|
|
@@ -9886,6 +9917,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9886
9917
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
9887
9918
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
9888
9919
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
9920
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
9889
9921
|
bulkBodyReview.push({
|
|
9890
9922
|
"mmddyyyy": mmddyyyy,
|
|
9891
9923
|
"projectid": this.projectId,
|
|
@@ -9898,7 +9930,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9898
9930
|
"username": this.userName,
|
|
9899
9931
|
"userid": this.userProfileId,
|
|
9900
9932
|
"userrole": this.myRole,
|
|
9901
|
-
"year":
|
|
9933
|
+
"year": yearStr,
|
|
9902
9934
|
"module": (_b = listEvent.module) !== null && _b !== void 0 ? _b : "compliance"
|
|
9903
9935
|
});
|
|
9904
9936
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -10227,6 +10259,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10227
10259
|
// } )
|
|
10228
10260
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
10229
10261
|
// }else{
|
|
10262
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
10230
10263
|
bulkBody.push({
|
|
10231
10264
|
"mmddyyyy": mmddyyyy,
|
|
10232
10265
|
"projectid": this.projectId,
|
|
@@ -10244,7 +10277,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10244
10277
|
"reportformatschema": reportformatschema,
|
|
10245
10278
|
"userid": this.userProfileId,
|
|
10246
10279
|
"userrole": this.myRole,
|
|
10247
|
-
"year":
|
|
10280
|
+
"year": yearStr,
|
|
10248
10281
|
"module": (_c = listEvent.module) !== null && _c !== void 0 ? _c : "compliance",
|
|
10249
10282
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
10250
10283
|
});
|
|
@@ -10674,6 +10707,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10674
10707
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
10675
10708
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
10676
10709
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
10710
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
10677
10711
|
bulkBodyReview.push({
|
|
10678
10712
|
"mmddyyyy": mmddyyyy,
|
|
10679
10713
|
"projectid": this.projectId,
|
|
@@ -10686,7 +10720,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
10686
10720
|
"username": this.userName,
|
|
10687
10721
|
"userid": this.userProfileId,
|
|
10688
10722
|
"userrole": this.myRole,
|
|
10689
|
-
"year":
|
|
10723
|
+
"year": yearStr,
|
|
10690
10724
|
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance"
|
|
10691
10725
|
});
|
|
10692
10726
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -11016,6 +11050,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11016
11050
|
// } )
|
|
11017
11051
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
11018
11052
|
// }else{
|
|
11053
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
11019
11054
|
bulkBody.push({
|
|
11020
11055
|
"mmddyyyy": mmddyyyy,
|
|
11021
11056
|
"projectid": this.projectId,
|
|
@@ -11033,7 +11068,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11033
11068
|
"reportformatschema": reportformatschema,
|
|
11034
11069
|
"userid": this.userProfileId,
|
|
11035
11070
|
"userrole": this.myRole,
|
|
11036
|
-
"year":
|
|
11071
|
+
"year": yearStr,
|
|
11037
11072
|
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance",
|
|
11038
11073
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
11039
11074
|
});
|
|
@@ -11464,6 +11499,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11464
11499
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
11465
11500
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
11466
11501
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
11502
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
11467
11503
|
bulkBodyReview.push({
|
|
11468
11504
|
"mmddyyyy": mmddyyyy,
|
|
11469
11505
|
"projectid": this.projectId,
|
|
@@ -11476,7 +11512,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11476
11512
|
"username": this.userName,
|
|
11477
11513
|
"userid": this.userProfileId,
|
|
11478
11514
|
"userrole": this.myRole,
|
|
11479
|
-
"year":
|
|
11515
|
+
"year": yearStr,
|
|
11480
11516
|
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance"
|
|
11481
11517
|
});
|
|
11482
11518
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -11806,6 +11842,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11806
11842
|
// } )
|
|
11807
11843
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
11808
11844
|
// }else{
|
|
11845
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
11809
11846
|
bulkBody.push({
|
|
11810
11847
|
"mmddyyyy": mmddyyyy,
|
|
11811
11848
|
"projectid": this.projectId,
|
|
@@ -11823,7 +11860,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
11823
11860
|
"reportformatschema": reportformatschema,
|
|
11824
11861
|
"userid": this.userProfileId,
|
|
11825
11862
|
"userrole": this.myRole,
|
|
11826
|
-
"year":
|
|
11863
|
+
"year": yearStr,
|
|
11827
11864
|
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance",
|
|
11828
11865
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
11829
11866
|
});
|
|
@@ -12254,6 +12291,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12254
12291
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
12255
12292
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
12256
12293
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
12294
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
12257
12295
|
bulkBodyReview.push({
|
|
12258
12296
|
"mmddyyyy": mmddyyyy,
|
|
12259
12297
|
"projectid": this.projectId,
|
|
@@ -12266,7 +12304,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12266
12304
|
"username": this.userName,
|
|
12267
12305
|
"userid": this.userProfileId,
|
|
12268
12306
|
"userrole": this.myRole,
|
|
12269
|
-
"year":
|
|
12307
|
+
"year": yearStr,
|
|
12270
12308
|
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance"
|
|
12271
12309
|
});
|
|
12272
12310
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -12596,6 +12634,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12596
12634
|
// } )
|
|
12597
12635
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
12598
12636
|
// }else{
|
|
12637
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
12599
12638
|
bulkBody.push({
|
|
12600
12639
|
"mmddyyyy": mmddyyyy,
|
|
12601
12640
|
"projectid": this.projectId,
|
|
@@ -12613,7 +12652,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
12613
12652
|
"reportformatschema": reportformatschema,
|
|
12614
12653
|
"userid": this.userProfileId,
|
|
12615
12654
|
"userrole": this.myRole,
|
|
12616
|
-
"year":
|
|
12655
|
+
"year": yearStr,
|
|
12617
12656
|
"module": (_f = listEvent.module) !== null && _f !== void 0 ? _f : "compliance",
|
|
12618
12657
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
12619
12658
|
});
|
|
@@ -13186,6 +13225,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13186
13225
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
13187
13226
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
13188
13227
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
13228
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
13189
13229
|
bulkBodyReview.push({
|
|
13190
13230
|
"mmddyyyy": mmddyyyy,
|
|
13191
13231
|
"projectid": this.projectId,
|
|
@@ -13198,7 +13238,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13198
13238
|
"username": this.userName,
|
|
13199
13239
|
"userid": this.userProfileId,
|
|
13200
13240
|
"userrole": this.myRole,
|
|
13201
|
-
"year":
|
|
13241
|
+
"year": yearStr,
|
|
13202
13242
|
"module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
|
|
13203
13243
|
});
|
|
13204
13244
|
}
|
|
@@ -13405,6 +13445,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13405
13445
|
const eventId = selectedId.split('-')[9].replace(/_/g, '-');
|
|
13406
13446
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
13407
13447
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
13448
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
13408
13449
|
bulkBodyReview.push({
|
|
13409
13450
|
"mmddyyyy": mmddyyyy,
|
|
13410
13451
|
"projectid": this.projectId,
|
|
@@ -13417,7 +13458,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13417
13458
|
"username": this.userName,
|
|
13418
13459
|
"userid": this.userProfileId,
|
|
13419
13460
|
"userrole": this.myRole,
|
|
13420
|
-
"year":
|
|
13461
|
+
"year": yearStr,
|
|
13421
13462
|
"module": (_b = event.module) !== null && _b !== void 0 ? _b : "compliance"
|
|
13422
13463
|
});
|
|
13423
13464
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -13764,6 +13805,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13764
13805
|
// } )
|
|
13765
13806
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
13766
13807
|
// }else{
|
|
13808
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
13767
13809
|
bulkBody.push({
|
|
13768
13810
|
"mmddyyyy": mmddyyyy,
|
|
13769
13811
|
"projectid": this.projectId,
|
|
@@ -13781,7 +13823,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
13781
13823
|
"reportformatschema": reportformatschema,
|
|
13782
13824
|
"userid": this.userProfileId,
|
|
13783
13825
|
"userrole": this.myRole,
|
|
13784
|
-
"year":
|
|
13826
|
+
"year": yearStr,
|
|
13785
13827
|
"module": (_f = event.module) !== null && _f !== void 0 ? _f : "compliance",
|
|
13786
13828
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
13787
13829
|
});
|
|
@@ -20401,6 +20443,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20401
20443
|
};
|
|
20402
20444
|
this.uploadReport = async (entityId, locationId, mmddyyyy, eventid, comments, doc, docs, event, reportformatvalues = "", reportformatschema = "", module = "compliance", percentage = "100", makercheckers) => {
|
|
20403
20445
|
let url = "https://" + this.apiId + "/uploadreport1";
|
|
20446
|
+
let yearStr = this.getFinancialYear(mmddyyyy);
|
|
20404
20447
|
let body = {
|
|
20405
20448
|
"mmddyyyy": mmddyyyy,
|
|
20406
20449
|
"projectid": this.projectId,
|
|
@@ -20418,7 +20461,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20418
20461
|
"reportformatschema": reportformatschema,
|
|
20419
20462
|
"userid": this.userProfileId,
|
|
20420
20463
|
"userrole": this.myRole,
|
|
20421
|
-
"year":
|
|
20464
|
+
"year": yearStr,
|
|
20422
20465
|
"module": module,
|
|
20423
20466
|
"makercheckers": makercheckers
|
|
20424
20467
|
};
|
package/src/sf-i-events.ts
CHANGED
|
@@ -857,7 +857,7 @@ export class SfIEvents extends LitElement {
|
|
|
857
857
|
|
|
858
858
|
AUTOSAVE_FLAG = true;
|
|
859
859
|
|
|
860
|
-
EXCLUDE_COLS_FROM_REGS: Array<string> = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "
|
|
860
|
+
EXCLUDE_COLS_FROM_REGS: Array<string> = ["updatetype", "question", "invalidations", "activations", "alertschedule", "clientquestion", "countryname", "countryid", "entityname", "entityid", "locationname", "locationid", "reporters", "approvers", "timeframe", "responsedays", "execmodule", "functions", "shortid", "shortnumid", "countries", "tagsmap", "reportersmap", "approversmap", "functionheadsmap", "auditorsmap", "viewersmap", "approved", "documents", "comments", "lastupdated", "dateofcompletion", "mmdd", "completeness", "timeliness", "compliance", "delta", "triggers"]
|
|
861
861
|
|
|
862
862
|
CHARTS_LIST_BY_MODULES: { [key: string]: Array<string> } = { "compliances": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "notices": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "contracts": ["compliance", "timeliness", "completeness", "location"], "licenses": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"], "rcmresources": ["compliance", "timeliness", "completeness", "riskSeverity", "riskArea", "location", "function", "obligationType", "jurisdiction", "frequency", "subCategory"] };
|
|
863
863
|
|
|
@@ -6132,6 +6132,7 @@ export class SfIEvents extends LitElement {
|
|
|
6132
6132
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
6133
6133
|
|
|
6134
6134
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
6135
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
6135
6136
|
bulkBodyReview.push({
|
|
6136
6137
|
"mmddyyyy": mmddyyyy,
|
|
6137
6138
|
"projectid": this.projectId,
|
|
@@ -6144,7 +6145,7 @@ export class SfIEvents extends LitElement {
|
|
|
6144
6145
|
"username": this.userName,
|
|
6145
6146
|
"userid": this.userProfileId,
|
|
6146
6147
|
"userrole": this.myRole,
|
|
6147
|
-
"year":
|
|
6148
|
+
"year": yearStr,
|
|
6148
6149
|
"module": event.module ?? "compliance"
|
|
6149
6150
|
})
|
|
6150
6151
|
}
|
|
@@ -6216,6 +6217,7 @@ export class SfIEvents extends LitElement {
|
|
|
6216
6217
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
6217
6218
|
|
|
6218
6219
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
6220
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
6219
6221
|
bulkBodyReview.push({
|
|
6220
6222
|
"mmddyyyy": mmddyyyy,
|
|
6221
6223
|
"projectid": this.projectId,
|
|
@@ -6228,7 +6230,7 @@ export class SfIEvents extends LitElement {
|
|
|
6228
6230
|
"username": this.userName,
|
|
6229
6231
|
"userid": this.userProfileId,
|
|
6230
6232
|
"userrole": this.myRole,
|
|
6231
|
-
"year":
|
|
6233
|
+
"year": yearStr,
|
|
6232
6234
|
"module": event.module ?? "compliance"
|
|
6233
6235
|
})
|
|
6234
6236
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -6566,6 +6568,7 @@ export class SfIEvents extends LitElement {
|
|
|
6566
6568
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
6567
6569
|
|
|
6568
6570
|
// }else{
|
|
6571
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
6569
6572
|
bulkBody.push({
|
|
6570
6573
|
"mmddyyyy": mmddyyyy,
|
|
6571
6574
|
"projectid": this.projectId,
|
|
@@ -6583,7 +6586,7 @@ export class SfIEvents extends LitElement {
|
|
|
6583
6586
|
"reportformatschema": reportformatschema,
|
|
6584
6587
|
"userid": this.userProfileId,
|
|
6585
6588
|
"userrole": this.myRole,
|
|
6586
|
-
"year":
|
|
6589
|
+
"year": yearStr,
|
|
6587
6590
|
"module": event.module ?? "compliance",
|
|
6588
6591
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
6589
6592
|
})
|
|
@@ -8031,15 +8034,22 @@ export class SfIEvents extends LitElement {
|
|
|
8031
8034
|
this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
|
|
8032
8035
|
this.csvDataRegisters += ('\n');
|
|
8033
8036
|
}
|
|
8034
|
-
|
|
8037
|
+
html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
|
|
8038
|
+
html += '<table>';
|
|
8039
|
+
let tablecols: string[] = []
|
|
8035
8040
|
for (var j = 0; j < Object.keys(objCountry[statute]).length; j++) {
|
|
8036
8041
|
const complianceId = Object.keys(objCountry[statute])[j];
|
|
8037
8042
|
const compliance = objCountry[statute][complianceId];
|
|
8038
8043
|
const data = JSON.parse(compliance.data);
|
|
8039
8044
|
const cols = JSON.parse(compliance.cols);
|
|
8045
|
+
for(let col of cols){
|
|
8046
|
+
if(!tablecols.includes(col.toLowerCase()) && !this.EXCLUDE_COLS_FROM_REGS.includes(col.toLowerCase())){
|
|
8047
|
+
tablecols.push(col)
|
|
8048
|
+
}
|
|
8049
|
+
}
|
|
8040
8050
|
this.csvDataRegisters += ('"' + complianceId + '",');
|
|
8041
|
-
html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
|
|
8042
|
-
html += '<table>';
|
|
8051
|
+
// html += '<div class="w-100p scroll-x ' + (i != this.selectedRegisterIndex ? 'hide' : '') + ' register-body-' + i + '">';
|
|
8052
|
+
// html += '<table>';
|
|
8043
8053
|
html += '<tr>';
|
|
8044
8054
|
html += ('<td class="td-body left-sticky" part="td-body-register"><button part="button-icon" id="button-icon-country-' + index + '-' + i + '-' + j + '" class="button-icon-country"><span class="material-symbols-outlined">open_in_new</span></button></td>');
|
|
8045
8055
|
html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">ID</span><br /><sf-i-elastic-text text="' + complianceId + '" minLength="10" lineSize="4"></sf-i-elastic-text></td>');
|
|
@@ -8050,13 +8060,33 @@ export class SfIEvents extends LitElement {
|
|
|
8050
8060
|
// this.csvDataRegisters += ('",');
|
|
8051
8061
|
}
|
|
8052
8062
|
}
|
|
8063
|
+
if(compliance['entities'] != null && Array.isArray(compliance['entities'])){
|
|
8064
|
+
let entities = '';
|
|
8065
|
+
for(let entity of compliance['entities']){
|
|
8066
|
+
entities += entity.split(';')[0].replace(/\([^)]*\)/g, "") + ','
|
|
8067
|
+
}
|
|
8068
|
+
entities = entities.slice(0, entities.length - 1)
|
|
8069
|
+
html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">entities</span><br /><sf-i-elastic-text text="' + entities + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
|
|
8070
|
+
// this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
|
|
8071
|
+
}
|
|
8072
|
+
if(compliance['locations'] != null && Array.isArray(compliance['locations'])){
|
|
8073
|
+
let locations = '';
|
|
8074
|
+
for(let location of compliance['locations']){
|
|
8075
|
+
locations += location.split(';')[0].replace(/\([^)]*\)/g, "") + ','
|
|
8076
|
+
}
|
|
8077
|
+
locations = locations.slice(0, locations.length - 1)
|
|
8078
|
+
html += ('<td class="td-body" part="td-body-register"><span part="td-head" style="padding-left: 0px !important">locations</span><br /><sf-i-elastic-text text="' + locations + '" minLength="80" lineSize="4"></sf-i-elastic-text></td>');
|
|
8079
|
+
// this.csvDataRegisters += ('"' + (data[k] + "").replace(/"/g, '') + '",');
|
|
8080
|
+
}
|
|
8053
8081
|
this.csvDataRegisters = this.csvDataRegisters.replace(/,\s*$/, "");
|
|
8054
8082
|
this.csvDataRegisters += ('\n');
|
|
8055
8083
|
console.log('enter');
|
|
8056
8084
|
html += '</tr>';
|
|
8057
|
-
html += '</table>';
|
|
8058
|
-
html += '</div>';
|
|
8085
|
+
// html += '</table>';
|
|
8086
|
+
// html += '</div>';
|
|
8059
8087
|
}
|
|
8088
|
+
html += '</table>';
|
|
8089
|
+
html += '</div>';
|
|
8060
8090
|
|
|
8061
8091
|
// html += '</table>';
|
|
8062
8092
|
// html += '</div>';
|
|
@@ -13437,6 +13467,7 @@ export class SfIEvents extends LitElement {
|
|
|
13437
13467
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
13438
13468
|
|
|
13439
13469
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
13470
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
13440
13471
|
bulkBodyReview.push({
|
|
13441
13472
|
"mmddyyyy": mmddyyyy,
|
|
13442
13473
|
"projectid": this.projectId,
|
|
@@ -13449,7 +13480,7 @@ export class SfIEvents extends LitElement {
|
|
|
13449
13480
|
"username": this.userName,
|
|
13450
13481
|
"userid": this.userProfileId,
|
|
13451
13482
|
"userrole": this.myRole,
|
|
13452
|
-
"year":
|
|
13483
|
+
"year": yearStr,
|
|
13453
13484
|
"module": listEvent.module ?? "compliance"
|
|
13454
13485
|
})
|
|
13455
13486
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -13824,6 +13855,7 @@ export class SfIEvents extends LitElement {
|
|
|
13824
13855
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
13825
13856
|
|
|
13826
13857
|
// }else{
|
|
13858
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
13827
13859
|
bulkBody.push({
|
|
13828
13860
|
"mmddyyyy": mmddyyyy,
|
|
13829
13861
|
"projectid": this.projectId,
|
|
@@ -13841,7 +13873,7 @@ export class SfIEvents extends LitElement {
|
|
|
13841
13873
|
"reportformatschema": reportformatschema,
|
|
13842
13874
|
"userid": this.userProfileId,
|
|
13843
13875
|
"userrole": this.myRole,
|
|
13844
|
-
"year":
|
|
13876
|
+
"year": yearStr,
|
|
13845
13877
|
"module": listEvent.module ?? "compliance",
|
|
13846
13878
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
13847
13879
|
})
|
|
@@ -14325,6 +14357,7 @@ export class SfIEvents extends LitElement {
|
|
|
14325
14357
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
14326
14358
|
|
|
14327
14359
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
14360
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
14328
14361
|
bulkBodyReview.push({
|
|
14329
14362
|
"mmddyyyy": mmddyyyy,
|
|
14330
14363
|
"projectid": this.projectId,
|
|
@@ -14337,7 +14370,7 @@ export class SfIEvents extends LitElement {
|
|
|
14337
14370
|
"username": this.userName,
|
|
14338
14371
|
"userid": this.userProfileId,
|
|
14339
14372
|
"userrole": this.myRole,
|
|
14340
|
-
"year":
|
|
14373
|
+
"year": yearStr,
|
|
14341
14374
|
"module": listEvent.module ?? "compliance"
|
|
14342
14375
|
})
|
|
14343
14376
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -14717,6 +14750,7 @@ export class SfIEvents extends LitElement {
|
|
|
14717
14750
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
14718
14751
|
|
|
14719
14752
|
// }else{
|
|
14753
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
14720
14754
|
bulkBody.push({
|
|
14721
14755
|
"mmddyyyy": mmddyyyy,
|
|
14722
14756
|
"projectid": this.projectId,
|
|
@@ -14734,7 +14768,7 @@ export class SfIEvents extends LitElement {
|
|
|
14734
14768
|
"reportformatschema": reportformatschema,
|
|
14735
14769
|
"userid": this.userProfileId,
|
|
14736
14770
|
"userrole": this.myRole,
|
|
14737
|
-
"year":
|
|
14771
|
+
"year": yearStr,
|
|
14738
14772
|
"module": listEvent.module ?? "compliance",
|
|
14739
14773
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
14740
14774
|
})
|
|
@@ -15220,6 +15254,7 @@ export class SfIEvents extends LitElement {
|
|
|
15220
15254
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
15221
15255
|
|
|
15222
15256
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
15257
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
15223
15258
|
bulkBodyReview.push({
|
|
15224
15259
|
"mmddyyyy": mmddyyyy,
|
|
15225
15260
|
"projectid": this.projectId,
|
|
@@ -15232,7 +15267,7 @@ export class SfIEvents extends LitElement {
|
|
|
15232
15267
|
"username": this.userName,
|
|
15233
15268
|
"userid": this.userProfileId,
|
|
15234
15269
|
"userrole": this.myRole,
|
|
15235
|
-
"year":
|
|
15270
|
+
"year": yearStr,
|
|
15236
15271
|
"module": listEvent.module ?? "compliance"
|
|
15237
15272
|
})
|
|
15238
15273
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -15612,6 +15647,7 @@ export class SfIEvents extends LitElement {
|
|
|
15612
15647
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
15613
15648
|
|
|
15614
15649
|
// }else{
|
|
15650
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
15615
15651
|
bulkBody.push({
|
|
15616
15652
|
"mmddyyyy": mmddyyyy,
|
|
15617
15653
|
"projectid": this.projectId,
|
|
@@ -15629,7 +15665,7 @@ export class SfIEvents extends LitElement {
|
|
|
15629
15665
|
"reportformatschema": reportformatschema,
|
|
15630
15666
|
"userid": this.userProfileId,
|
|
15631
15667
|
"userrole": this.myRole,
|
|
15632
|
-
"year":
|
|
15668
|
+
"year": yearStr,
|
|
15633
15669
|
"module": listEvent.module ?? "compliance",
|
|
15634
15670
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
15635
15671
|
})
|
|
@@ -16115,6 +16151,7 @@ export class SfIEvents extends LitElement {
|
|
|
16115
16151
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
16116
16152
|
|
|
16117
16153
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
16154
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
16118
16155
|
bulkBodyReview.push({
|
|
16119
16156
|
"mmddyyyy": mmddyyyy,
|
|
16120
16157
|
"projectid": this.projectId,
|
|
@@ -16127,7 +16164,7 @@ export class SfIEvents extends LitElement {
|
|
|
16127
16164
|
"username": this.userName,
|
|
16128
16165
|
"userid": this.userProfileId,
|
|
16129
16166
|
"userrole": this.myRole,
|
|
16130
|
-
"year":
|
|
16167
|
+
"year": yearStr,
|
|
16131
16168
|
"module": listEvent.module ?? "compliance"
|
|
16132
16169
|
})
|
|
16133
16170
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -16507,6 +16544,7 @@ export class SfIEvents extends LitElement {
|
|
|
16507
16544
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
16508
16545
|
|
|
16509
16546
|
// }else{
|
|
16547
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
16510
16548
|
bulkBody.push({
|
|
16511
16549
|
"mmddyyyy": mmddyyyy,
|
|
16512
16550
|
"projectid": this.projectId,
|
|
@@ -16524,7 +16562,7 @@ export class SfIEvents extends LitElement {
|
|
|
16524
16562
|
"reportformatschema": reportformatschema,
|
|
16525
16563
|
"userid": this.userProfileId,
|
|
16526
16564
|
"userrole": this.myRole,
|
|
16527
|
-
"year":
|
|
16565
|
+
"year": yearStr,
|
|
16528
16566
|
"module": listEvent.module ?? "compliance",
|
|
16529
16567
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
16530
16568
|
})
|
|
@@ -17205,6 +17243,7 @@ export class SfIEvents extends LitElement {
|
|
|
17205
17243
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
17206
17244
|
|
|
17207
17245
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
17246
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
17208
17247
|
bulkBodyReview.push({
|
|
17209
17248
|
"mmddyyyy": mmddyyyy,
|
|
17210
17249
|
"projectid": this.projectId,
|
|
@@ -17217,7 +17256,7 @@ export class SfIEvents extends LitElement {
|
|
|
17217
17256
|
"username": this.userName,
|
|
17218
17257
|
"userid": this.userProfileId,
|
|
17219
17258
|
"userrole": this.myRole,
|
|
17220
|
-
"year":
|
|
17259
|
+
"year": yearStr,
|
|
17221
17260
|
"module": event.module ?? "compliance"
|
|
17222
17261
|
})
|
|
17223
17262
|
}
|
|
@@ -17470,6 +17509,7 @@ export class SfIEvents extends LitElement {
|
|
|
17470
17509
|
mmddyyyy = selectedId.split('-')[10] + '/' + selectedId.split('-')[11] + '/' + selectedId.split('-')[12];
|
|
17471
17510
|
|
|
17472
17511
|
//console.log(entityId, locationId, eventId, mmddyyyy);
|
|
17512
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
17473
17513
|
bulkBodyReview.push({
|
|
17474
17514
|
"mmddyyyy": mmddyyyy,
|
|
17475
17515
|
"projectid": this.projectId,
|
|
@@ -17482,7 +17522,7 @@ export class SfIEvents extends LitElement {
|
|
|
17482
17522
|
"username": this.userName,
|
|
17483
17523
|
"userid": this.userProfileId,
|
|
17484
17524
|
"userrole": this.myRole,
|
|
17485
|
-
"year":
|
|
17525
|
+
"year": yearStr,
|
|
17486
17526
|
"module": event.module ?? "compliance"
|
|
17487
17527
|
})
|
|
17488
17528
|
// await this.uploadReview(entityId, locationId, mmddyyyy, eventId, comments, approved)
|
|
@@ -17873,6 +17913,7 @@ export class SfIEvents extends LitElement {
|
|
|
17873
17913
|
// // await this.uploadReview(entityId, locationId, mmddyyyy, eventId, "Auto approved", true);
|
|
17874
17914
|
|
|
17875
17915
|
// }else{
|
|
17916
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
17876
17917
|
bulkBody.push({
|
|
17877
17918
|
"mmddyyyy": mmddyyyy,
|
|
17878
17919
|
"projectid": this.projectId,
|
|
@@ -17890,7 +17931,7 @@ export class SfIEvents extends LitElement {
|
|
|
17890
17931
|
"reportformatschema": reportformatschema,
|
|
17891
17932
|
"userid": this.userProfileId,
|
|
17892
17933
|
"userrole": this.myRole,
|
|
17893
|
-
"year":
|
|
17934
|
+
"year": yearStr,
|
|
17894
17935
|
"module": event.module ?? "compliance",
|
|
17895
17936
|
"makercheckers": (parseInt(makercheckersL) > 0) ? ["makercheckers"] : null
|
|
17896
17937
|
})
|
|
@@ -26216,7 +26257,7 @@ export class SfIEvents extends LitElement {
|
|
|
26216
26257
|
|
|
26217
26258
|
uploadReport = async (entityId: string, locationId: string, mmddyyyy: string, eventid: string, comments: string, doc: string, docs: any, event: any, reportformatvalues: string = "", reportformatschema: string = "", module: string = "compliance", percentage: string = "100", makercheckers: any) => {
|
|
26218
26259
|
let url = "https://" + this.apiId + "/uploadreport1";
|
|
26219
|
-
|
|
26260
|
+
let yearStr = this.getFinancialYear(mmddyyyy)
|
|
26220
26261
|
let body = {
|
|
26221
26262
|
"mmddyyyy": mmddyyyy,
|
|
26222
26263
|
"projectid": this.projectId,
|
|
@@ -26234,7 +26275,7 @@ export class SfIEvents extends LitElement {
|
|
|
26234
26275
|
"reportformatschema": reportformatschema,
|
|
26235
26276
|
"userid": this.userProfileId,
|
|
26236
26277
|
"userrole": this.myRole,
|
|
26237
|
-
"year":
|
|
26278
|
+
"year": yearStr,
|
|
26238
26279
|
"module": module,
|
|
26239
26280
|
"makercheckers": makercheckers
|
|
26240
26281
|
}
|