feat: implement barangay and household management with associated tests
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user