Fix code creation for invoices
This commit is contained in:
parent
251298a230
commit
d7829b93b9
@ -74,7 +74,7 @@ class InvoiceGenerate extends Command
|
|||||||
$oo->product_id,
|
$oo->product_id,
|
||||||
$oo->item_type_name,
|
$oo->item_type_name,
|
||||||
$oo->total,
|
$oo->total,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ class Invoice extends Model
|
|||||||
$io->save();
|
$io->save();
|
||||||
}
|
}
|
||||||
|
|
||||||
$code = (! $io) ? Doorman::generate()->for($this->account->user->email)->uses(0)->expiresOn($tokendate)->make() : $io->code;
|
$code = (! $io) ? Doorman::generate()->for($this->account->user->email)->uses(0)->expiresOn($tokendate)->make()->first()->code : $io->code;
|
||||||
|
|
||||||
return url('u/invoice',[$this->id,'email',$code]);
|
return url('u/invoice',[$this->id,'email',$code]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user