@etsoo/smarterp-core 1.1.9 → 1.1.10

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.
@@ -100,7 +100,7 @@ export interface ICoreApp {
100
100
  /**
101
101
  * Get identity flags
102
102
  * 获取身份标志组合
103
- * @param identity Identity value combined
103
+ * @param identity Identity value combined or true for items other than None
104
104
  * @returns List
105
105
  */
106
106
  getIdentityFlags(identity?: number | true): ListType[];
@@ -179,8 +179,11 @@ class CoreApp {
179
179
  return id;
180
180
  });
181
181
  }
182
+ if (identity === 0)
183
+ return [];
184
+ // When identity exists, includes the None item
182
185
  return this.app.getEnumList(appscript_1.IdentityTypeFlags, "id", (id, _key) => {
183
- if ((id & identity) > 0)
186
+ if (id === 0 || (id & identity) > 0)
184
187
  return id;
185
188
  });
186
189
  }
@@ -40,7 +40,7 @@
40
40
  "fullName": "Full name",
41
41
  "idCustomer": "Customer",
42
42
  "idDept": "Department",
43
- "idNone": "None",
43
+ "idNone": "Contact",
44
44
  "idOrg": "Organization",
45
45
  "idSupplier": "Supplier",
46
46
  "idUser": "User",
@@ -40,7 +40,7 @@
40
40
  "fullName": "全称",
41
41
  "idCustomer": "客户",
42
42
  "idDept": "部门",
43
- "idNone": "",
43
+ "idNone": "联系人",
44
44
  "idOrg": "机构",
45
45
  "idSupplier": "供应商",
46
46
  "idUser": "用户",
@@ -43,7 +43,7 @@
43
43
  "lightMode": "淺色模式",
44
44
  "idCustomer": "客戶",
45
45
  "idDept": "部門",
46
- "idNone": "",
46
+ "idNone": "聯絡人",
47
47
  "idOrg": "機構",
48
48
  "idSupplier": "供應商",
49
49
  "idUser": "用户",
@@ -100,7 +100,7 @@ export interface ICoreApp {
100
100
  /**
101
101
  * Get identity flags
102
102
  * 获取身份标志组合
103
- * @param identity Identity value combined
103
+ * @param identity Identity value combined or true for items other than None
104
104
  * @returns List
105
105
  */
106
106
  getIdentityFlags(identity?: number | true): ListType[];
@@ -176,8 +176,11 @@ export class CoreApp {
176
176
  return id;
177
177
  });
178
178
  }
179
+ if (identity === 0)
180
+ return [];
181
+ // When identity exists, includes the None item
179
182
  return this.app.getEnumList(IdentityTypeFlags, "id", (id, _key) => {
180
- if ((id & identity) > 0)
183
+ if (id === 0 || (id & identity) > 0)
181
184
  return id;
182
185
  });
183
186
  }
@@ -40,7 +40,7 @@
40
40
  "fullName": "Full name",
41
41
  "idCustomer": "Customer",
42
42
  "idDept": "Department",
43
- "idNone": "None",
43
+ "idNone": "Contact",
44
44
  "idOrg": "Organization",
45
45
  "idSupplier": "Supplier",
46
46
  "idUser": "User",
@@ -40,7 +40,7 @@
40
40
  "fullName": "全称",
41
41
  "idCustomer": "客户",
42
42
  "idDept": "部门",
43
- "idNone": "",
43
+ "idNone": "联系人",
44
44
  "idOrg": "机构",
45
45
  "idSupplier": "供应商",
46
46
  "idUser": "用户",
@@ -43,7 +43,7 @@
43
43
  "lightMode": "淺色模式",
44
44
  "idCustomer": "客戶",
45
45
  "idDept": "部門",
46
- "idNone": "",
46
+ "idNone": "聯絡人",
47
47
  "idOrg": "機構",
48
48
  "idSupplier": "供應商",
49
49
  "idUser": "用户",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/smarterp-core",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "TypeScript APIs for SmartERP Core",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
package/src/CoreApp.ts CHANGED
@@ -123,7 +123,7 @@ export interface ICoreApp {
123
123
  /**
124
124
  * Get identity flags
125
125
  * 获取身份标志组合
126
- * @param identity Identity value combined
126
+ * @param identity Identity value combined or true for items other than None
127
127
  * @returns List
128
128
  */
129
129
  getIdentityFlags(identity?: number | true): ListType[];
@@ -316,8 +316,11 @@ export class CoreApp implements ICoreApp {
316
316
  });
317
317
  }
318
318
 
319
+ if (identity === 0) return [];
320
+
321
+ // When identity exists, includes the None item
319
322
  return this.app.getEnumList(IdentityTypeFlags, "id", (id, _key) => {
320
- if ((id & identity) > 0) return id;
323
+ if (id === 0 || (id & identity) > 0) return id;
321
324
  });
322
325
  }
323
326
  }
package/src/i18n/en.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "fullName": "Full name",
41
41
  "idCustomer": "Customer",
42
42
  "idDept": "Department",
43
- "idNone": "None",
43
+ "idNone": "Contact",
44
44
  "idOrg": "Organization",
45
45
  "idSupplier": "Supplier",
46
46
  "idUser": "User",
@@ -40,7 +40,7 @@
40
40
  "fullName": "全称",
41
41
  "idCustomer": "客户",
42
42
  "idDept": "部门",
43
- "idNone": "",
43
+ "idNone": "联系人",
44
44
  "idOrg": "机构",
45
45
  "idSupplier": "供应商",
46
46
  "idUser": "用户",
@@ -43,7 +43,7 @@
43
43
  "lightMode": "淺色模式",
44
44
  "idCustomer": "客戶",
45
45
  "idDept": "部門",
46
- "idNone": "",
46
+ "idNone": "聯絡人",
47
47
  "idOrg": "機構",
48
48
  "idSupplier": "供應商",
49
49
  "idUser": "用户",