This commit is contained in:
philipp lang 2024-12-13 02:28:41 +01:00
parent 4ac89da124
commit 088ea4f0a2
7 changed files with 7 additions and 30 deletions

View File

@ -25,6 +25,7 @@ class BdkjHesse extends ContributionDocument
public ?string $filename = '',
public string $type = 'F',
) {
$this->setEventName($eventName);
}
public function dateFrom(): string
@ -114,11 +115,6 @@ class BdkjHesse extends ContributionDocument
return $member->birthYear();
}
public function basename(): string
{
return 'zuschuesse-bdkj-hessen' . Str::slug($this->eventName);
}
public function view(): string
{
return 'tex.contribution.bdkj-hesse';

View File

@ -28,6 +28,7 @@ class CityFrankfurtMainDocument extends ContributionDocument
public ?string $filename = '',
public string $type = 'F',
) {
$this->setEventName($eventName);
$this->fromName = app(InvoiceSettings::class)->from_long;
}
@ -102,11 +103,6 @@ class CityFrankfurtMainDocument extends ContributionDocument
return $member->age();
}
public function basename(): string
{
return 'zuschuesse-frankfurt-' . Str::slug($this->eventName);
}
public function view(): string
{
return 'tex.contribution.city-frankfurt-main';

View File

@ -77,11 +77,6 @@ class CityRemscheidDocument extends ContributionDocument
);
}
public function basename(): string
{
return 'zuschuesse-remscheid';
}
public function view(): string
{
return 'tex.contribution.city-remscheid';

View File

@ -95,11 +95,6 @@ class CitySolingenDocument extends ContributionDocument
return $firstRow . "\n" . $secondRow;
}
public function basename(): string
{
return 'zuschuesse-solingen-' . Str::slug($this->eventName);
}
public function view(): string
{
return 'tex.contribution.city-solingen';

View File

@ -45,4 +45,9 @@ abstract class ContributionDocument extends Document
{
$this->eventName = $eventName;
}
public function basename(): string
{
return str('Zuschüsse ')->append($this->getName())->append(' ')->append($this->eventName)->slug();
}
}

View File

@ -67,11 +67,6 @@ class GallierDocument extends ContributionDocument
);
}
public function basename(): string
{
return 'zuschuesse-gallier';
}
public function view(): string
{
return 'tex.contribution.gallier';

View File

@ -98,11 +98,6 @@ class RdpNrwDocument extends ContributionDocument
return $member->age();
}
public function basename(): string
{
return 'zuschuesse-rdp-nrw';
}
public function view(): string
{
return 'tex.contribution.rdp-nrw';