biz9-logic 4.9.79 → 4.9.80
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 +1 -1
- package/index.js +1 -8
- package/package.json +1 -1
package/biz9_config
CHANGED
package/index.js
CHANGED
|
@@ -93,9 +93,6 @@ class Title {
|
|
|
93
93
|
static ORDER_STATUS_OPEN="Open";
|
|
94
94
|
static ORDER_STATUS_ON_HOLD="On Hold";
|
|
95
95
|
static ORDER_STATUS_RETURNED="Returned";
|
|
96
|
-
static ORDER_PAYMENT_STATUS_COMPLETE="Complete";
|
|
97
|
-
static ORDER_PAYMENT_STATUS_NEW="New";
|
|
98
|
-
static ORDER_PAYMENT_STATUS_OPEN="Open";
|
|
99
96
|
static ORDER_PAYMENT_PLAN_NEW="New";
|
|
100
97
|
static ORDER_PAYMENT_PLAN_1="1 Payment";
|
|
101
98
|
static ORDER_PAYMENT_PLAN_2="2 Payments";
|
|
@@ -482,9 +479,6 @@ class Type {
|
|
|
482
479
|
case Type.ORDER_STATUS_RETURNED:
|
|
483
480
|
case Type.ORDER_STATUS_ON_HOLD:
|
|
484
481
|
case Type.ORDER_STATUS_CANCELLED:
|
|
485
|
-
case Type.ORDER_PAYMENT_STATUS_COMPLETE:
|
|
486
|
-
case Type.ORDER_PAYMENT_STATUS_NEW:
|
|
487
|
-
case Type.ORDER_PAYMENT_STATUS_OPEN:
|
|
488
482
|
case Type.ORDER_PAYMENT_PLAN_NEW:
|
|
489
483
|
case Type.ORDER_PAYMENT_PLAN_1:
|
|
490
484
|
case Type.ORDER_PAYMENT_PLAN_2:
|
|
@@ -630,7 +624,7 @@ class Page_Logic {
|
|
|
630
624
|
}
|
|
631
625
|
class Order_Logic {
|
|
632
626
|
static get_new = (cart,option) => {
|
|
633
|
-
option = option?option:{get_payment_plan:false,payment_plan:Title.ORDER_PAYMENT_PLAN_1
|
|
627
|
+
option = option?option:{get_payment_plan:false,payment_plan:Title.ORDER_PAYMENT_PLAN_1};
|
|
634
628
|
let order = DataItem.get_new(DataType.ORDER,0,{
|
|
635
629
|
order_number:Title.ORDER_NUMBER + Num.get_id(99999),
|
|
636
630
|
parent_data_type:cart.parent_data_type,
|
|
@@ -653,7 +647,6 @@ class Order_Logic {
|
|
|
653
647
|
}
|
|
654
648
|
if(option.get_payment_plan){
|
|
655
649
|
order.payment_plan = option.payment_plan;
|
|
656
|
-
order.payment_status = option.payment_plan_status;
|
|
657
650
|
}
|
|
658
651
|
cart.cart_item_list.forEach(cart_item => {
|
|
659
652
|
let order_item = DataItem.get_new(DataType.ORDER_ITEM,0,{
|