implemented event package addons with filament resource, event-admin purchase path and notifications, showing up in purchase history
This commit is contained in:
@@ -15,7 +15,7 @@ class PackageUsageTracker
|
||||
|
||||
public function recordPhotoUsage(EventPackage $eventPackage, int $previousUsed, int $delta = 1): void
|
||||
{
|
||||
$limit = $eventPackage->package?->max_photos;
|
||||
$limit = $eventPackage->effectivePhotoLimit();
|
||||
|
||||
if ($limit === null || $limit <= 0) {
|
||||
return;
|
||||
@@ -51,7 +51,7 @@ class PackageUsageTracker
|
||||
|
||||
public function recordGuestUsage(EventPackage $eventPackage, int $previousUsed, int $delta = 1): void
|
||||
{
|
||||
$limit = $eventPackage->package?->max_guests;
|
||||
$limit = $eventPackage->effectiveGuestLimit();
|
||||
|
||||
if ($limit === null || $limit <= 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user