biz9-logic 4.8.114 → 4.8.116

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.9.4'
1
+ VERSION='5.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
@@ -200,10 +200,10 @@ class Page_Logic {
200
200
  }
201
201
  class Order_Logic {
202
202
  static get_cart_id = () => {
203
- return FieldType.CART_ID + Number.get_id():
203
+ return FieldType.CART_ID + Number.get_id();
204
204
  }
205
205
  static get_order_id = () => {
206
- return FieldType.ORDER_ID + Number.get_id():
206
+ return FieldType.ORDER_ID + Number.get_id();
207
207
  }
208
208
  static get_test_cart_item = (cart_id,user_id,parent_data_type,parent_id,option) =>{
209
209
  option = Field_Logic.get_option(DataType.CART_ITEM,option?option:{});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.8.114",
3
+ "version": "4.8.116",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/test.js CHANGED
@@ -209,10 +209,11 @@ describe("connect", () => {
209
209
 
210
210
  console.log('PRODUCT-CART-START');
211
211
  let user = User_Logic.get_test({generate_id:true});
212
- let cart_id = "CART"+Number.get_id();
213
- let product_cart = Product_Logic.get_test_cart(cart_id,user.id,{get_cart_item:true,cart_item_count:1, get_cart_sub_item:true,cart_sub_item_count:1 });
212
+ let cart_id = Order_Logic.get_order_id();
213
+ Log.w('cccc',cart_id);
214
+ //let product_cart = Product_Logic.get_test_cart(cart_id,user.id,{get_cart_item:true,cart_item_count:1, get_cart_sub_item:true,cart_sub_item_count:1 });
214
215
  //let product_cart = Product_Logic.get_test_cart(user.id,{get_cart_item:true,order_item_count:1,get_order_sub_item:true,order_sub_item_count:2 });
215
- Log.w('product_cart',product_cart);
216
+ //Log.w('product_cart',product_cart);
216
217
  //Log.w('product_cart_item_list',product_order.order_item_list.length);
217
218
  //Log.w('product_cart_item_list_len',product_order.order_item_list[0].order_sub_item_list.length);
218
219
  //Log.w('product_order',product_order.order_item_list[0].order_sub_item_list.length);