Keep POS retail catalog product-only and raise Pro pricing.
Deploy Ladill POS / deploy (push) Successful in 46s
Deploy Ladill POS / deploy (push) Successful in 46s
Retail still reads live CRM products only (not services), products mode follows the acting branch, and suite Pro/Business defaults match the tenfold price update.
This commit is contained in:
@@ -76,9 +76,10 @@ class SubscriptionService
|
||||
}
|
||||
|
||||
try {
|
||||
// CRM products only (not services). Laravel paginator exposes total at the root.
|
||||
$response = CrmClient::for($ownerRef)->products(['type' => 'product', 'per_page' => 1]);
|
||||
|
||||
return (int) ($response['meta']['total'] ?? count((array) ($response['data'] ?? [])));
|
||||
return (int) ($response['total'] ?? $response['meta']['total'] ?? count((array) ($response['data'] ?? [])));
|
||||
} catch (\Throwable) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user