Fixes for recurring ivnoices

This commit is contained in:
David Bomba 2024-02-15 08:31:46 +11:00
parent a6cedef7d8
commit 86550de39c
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class VersionCheck implements ShouldQueue
Vendor::doesntHave('contacts')
->cursor()
->each(function ($vendor) {
->each(function (Vendor $vendor) {
$new_contact = VendorContactFactory::create($vendor->company_id, $vendor->user_id);
$new_contact->vendor_id = $vendor->id;

View File

@ -297,7 +297,7 @@ class RecurringInvoice extends BaseModel
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Company>
*/
public function company(): \Illuminate\Database\Eloquent\Relations\BelongsTo
public function company()
{
return $this->belongsTo(Company::class);
}