Show cancel date on service information widget
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 32s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
2024-08-17 13:17:07 +10:00
parent a41a69676e
commit 7e784c3e81
4 changed files with 19 additions and 6 deletions

View File

@@ -1077,6 +1077,11 @@ class Service extends Model implements IDs
&& (! in_array($this->order_status,array_merge(self::INACTIVE_STATUS,['INACTIVE'])));
}
public function isPendingCancel(): bool
{
return in_array(strtolower($this->order_status),['cancel-request','cancel-pending']);
}
/**
* Generate a collection of invoice_item objects that will be billed for the next invoice
*