Working on tests
This commit is contained in:
parent
4666387aa6
commit
276e25ffa4
1 changed files with 1 additions and 1 deletions
|
|
@ -711,7 +711,7 @@ class InvoiceRepository extends BaseRepository
|
|||
$invitation = Invitation::scope()->whereContactId($contact->id)->whereInvoiceId($invoice->id)->first();
|
||||
|
||||
if (in_array($contact->id, $sendInvoiceIds) && ! $invitation) {
|
||||
$invitation = Invitation::createNew();
|
||||
$invitation = Invitation::createNew($invoice);
|
||||
$invitation->invoice_id = $invoice->id;
|
||||
$invitation->contact_id = $contact->id;
|
||||
$invitation->invitation_key = str_random(RANDOM_KEY_LENGTH);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue