biz9-logic 4.0.22 → 4.0.23

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 CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='4.2.2'
1
+ VERSION='4.2.3'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -92,9 +92,11 @@ class Product{
92
92
  }
93
93
  }
94
94
  let category_list = Category.get_type_category_list(DataType.PRODUCT,category_count);
95
+ let item_count = 0;
95
96
  for(let a=0;a<category_list.length;a++){
96
97
  for(let b=0;b<product_count;b++){
97
- let product = Product.get_test("Product " + b);
98
+ item_count++;
99
+ let product = Product.get_test("Product " + String(item_count));
98
100
  product.category = category_list[Number.get_id(category_list.length-1)].title;
99
101
  product_list.push(product);
100
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.0.22",
3
+ "version": "4.0.23",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -52,7 +52,7 @@ describe("connect", () => {
52
52
  /* --PRODUCT--START */
53
53
  //let product = Product.get_test_list_by_category();
54
54
  //Log.w('product_test',Product.get_test("Product " + Number.get_id(),{get_items:false}));
55
- Log.w('product_list_test',Product.get_test_list_by_category({get_items:false,product_count:2,category_count:3}));
55
+ Log.w('product_list_test',Product.get_test_list_by_category({get_items:false,product_count:9,category_count:3}));
56
56
  //console.log(Product.get_test("Product " + Number.get_id(),{get_items:false}));
57
57
  /* --PRODUCT--END */
58
58