Add name to payment table in pdf

This commit is contained in:
philipp lang 2021-07-17 17:21:30 +02:00
parent 13277ec959
commit 84c80b5cc0
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ class BillType extends Repository implements PdfRepository
->orderByRaw('nr, member_id')->whereNeedsBill()->get(); ->orderByRaw('nr, member_id')->whereNeedsBill()->get();
return $payments->mapWithKeys(function (Payment $payment) { return $payments->mapWithKeys(function (Payment $payment) {
$key = "Beitrag für {$payment->nr} ({$payment->subscription->name})"; $key = "Beitrag {$payment->nr} für {$payment->member->firstname} {$payment->member->lastname} ({$payment->subscription->name})";
return [$key => $this->number($payment->subscription->amount)]; return [$key => $this->number($payment->subscription->amount)];
})->toArray(); })->toArray();

View File

@ -72,7 +72,7 @@ class GenerateTest extends TestCase
'output' => [ 'output' => [
'Rechnung', 'Rechnung',
'15.00', '15.00',
'Beitrag für 1995 (::subName::)', 'Beitrag 1995 für ::firstname:: ::lastname:: (::subName::)',
'Familie ::lastname::\\\\::street::\\\\::zip:: ::location::', 'Familie ::lastname::\\\\::street::\\\\::zip:: ::location::',
], ],
], ],