|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
if(is_array($arrayOrders) && count($arrayOrders) > 0) { |
|
|
if(is_array($arrayOrders) && count($arrayOrders) > 0) { |
|
|
foreach($arrayOrders as $order) { |
|
|
foreach($arrayOrders as $order) { |
|
|
if(($order->id_user == $this->id_user || $order->username == $this->username) && |
|
|
|
|
|
$order->id_point_sale == $this->id_point_sale) { |
|
|
|
|
|
return true ; |
|
|
|
|
|
|
|
|
if((($order->id_user > 0 && $order->id_user == $this->id_user) || |
|
|
|
|
|
(!$order->id_user && $order->username == $this->username)) && |
|
|
|
|
|
$order->id_point_sale == $this->id_point_sale) { |
|
|
|
|
|
return true ; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |