Fix invoices being generated for suspended/external billing and zero price items

This commit is contained in:
Deon George 2022-10-18 15:58:14 +11:00
parent c96d264c8f
commit a87560ff96

View File

@ -1190,7 +1190,7 @@ class Service extends Model implements IDs
*/
public function isBilled(): bool
{
return ! ($this->external_billing && $this->suspend_billing);
return ! ($this->external_billing || $this->suspend_billing || ($this->price == 0));
}
/**