biz9-logic 4.9.41 → 4.9.43

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 +7 -9
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='9.1.1'
1
+ VERSION='9.1.3'
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,26 @@ 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
+ }else{
428
+ stat.parent_id=item.id;
429
+ stat.parent_data_type=item.data_type;
430
+ }
431
+ if(item.cost){
430
432
  stat.parent_cost = item.cost;
433
+ }
434
+ if(item.quanity){
431
435
  stat.parent_quanity = item.quanity;
432
436
  }
433
437
  if(item.data_type==DataType.CART_ITEM){
434
- stat.parent_data_type=item.parent_data_type;
435
- stat.parent_id=item.parent_id;
436
438
  stat.parent_cart_id = item.cart_id;
437
439
  stat.parent_cart_number = item.cart_number;
438
440
  }
439
441
  if(item.data_type==DataType.ORDER_ITEM){
440
- stat.parent_data_type=item.parent_data_type;
441
- stat.parent_id=item.parent_id;
442
442
  stat.parent_order_id = item.order_id;
443
443
  stat.parent_order_number = item.order_number;
444
444
  }
445
445
  if(item.data_type==DataType.ORDER_PAYMENT){
446
- stat.parent_data_type=item.data_type;
447
- stat.parent_id=item.id;
448
446
  stat.parent_order_number = item.order_number;
449
447
  stat.parent_payment_method_type = item.payment_method_type;
450
448
  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.43",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"