Fix invoices being generated for suspended/external billing and zero price items
This commit is contained in:
parent
c96d264c8f
commit
a87560ff96
@ -1190,7 +1190,7 @@ class Service extends Model implements IDs
|
|||||||
*/
|
*/
|
||||||
public function isBilled(): bool
|
public function isBilled(): bool
|
||||||
{
|
{
|
||||||
return ! ($this->external_billing && $this->suspend_billing);
|
return ! ($this->external_billing || $this->suspend_billing || ($this->price == 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user