-
Notifications
You must be signed in to change notification settings - Fork 0
isset QUERY
B0Bka edited this page May 7, 2023
·
5 revisions
private function isOrderQuick(int $orderId) : bool
{
$q = \Bitrix\Sale\Internals\OrderPropsValueTable::query()
->setSelect(['ID'])
->where([
['ORDER_ID', $orderId],
['CODE', 'ORDER_TYPE']
])
->whereIn('VALUE', self::QUICK_ORDERS)
->setLimit(1);
return (bool) ($q->exec()->getSelectedRowsCount() > 0);
}