Fix systemic extraction breakage in authenticated UI.
Deploy Ladill Merchant / deploy (push) Successful in 28s
Deploy Ladill Merchant / deploy (push) Successful in 28s
The give→merchant transform left several independent breakages that 500'd
once a logged-in user hit the pages:
- /storefronts/{create,show,update,...} were wired to Qr\QrCodeController,
which renders events-lineage qr-codes.* views referencing 14 undefined
events.* routes. Rewire to StorefrontController (clean storefronts.* views).
- storefronts/show.blade.php @include('give.storefronts.partials.*') — the
view dir was renamed give→merchant but the include namespace wasn't.
- /payouts + /search queried qr_sale_orders.*_minor; migration created *_ghs.
- Remove dead GiveDonation model (nonexistent give_donations table).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
62b3fcd479
commit
de5bd16219
@@ -22,10 +22,10 @@ class PayoutsController extends Controller
|
||||
->where('type', QrCode::TYPE_SHOP)
|
||||
->pluck('id');
|
||||
|
||||
$revenueMinor = (int) QrSaleOrder::query()
|
||||
$revenueMinor = (int) round(QrSaleOrder::query()
|
||||
->whereIn('qr_code_id', $qrIds)
|
||||
->where('status', QrSaleOrder::STATUS_PAID)
|
||||
->sum('merchant_amount_minor');
|
||||
->sum('merchant_amount_ghs') * 100);
|
||||
|
||||
$balanceMinor = 0;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user