mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
set contact on invitation for payment emails
This commit is contained in:
parent
e69869e06c
commit
867ad809aa
@ -88,7 +88,7 @@ class EmailPayment implements ShouldQueue
|
||||
if ($this->payment->invoices && $this->payment->invoices->count() >= 1) {
|
||||
|
||||
if($this->contact){
|
||||
$invitation = $this->payment->invoices->first()->invitations()->where('contact_id', $this->contact->id)->first();
|
||||
$invitation = $this->payment->invoices->first()->invitations()->where('client_contact_id', $this->contact->id)->first();
|
||||
}
|
||||
else
|
||||
$invitation = $this->payment->invoices->first()->invitations()->first();
|
||||
|
@ -93,7 +93,7 @@ class EmailRefundPayment implements ShouldQueue
|
||||
if ($this->payment->invoices && $this->payment->invoices->count() >= 1) {
|
||||
|
||||
if($this->contact) {
|
||||
$invitation = $this->payment->invoices->first()->invitations()->where('contact_id', $this->contact->id)->first();
|
||||
$invitation = $this->payment->invoices->first()->invitations()->where('client_contact_id', $this->contact->id)->first();
|
||||
} else {
|
||||
$invitation = $this->payment->invoices->first()->invitations()->first();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user