@optimiser/common 1.0.403 → 1.0.405
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/dist/lib/utility.d.ts +3 -2
- package/dist/lib/utility.js +11 -7
- package/package.json +1 -1
package/dist/lib/utility.d.ts
CHANGED
|
@@ -260,10 +260,11 @@ declare function CreateBanquetingVATSettingsData(msp_d: AnyObjectInterface, db:
|
|
|
260
260
|
declare function CheckReportFolderAccess(report: AnyObjectInterface, db: Db, msp_d: AnyObjectInterface, folderActiveStatus?: boolean): Promise<boolean>;
|
|
261
261
|
/**
|
|
262
262
|
* TODO: Return On behalf String in Calendar Invitation mails
|
|
263
|
-
* @param fromUser From User Name
|
|
263
|
+
* @param {string} fromUser From User Name
|
|
264
|
+
* @param {boolean} isIgnoreTemplate boolean flag pass true to get only fromUser
|
|
264
265
|
* @returns string
|
|
265
266
|
*/
|
|
266
|
-
declare function GetMailFromString(fromUser: string): string;
|
|
267
|
+
declare function GetMailFromString(fromUser: string, isIgnoreTemplate?: boolean): string;
|
|
267
268
|
/**
|
|
268
269
|
* TODO: Return On behalf String in Calendar Invitation mails
|
|
269
270
|
* @param fromUser From User Name
|
package/dist/lib/utility.js
CHANGED
|
@@ -821,8 +821,9 @@ function DeleteFieldInOtherCollection(objectName, objectIDs, db, params, comMast
|
|
|
821
821
|
_c);
|
|
822
822
|
}
|
|
823
823
|
else {
|
|
824
|
-
/*On deletion of
|
|
825
|
-
if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
824
|
+
/*On deletion set Lookupdata & Value to null instead of marking it as IsActive False in LookupData - QPC-9876*/
|
|
825
|
+
//if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
826
|
+
if (obj.Fields.ResetToNullOnDelete == true) {
|
|
826
827
|
query.set = (_d = {},
|
|
827
828
|
_d[obj.Fields.Name] = null,
|
|
828
829
|
_d[alias] = null,
|
|
@@ -943,8 +944,9 @@ function DeleteFieldInOtherCollection(objectName, objectIDs, db, params, comMast
|
|
|
943
944
|
_c);
|
|
944
945
|
}
|
|
945
946
|
else {
|
|
946
|
-
/*On deletion of
|
|
947
|
-
if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
947
|
+
/*On deletion set Lookupdata & Value to null instead of marking it as IsActive False in LookupData - QPC-9876*/
|
|
948
|
+
//if (((objectName == "Pipeline" && obj.Fields.Name == "PipelineID") || (objectName == "Events" && obj.Fields.Name == "EventID")) && obj.Name == "Activity") {
|
|
949
|
+
if (obj.Fields.ResetToNullOnDelete == true) {
|
|
948
950
|
query.set = (_d = {},
|
|
949
951
|
_d[obj.Fields.Name] = null,
|
|
950
952
|
_d[alias] = null,
|
|
@@ -5491,11 +5493,13 @@ function CheckReportFolderAccess(report, db, msp_d, folderActiveStatus) {
|
|
|
5491
5493
|
exports.CheckReportFolderAccess = CheckReportFolderAccess;
|
|
5492
5494
|
/**
|
|
5493
5495
|
* TODO: Return On behalf String in Calendar Invitation mails
|
|
5494
|
-
* @param fromUser From User Name
|
|
5496
|
+
* @param {string} fromUser From User Name
|
|
5497
|
+
* @param {boolean} isIgnoreTemplate boolean flag pass true to get only fromUser
|
|
5495
5498
|
* @returns string
|
|
5496
5499
|
*/
|
|
5497
|
-
function GetMailFromString(fromUser) {
|
|
5498
|
-
|
|
5500
|
+
function GetMailFromString(fromUser, isIgnoreTemplate) {
|
|
5501
|
+
if (isIgnoreTemplate === void 0) { isIgnoreTemplate = false; }
|
|
5502
|
+
return isIgnoreTemplate ? fromUser : "Optimiser (on behalf of ".concat(fromUser, ")");
|
|
5499
5503
|
}
|
|
5500
5504
|
exports.GetMailFromString = GetMailFromString;
|
|
5501
5505
|
/**
|