Don't show draft invoice as overdue
This commit is contained in:
parent
cbe27bba43
commit
c2d895a58d
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||
|
||||
public static function calcStatusClass($statusId, $balance, $dueDate)
|
||||
{
|
||||
if (static::calcIsOverdue($balance, $dueDate)) {
|
||||
if ($statusId >= INVOICE_STATUS_SENT && static::calcIsOverdue($balance, $dueDate)) {
|
||||
return 'danger';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue