Add name to payment table in pdf
This commit is contained in:
parent
13277ec959
commit
84c80b5cc0
|
@ -61,7 +61,7 @@ class BillType extends Repository implements PdfRepository
|
|||
->orderByRaw('nr, member_id')->whereNeedsBill()->get();
|
||||
|
||||
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)];
|
||||
})->toArray();
|
||||
|
|
|
@ -72,7 +72,7 @@ class GenerateTest extends TestCase
|
|||
'output' => [
|
||||
'Rechnung',
|
||||
'15.00',
|
||||
'Beitrag für 1995 (::subName::)',
|
||||
'Beitrag 1995 für ::firstname:: ::lastname:: (::subName::)',
|
||||
'Familie ::lastname::\\\\::street::\\\\::zip:: ::location::',
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue