added charge for all products
This commit is contained in:
@@ -24,12 +24,13 @@ class AssetSummaryService
|
||||
) {
|
||||
}
|
||||
|
||||
public function buildForCustomer(int $customerId, int $ownerType): array
|
||||
public function buildForCustomer(int $customerId, int $ownerType, bool $includeInactiveProducts = false): array
|
||||
{
|
||||
$catalog = Product::query()
|
||||
->where('active', 1)
|
||||
->with('file')
|
||||
->get();
|
||||
$catalogQuery = Product::query()->with('file');
|
||||
if (!$includeInactiveProducts) {
|
||||
$catalogQuery->where('active', 1);
|
||||
}
|
||||
$catalog = $catalogQuery->get();
|
||||
|
||||
$userWallets = Wallet::query()
|
||||
->with(['product.file'])
|
||||
|
||||
Reference in New Issue
Block a user