biz9-logic 4.8.71 → 4.8.72
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 +6 -5
- package/package.json +1 -1
- package/test.js +5 -4
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -453,12 +453,13 @@ class Field_Logic {
|
|
|
453
453
|
item = Field_Logic.get_value_list(item,option);
|
|
454
454
|
}
|
|
455
455
|
if(option.fields){
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
let field_list = option.fields.split(',');
|
|
457
|
+
Log.w('field_list',field_list);
|
|
458
|
+
for(let a = 0; a<field_list.length;a++){
|
|
459
|
+
if(option.get_blank == true){
|
|
460
|
+
item[field_list[a]] = "";
|
|
459
461
|
}else{
|
|
460
|
-
item[
|
|
461
|
-
|
|
462
|
+
item[Str.get_title_url(field_list[a])] = Str.get_title(field_list[a]) +"_" + Number.get_id();
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
}
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -47,10 +47,10 @@ describe("connect", () => {
|
|
|
47
47
|
},
|
|
48
48
|
|
|
49
49
|
function(call) {
|
|
50
|
-
console.log('STORAGE-START');
|
|
51
|
-
console.log(Storage.get({},'apples'));
|
|
50
|
+
//console.log('STORAGE-START');
|
|
51
|
+
//console.log(Storage.get({},'apples'));
|
|
52
52
|
//Log.w('storage-start',Storage.set(Number.get_id()));
|
|
53
|
-
console.log('STORAGE-END');
|
|
53
|
+
//console.log('STORAGE-END');
|
|
54
54
|
/* --PAGE--START */
|
|
55
55
|
//let page = Page_Logic.get_test()
|
|
56
56
|
//let page = Page_Logic.get_test("Page "+Number.get_id())
|
|
@@ -196,8 +196,9 @@ describe("connect", () => {
|
|
|
196
196
|
//let product = Product_Logic.get_test({fields:["cool_beanj]})
|
|
197
197
|
//Log.w("product",product);
|
|
198
198
|
//let product_list = Product_Logic.get_test_list({product_count:10,get_blank:true});
|
|
199
|
+
let product_list = Product_Logic.get_test_list({product_count:2,get_blank:false,fields:'delivery_time,apple'})
|
|
199
200
|
//let product_list = Product_Logic.get_test_list();
|
|
200
|
-
|
|
201
|
+
Log.w('product_list',product_list);
|
|
201
202
|
//let [category_list,product_list]=Product.get_test_list_by_category({category_count:5,product_count:9});
|
|
202
203
|
//Log.w('category_list',category_list);
|
|
203
204
|
|