U-A/U-B: Prozesskern mit Fachmodulen, versionierten Modellen, eingefrorenem Prozessplan, ProcessRunner (harte/weiche Abhängigkeiten), CasePricing, Loyalty nur im Tester

CaseActivities/CaseAutomation sind Fassaden über ProcessRunner. Verhaltensvergleich v0.11:
11 Abläufe und 198 Konstellationen gleich, beabsichtigte Abweichungen I-004/I-005 (F-001/F-002).
Volle Suite vor U-B: 785/785.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-04 14:49:44 +01:00
1 parent 98df5e9e3b
commit 7e22e12cac
80 files changed
+4628 -445

No files matched your search

@@ -6,6 +6,7 @@
use App\Enums\BookingStatus;
use App\Models\Booking;
use App\Models\Tenant;
use App\Process\ProcessRunner;
use App\Tenancy\TenantRunner;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
@@ -19,9 +20,9 @@ class SendPendingAutoOffers extends Command
/**
* Execute the console command.
*/
public function handle(AutoOffer $autoOffer, TenantRunner $runner): int
public function handle(AutoOffer $autoOffer, TenantRunner $tenants, ProcessRunner $runner): int
{
$runner->each(function (Tenant $tenant) use ($autoOffer): void {
$tenants->each(function (Tenant $tenant) use ($autoOffer, $runner): void {
$pending = Booking::query()
->where('status', BookingStatus::Reserved)
->where('offer_version', 0)
@@ -36,7 +37,8 @@ public function handle(AutoOffer $autoOffer, TenantRunner $runner): int
$sent = 0;
foreach ($pending as $booking) {
try {
$sent += $autoOffer->handle($booking) === [] ? 1 : 0;
$result = $runner->advance($booking, 'schedule:bookings:auto-offers');
$sent += $result->ran('offer.binding') || $result->ran('offer.information') ? 1 : 0;
} catch (Throwable) {
// The request stays pending for the landlord; the next run tries again.
}