mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 04:14:33 -04:00
Fixes for recurring due dates
This commit is contained in:
parent
8f54b71722
commit
d2f2284d4d
@ -449,6 +449,10 @@ class RecurringInvoice extends BaseModel
|
|||||||
|
|
||||||
public function calculateDueDate($date)
|
public function calculateDueDate($date)
|
||||||
{
|
{
|
||||||
|
//if nothing is set, assume we are using terms.
|
||||||
|
if(!$this->due_date_days)
|
||||||
|
return $this->calculateDateFromTerms($date);
|
||||||
|
|
||||||
switch ($this->due_date_days) {
|
switch ($this->due_date_days) {
|
||||||
case 'terms':
|
case 'terms':
|
||||||
return $this->calculateDateFromTerms($date);
|
return $this->calculateDateFromTerms($date);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user