fixed createWorkordersFromPreorders to add statusflag filter
This commit is contained in:
@@ -85,7 +85,7 @@ class RMLWorkorderAdminController extends TTCrud
|
||||
}
|
||||
|
||||
private function createWorkordersFromPreorders() {
|
||||
$newPreorders = PreorderModel::searchActive(['status_code' => 220]);
|
||||
$newPreorders = PreorderModel::searchActive(['status_code' => 220, 'preorder_status_flags_all' => [3,5]]);
|
||||
if (empty($newPreorders)) return;
|
||||
|
||||
foreach ($newPreorders as $preorder) {
|
||||
|
||||
Reference in New Issue
Block a user