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)
|
||||
{
|
||||
//if nothing is set, assume we are using terms.
|
||||
if(!$this->due_date_days)
|
||||
return $this->calculateDateFromTerms($date);
|
||||
|
||||
switch ($this->due_date_days) {
|
||||
case 'terms':
|
||||
return $this->calculateDateFromTerms($date);
|
||||
|
|
|
|||
Loading…
Reference in New Issue