Showing counts in order list when filtering for business customers

This commit is contained in:
Frank Schubert
2022-06-14 12:45:25 +02:00
parent e5233568a3
commit fd8049dc28

View File

@@ -130,6 +130,11 @@ class OrderController extends mfBaseController {
}
}
// always show counts if filtering for business customers
if(array_key_exists("customer_type", $filter) && $filter['customer_type'] == "business") {
$showLoneliesCount = true;
}
if($showLonelies || $showLoneliesCount) {
$userIds = $this->me->getAddressOrParent()->getUserIds();
//var_dump($userIds);exit;