biz9-logic 4.8.52 → 4.8.55
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 +7 -3
- package/package.json +1 -1
- package/test.js +10 -7
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -370,6 +370,8 @@ class Field_Logic {
|
|
|
370
370
|
let note = "Note "+String(Number.get_id());
|
|
371
371
|
option.category_title = !Str.check_is_null(option.category_title) ? option.category_title : 'Category '+String(Number.get_id());
|
|
372
372
|
if(option.get_blank == true){
|
|
373
|
+
date_create:"";
|
|
374
|
+
date_save:"";
|
|
373
375
|
title = "";
|
|
374
376
|
sub_note = "";
|
|
375
377
|
note = "";
|
|
@@ -381,7 +383,10 @@ class Field_Logic {
|
|
|
381
383
|
title_url:Str.get_title_url(title),
|
|
382
384
|
category:option.category_title,
|
|
383
385
|
sub_note:sub_note,
|
|
384
|
-
note:note
|
|
386
|
+
note:note,
|
|
387
|
+
id:Number.get_guid(),
|
|
388
|
+
date_create:new moment().toISOString(),
|
|
389
|
+
date_save:new moment().toISOString()
|
|
385
390
|
}
|
|
386
391
|
if(option.get_value){
|
|
387
392
|
item = Field_Logic.get_value_list(item,option);
|
|
@@ -396,7 +401,6 @@ class Field_Logic {
|
|
|
396
401
|
}
|
|
397
402
|
}
|
|
398
403
|
}
|
|
399
|
-
Log.w('rrr',item);
|
|
400
404
|
return item;
|
|
401
405
|
}
|
|
402
406
|
static get_value_list(item,option){
|
|
@@ -775,7 +779,7 @@ class Review_Logic {
|
|
|
775
779
|
review.last_name="Last Name "+ Number.get_id();
|
|
776
780
|
review.hometown="Hometown "+ Number.get_id();
|
|
777
781
|
review.position="Position "+ Number.get_id();
|
|
778
|
-
review.
|
|
782
|
+
review.rating=Number.get_id(6);
|
|
779
783
|
review.comment="My comment "+ Number.get_id() + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
|
|
780
784
|
return review;
|
|
781
785
|
};
|
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const series = require('async-series');
|
|
3
|
-
const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq_Logic,Category_Url,Blank_Url,Blank_Logic,Item_Logic,Service_Logic,Template_Logic,Page_Logic,Product_Logic,Event_Logic,Blog_Post_Logic,Content_Logic,Category_Logic,Team_Logic,Business_Logic,PageType,Sub_Item_Logic,Page_Url} = require('./index');
|
|
3
|
+
const {DataItem,DataType,Url,Obj,BiZ_Url,Cat,Stock,Schedule,Storage,Business,Product,Service,Event,Template,Page,Category,Review,Blog_Post,Faq_Logic,Category_Url,Blank_Url,Blank_Logic,Item_Logic,Service_Logic,Template_Logic,Page_Logic,Product_Logic,Event_Logic,Blog_Post_Logic,Content_Logic,Category_Logic,Team_Logic,Business_Logic,PageType,Sub_Item_Logic,Page_Url,Review_Logic} = require('./index');
|
|
4
4
|
const {Log,Number} = require('biz9-utility');
|
|
5
5
|
const {Scriptz}= require('biz9-scriptz');
|
|
6
6
|
|
|
@@ -67,12 +67,12 @@ describe("connect", () => {
|
|
|
67
67
|
|
|
68
68
|
/* --TEAM--START */
|
|
69
69
|
//let team = Team_Logic.get_test()
|
|
70
|
-
let team = Team_Logic.get_test({get_value:false,get_member:true})
|
|
70
|
+
//let team = Team_Logic.get_test({get_value:false,get_member:true})
|
|
71
71
|
//let team_member = Team_Logic.get_test_member(team,{get_value:true,get_blank:false,fields:['hometown','member_since', 'speaks','last_project','avg_response_time']});
|
|
72
72
|
//let team_member = Blog_Post_Logic.get_test({get_value:true,get_blank:false,fields:['hometown','member_since', 'speaks','last_project','avg_response_time']});
|
|
73
|
-
let team_member = Team_Logic.get_test_member(Team_Logic.get_test(),{fields:["hometown_aa","member_since_bb"], get_value:true});
|
|
73
|
+
//let team_member = Team_Logic.get_test_member(Team_Logic.get_test(),{fields:["hometown_aa","member_since_bb"], get_value:true});
|
|
74
74
|
//Log.w("team",team);
|
|
75
|
-
Log.w("team_member",team_member);
|
|
75
|
+
//Log.w("team_member",team_member);
|
|
76
76
|
//let team_list = Team_Logic.get_test_list();
|
|
77
77
|
//let [team_list,team_list]=Team_Logic.get_test_list_by_team();
|
|
78
78
|
//Log.w('team_list',team_list);
|
|
@@ -166,9 +166,10 @@ describe("connect", () => {
|
|
|
166
166
|
/* --SERVICE--END */
|
|
167
167
|
|
|
168
168
|
|
|
169
|
-
/* --PRODUCT--START */
|
|
170
|
-
|
|
169
|
+
/* --PRODUCT--START */
|
|
171
170
|
//let product = Product_Logic.get_test("Product 1",{get_value:true,get_item:true})
|
|
171
|
+
//let product = Product_Logic.get_test({fields:["date_create"]})
|
|
172
|
+
//let product = Product_Logic.get_test({fields:["cool_beanj]})
|
|
172
173
|
//Log.w("product",product);
|
|
173
174
|
//let product_list = Product_Logic.get_test_list({product_count:10,get_blank:true});
|
|
174
175
|
//let product_list = Product_Logic.get_test_list();
|
|
@@ -276,7 +277,7 @@ describe("connect", () => {
|
|
|
276
277
|
|
|
277
278
|
/* --REVIEW--START */
|
|
278
279
|
//Log.w("Review",Review.get_test());
|
|
279
|
-
|
|
280
|
+
Log.w("Review List",Review_Logic.get_test_list());
|
|
280
281
|
/*
|
|
281
282
|
let review_list = Review.get_test_list({review_count:3,get_item:true})
|
|
282
283
|
Log.w("Review List",review_list);
|
|
@@ -299,6 +300,7 @@ describe("connect", () => {
|
|
|
299
300
|
},
|
|
300
301
|
|
|
301
302
|
function(call) {
|
|
303
|
+
/*
|
|
302
304
|
console.log('GET-FULL-ITEM-START');
|
|
303
305
|
let item = DataItem.get_new(DataType.BLANK,0);
|
|
304
306
|
let parent_item = DataItem.get_new(DataType.BLOG_POST,2);
|
|
@@ -306,6 +308,7 @@ describe("connect", () => {
|
|
|
306
308
|
let options={title:'cool_bean'};
|
|
307
309
|
console.log(DataItem.get_new_full_item(item,parent_item,top_item,options));
|
|
308
310
|
console.log('GET-FULL-ITEM-END');
|
|
311
|
+
*/
|
|
309
312
|
//call();
|
|
310
313
|
},
|
|
311
314
|
|