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 +1 -1
- package/index.js +3 -1
- package/package.json +1 -1
- package/test.js +1 -1
package/biz9_config
CHANGED
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
|
-
|
|
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
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:
|
|
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
|
|