allow to filter for canceled invoices (#3415)
This commit is contained in:
@@ -94,7 +94,7 @@ class InvoiceArchiveQuery extends BaseQuery
|
||||
|
||||
public function addStatus(string $status): void
|
||||
{
|
||||
if (!\in_array($status, [Invoice::STATUS_NEW, Invoice::STATUS_PENDING, Invoice::STATUS_PAID])) {
|
||||
if (!\in_array($status, [Invoice::STATUS_NEW, Invoice::STATUS_PENDING, Invoice::STATUS_PAID, Invoice::STATUS_CANCELED])) {
|
||||
throw new \InvalidArgumentException('Unknown invoice status given.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user