biz9-logic 4.9.99 → 4.9.101
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/biz9_config +1 -1
- package/index.js +16 -0
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -1103,6 +1103,22 @@ class Event_Logic {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
1105
|
class Field_Logic {
|
|
1106
|
+
static get_item_max_group_id = (value_id,item) => {
|
|
1107
|
+
let max_group_id = 0;
|
|
1108
|
+
let full_prop_str = "";
|
|
1109
|
+
for(const prop in item){
|
|
1110
|
+
full_prop_str = String(prop + " "+full_prop_str);
|
|
1111
|
+
}
|
|
1112
|
+
for(let b = 1; b < 30; b++){
|
|
1113
|
+
const exists = Str.check_if_str_exist(full_prop_str,"list_value_"+value_id+"_group_"+b);
|
|
1114
|
+
if(exists){
|
|
1115
|
+
if(b>max_group_id){
|
|
1116
|
+
max_group_id = b;
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
return max_group_id;
|
|
1121
|
+
}
|
|
1106
1122
|
static get_item_field_value_list = (data) => {
|
|
1107
1123
|
let max_value_id = 1;
|
|
1108
1124
|
let max_group_id = 1;
|