File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2146,14 +2146,18 @@ public static function updateBillState($ID)
2146
2146
2147
2147
$ order = new self ();
2148
2148
$ order ->getFromDB ($ ID );
2149
+ $ conf = PluginOrderConfig::getConfig ();
2149
2150
if ($ all_paid ) {
2150
- $ state = PluginOrderBillState::PAID ;
2151
+ $ bill_state = PluginOrderBillState::PAID ;
2152
+ $ order_status = $ conf ->fields ['order_status_paid ' ];
2151
2153
} else {
2152
- $ state = PluginOrderBillState::NOTPAID ;
2154
+ $ bill_state = PluginOrderBillState::NOTPAID ;
2155
+ $ order_status = $ order ->fields ['plugin_order_orderstates_id ' ];
2153
2156
}
2154
2157
$ order ->update ([
2155
2158
'id ' => $ ID ,
2156
- 'plugin_order_billstates_id ' => $ state
2159
+ 'plugin_order_billstates_id ' => $ bill_state ,
2160
+ 'plugin_order_orderstates_id ' => $ order_status
2157
2161
]);
2158
2162
}
2159
2163
You can’t perform that action at this time.
0 commit comments