mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes for invitations
This commit is contained in:
parent
c26afd69e2
commit
b57159b362
@ -24,6 +24,7 @@ class ClientContactFactory
|
||||
$client_contact->company_id = $company_id;
|
||||
$client_contact->contact_key = Str::random(40);
|
||||
$client_contact->id = 0;
|
||||
$client_contact->send_email = true;
|
||||
|
||||
return $client_contact;
|
||||
}
|
||||
|
@ -43,9 +43,9 @@ class CreateInvitations extends AbstractService
|
||||
}
|
||||
|
||||
$contacts->each(function ($contact) {
|
||||
$invitation = InvoiceInvitation::whereCompanyId($this->invoice->company_id)
|
||||
->whereClientContactId($contact->id)
|
||||
->whereInvoiceId($this->invoice->id)
|
||||
$invitation = InvoiceInvitation::where('company_id', $this->invoice->company_id)
|
||||
->where('client_contact_id', $contact->id)
|
||||
->where('invoice_id', $this->invoice->id)
|
||||
->withTrashed()
|
||||
->first();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user