biz9-logic 4.9.21 → 4.9.26

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='8.9.1'
1
+ VERSION='8.9.6'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -168,6 +168,20 @@ class Demo_Logic {
168
168
  }
169
169
 
170
170
  class Type {
171
+
172
+ static get_stat_type_list = () =>{
173
+ return [
174
+ {title:Type.get_title(Type.STAT_VIEW),type:Type.STAT_VIEW,label:Type.get_title(Type.STAT_VIEW),value:Type.STAT_VIEW},
175
+ {title:Type.get_title(Type.STAT_LOGIN),type:Type.STAT_LOGIN,label:Type.get_title(Type.STAT_LOGIN),value:Type.STAT_LOGIN},
176
+ {title:Type.get_title(Type.STAT_REGISTER),type:Type.STAT_REGISTER,label:Type.get_title(Type.STAT_REGISTER),value:Type.STAT_REGISTER},
177
+ {title:Type.get_title(Type.STAT_LIKE),type:Type.STAT_LIKE,label:Type.get_title(Type.STAT_LIKE),value:Type.STAT_LIKE},
178
+ {title:Type.get_title(Type.STAT_FAVORITE),type:Type.STAT_FAVORITE,label:Type.get_title(Type.STAT_FAVORITE),value:Type.STAT_FAVORITE},
179
+ {title:Type.get_title(Type.STAT_CART),type:Type.STAT_CART,label:Type.get_title(Type.STAT_CART),value:Type.STAT_CART},
180
+ {title:Type.get_title(Type.STAT_ORDER),type:Type.STAT_ORDER,label:Type.get_title(Type.STAT_ORDER),value:Type.STAT_ORDER},
181
+ {title:Type.get_title(Type.STAT_REVIEW),type:Type.STAT_REVIEW,label:Type.get_title(Type.STAT_REVIEW),value:Type.STAT_REVIEW},
182
+ ]
183
+ };
184
+
171
185
  //page
172
186
  static PAGE_ABOUT='about';
173
187
  static PAGE_CONTACT='contact';
@@ -487,7 +501,6 @@ class Order_Logic {
487
501
  });
488
502
  order.order_item_list.push(order_item);
489
503
  });
490
- order = Order_Logic.get_total(order);
491
504
  return order;
492
505
  };
493
506
  static get_new_order_payment = (order_number,payment_method_type,payment_amount) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.9.21",
3
+ "version": "4.9.26",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -32,8 +32,9 @@ describe("connect", () => {
32
32
  function(call) {
33
33
  console.log('CONNECT-START');
34
34
 
35
+ let post_cart = {};
35
36
  //let post_cart = Cart_Logic.get_new(DataType.PRODUCT,0,);
36
- let post_cart = Cart_Logic.get_new(DataType.PRODUCT,0);
37
+ Log.w('11_type',Type.get_stat_list());
37
38
  //let post_cart_list = [];
38
39
  //let post_cart_item = Cart_Logic.get_new_cart_item(DataType.PRODUCT,123,post_cart.cart_number,1,30);
39
40
  //let post_cart_sub_item = Cart_Logic.get_new_cart_sub_item(DataType.PRODUCT,1234,post_cart.cart_number,1,10);
@@ -43,7 +44,7 @@ describe("connect", () => {
43
44
  //post_cart.cart_item_list.push(post_cart_item);
44
45
 
45
46
  //Log.w('post_cart',post_cart);
46
- Log.w('post_order',Order_Logic.get_new(post_cart,{get_payment_plan:true,payment_plan:Title.ORDER_PAYMENT_PLAN_1,payment_plan_status:Title.ORDER_PAYMENT_STATUS_OPEN}));
47
+ //Log.w('post_order',Order_Logic.get_new(post_cart,{get_payment_plan:true,payment_plan:Title.ORDER_PAYMENT_PLAN_1,payment_plan_status:Title.ORDER_PAYMENT_STATUS_OPEN}));
47
48
  //Log.w('post_cart_2',Cart_Logic.get_total(post_cart));
48
49
 
49
50
  console.log('CONNECT-END');