25 $resultList = array();
27 $allowPayStatus = Main\Config\Option::get(
"sale",
"allow_pay_status", static::getInitialStatus());
29 $statusList = static::getAllStatuses();
30 if (!empty($statusList))
32 foreach ($statusList as $statusId)
34 if ($allowPayStatus == $statusId)
39 if ($allowFlag ===
false)
41 $resultList[] = $statusId;
58 $resultList = array();
60 $allowPayStatus = Main\Config\Option::get(
"sale",
"allow_pay_status", static::getInitialStatus());
62 $statusList = static::getAllStatuses();
63 if (!empty($statusList))
65 foreach ($statusList as $statusId)
67 if ($allowPayStatus == $statusId)
72 if ($allowFlag ===
true)
74 $resultList[] = $statusId;