feat: implement barangay and household management with associated tests

This commit is contained in:
Developer
2026-06-29 15:02:52 +08:00
parent 9ac2ea7bda
commit b85fc255cf
124 changed files with 2894 additions and 192 deletions

View File

@@ -9,11 +9,13 @@ use App\Models\QrCodeBatch;
use App\Models\StoreInventory;
use App\Models\StorePurchase;
use App\Models\StoreSale;
use App\Notifications\CodesPurchased;
use App\Services\Qr\BatchGenerator;
use App\States\QrCode\Active;
use App\States\QrCode\Allocated;
use App\States\QrCode\Unassigned;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Notification;
class StoreOperations
{
@@ -122,9 +124,9 @@ class StoreOperations
// Notify the household head — fire after commit so the receiver
// sees the persisted state.
if ($household->head) {
\Illuminate\Support\Facades\Notification::send(
Notification::send(
$household->head,
new \App\Notifications\CodesPurchased($quantity, $totalRetail, $store->business_name),
new CodesPurchased($quantity, $totalRetail, $store->business_name),
);
}