1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for recurring invoice

This commit is contained in:
David Bomba 2020-09-18 17:04:28 +10:00
parent 67492c3384
commit 4b482c76f3

View File

@ -14,6 +14,7 @@ namespace App\Models;
use App\Helpers\Invoice\InvoiceSum;
use App\Helpers\Invoice\InvoiceSumInclusive;
use App\Models\Filterable;
use App\Models\RecurringInvoiceInvitation;
use App\Utils\Traits\MakesDates;
use App\Utils\Traits\MakesHash;
use App\Utils\Traits\Recurring\HasRecurrence;
@ -178,7 +179,7 @@ class RecurringInvoice extends BaseModel
public function invitations()
{
$this->morphMany(RecurringInvoiceInvitation::class);
return $this->hasMany(RecurringInvoiceInvitation::class);
}
public function documents()
@ -414,7 +415,7 @@ class RecurringInvoice extends BaseModel
}
private function calculateDueDate($date)
public function calculateDueDate($date)
{
switch ($this->due_date_days) {