biz9-logic 4.9.41 → 4.9.42

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.
Files changed (3) hide show
  1. package/biz9_config +1 -1
  2. package/index.js +4 -9
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='9.1.1'
1
+ VERSION='9.1.2'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -423,28 +423,23 @@ class Stat_Logic {
423
423
  stat.type=stat_type;
424
424
  if(item.parent_id){
425
425
  stat.parent_id=item.parent_id;
426
- }
427
- if(item.parent_data_type==DataType.PRODUCT || item.parent_data_type==DataType.SERVICE || item.parent_data_type==DataType.EVENT ){
428
426
  stat.parent_data_type=item.parent_data_type;
429
- stat.parent_id=item.parent_id;
427
+ }
428
+ if(item.cost){
430
429
  stat.parent_cost = item.cost;
430
+ }
431
+ if(item.quanity){
431
432
  stat.parent_quanity = item.quanity;
432
433
  }
433
434
  if(item.data_type==DataType.CART_ITEM){
434
- stat.parent_data_type=item.parent_data_type;
435
- stat.parent_id=item.parent_id;
436
435
  stat.parent_cart_id = item.cart_id;
437
436
  stat.parent_cart_number = item.cart_number;
438
437
  }
439
438
  if(item.data_type==DataType.ORDER_ITEM){
440
- stat.parent_data_type=item.parent_data_type;
441
- stat.parent_id=item.parent_id;
442
439
  stat.parent_order_id = item.order_id;
443
440
  stat.parent_order_number = item.order_number;
444
441
  }
445
442
  if(item.data_type==DataType.ORDER_PAYMENT){
446
- stat.parent_data_type=item.data_type;
447
- stat.parent_id=item.id;
448
443
  stat.parent_order_number = item.order_number;
449
444
  stat.parent_payment_method_type = item.payment_method_type;
450
445
  stat.parent_payment_amount = item.payment_amount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.9.41",
3
+ "version": "4.9.42",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"