mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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->payment->invoices && $this->payment->invoices->count() >= 1) {
|
||||||
|
|
||||||
if($this->contact){
|
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
|
else
|
||||||
$invitation = $this->payment->invoices->first()->invitations()->first();
|
$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->payment->invoices && $this->payment->invoices->count() >= 1) {
|
||||||
|
|
||||||
if($this->contact) {
|
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 {
|
} else {
|
||||||
$invitation = $this->payment->invoices->first()->invitations()->first();
|
$invitation = $this->payment->invoices->first()->invitations()->first();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user