feat(store): complete partner store overhaul with mapping, household search, financial analytics, and resident notification system
This commit is contained in:
@@ -347,7 +347,7 @@ class AdminPartnerStoreController extends ApiController
|
||||
// For now, we'll return the data needed to render a printable QR.
|
||||
return $this->ok([
|
||||
'serial' => $qrCode->serial,
|
||||
'qr_data' => route('qr.verify', ['serial' => $qrCode->serial]),
|
||||
'qr_data' => route('api.v1.admin.qr-codes.show', ['serial' => $qrCode->serial]),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -365,6 +365,7 @@ class AdminPartnerStoreController extends ApiController
|
||||
'total_commission_pesos' => number_format($totalCommission / 100, 2),
|
||||
'total_settled_pesos' => number_format($totalSettled / 100, 2),
|
||||
'balance_due_pesos' => number_format($balanceDue / 100, 2),
|
||||
'gross_profit_pesos' => number_format(($totalRetailRevenue - $totalWholesaleCost) / 100, 2),
|
||||
'total_issued_codes' => (int) $store->purchases()->sum('quantity'),
|
||||
'total_sold_codes' => (int) $store->sales()->sum('quantity'),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user