biz9-logic 4.8.55 → 4.8.59

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='5.3.5'
1
+ VERSION='5.3.9'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -104,7 +104,7 @@ class Team_Logic {
104
104
  option = Field_Logic.get_option(DataType.TEAM,option?option:{});
105
105
  let item_list = [];
106
106
  for(let a=0;a<option.member_count+1;a++){
107
- item_list.push(Team_Logic.get_test_member("Full Name " +parseInt(a+1),team,option));
107
+ item_list.push(Team_Logic.get_test_member(team,"Full Name " +parseInt(a+1),option));
108
108
  }
109
109
  return item_list;
110
110
  }
@@ -384,7 +384,7 @@ class Field_Logic {
384
384
  category:option.category_title,
385
385
  sub_note:sub_note,
386
386
  note:note,
387
- id:Number.get_guid(),
387
+ id:0,
388
388
  date_create:new moment().toISOString(),
389
389
  date_save:new moment().toISOString()
390
390
  }
@@ -471,7 +471,7 @@ class Field_Logic {
471
471
  option.section_count = option.section_count ? option.section_count : 9;
472
472
  option.get_section = option.get_section ? true : false;
473
473
  }
474
- if(option.data_type==DataType.PRODUCT){
474
+ if(data_type==DataType.PRODUCT){
475
475
  option.product_count = option.product_count ? option.product_count : 9;
476
476
  }
477
477
  if(data_type==DataType.SERVICE){
@@ -589,6 +589,10 @@ class PageType {
589
589
  static BLOG_POST_BROWSE='blog_post_browse';
590
590
  static BLOG_POST_DETAIL='blog_post_detail';
591
591
 
592
+ static CATEGORY='category';
593
+ static CATEGORY_BROWSE='category_browse';
594
+ static CATEGORY_DETAIL='category_detail';
595
+
592
596
  static EVENT='event';
593
597
  static EVENT_BROWSE='event_browse';
594
598
  static EVENT_DETAIL='event_detail';
@@ -779,7 +783,7 @@ class Review_Logic {
779
783
  review.last_name="Last Name "+ Number.get_id();
780
784
  review.hometown="Hometown "+ Number.get_id();
781
785
  review.position="Position "+ Number.get_id();
782
- review.rating=Number.get_id(6);
786
+ review.rating=parseInt(Number.get_id(6)+1);
783
787
  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.";
784
788
  return review;
785
789
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.55",
3
+ "version": "4.8.59",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -172,8 +172,8 @@ describe("connect", () => {
172
172
  //let product = Product_Logic.get_test({fields:["cool_beanj]})
173
173
  //Log.w("product",product);
174
174
  //let product_list = Product_Logic.get_test_list({product_count:10,get_blank:true});
175
- //let product_list = Product_Logic.get_test_list();
176
- //Log.w('product_list',product_list);
175
+ let product_list = Product_Logic.get_test_list();
176
+ Log.w('product_list',product_list);
177
177
  //let [category_list,product_list]=Product.get_test_list_by_category({category_count:5,product_count:9});
178
178
  //Log.w('category_list',category_list);
179
179
 
@@ -277,7 +277,7 @@ describe("connect", () => {
277
277
 
278
278
  /* --REVIEW--START */
279
279
  //Log.w("Review",Review.get_test());
280
- Log.w("Review List",Review_Logic.get_test_list());
280
+ //Log.w("Review List",Review_Logic.get_test_list());
281
281
  /*
282
282
  let review_list = Review.get_test_list({review_count:3,get_item:true})
283
283
  Log.w("Review List",review_list);