ConstructionConsent - adding journal entry on create owner or import owner create

This commit is contained in:
Luca Haid
2025-05-20 10:51:45 +02:00
parent c9970fcb38
commit 11baca9413
2 changed files with 12 additions and 0 deletions
@@ -1137,6 +1137,12 @@ class ConstructionConsentController extends mfBaseController {
$ownerRecord->save();
$journal = ConstructionConsentJournal::create([
"constructionconsent_id" => $consentRecord->id,
"text" => "Import: Eigentümer $firstname $lastname wurde hinzugefügt"
]);
$journal->save();
$counts[$isNew ? "created" : "updated"]++;
}