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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +16 -0
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='9.7.0'
1
+ VERSION='9.7.2'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='9.6.8'
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.9.99",
3
+ "version": "4.9.101",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"