biz9-logic 4.9.36 → 4.9.39

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 +3 -3
  3. package/package.json +1 -1
package/biz9_config CHANGED
@@ -1,4 +1,4 @@
1
- VERSION='9.0.6'
1
+ VERSION='9.0.9'
2
2
  TITLE='BiZ9-Logic';
3
3
  REPO='git@github.com:biz9framework/biz9-logic.git';
4
4
  BRANCH='main';
package/index.js CHANGED
@@ -429,9 +429,9 @@ class Stat_Logic {
429
429
  stat.parent_cart_id = item.cart_id;
430
430
  stat.parent_cart_number = item.cart_number;
431
431
  }
432
- if(item.data_type==DataType.ORDER){
433
- stat.parent_data_type=item.data_type;
434
- stat.parent_id=item.id;
432
+ if(item.data_type==DataType.ORDER_ITEM){
433
+ stat.parent_data_type=item.parent_data_type;
434
+ stat.parent_id=item.parent_id;
435
435
  stat.parent_order_id = item.order_id;
436
436
  stat.parent_order_number = item.order_number;
437
437
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biz9-logic",
3
- "version": "4.9.36",
3
+ "version": "4.9.39",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"