1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00

adding filter methods for projects, tasks and vendors

This commit is contained in:
paulwer 2023-01-29 09:52:40 +01:00
parent 205a0669d8
commit 47d9ccf573
10 changed files with 48 additions and 2 deletions

View File

@ -127,6 +127,11 @@ class CreditFilters extends QueryFilters
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.
*

View File

@ -146,6 +146,11 @@ class ExpenseFilters extends QueryFilters
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.
*

View File

@ -80,6 +80,11 @@ class ProjectFilters extends QueryFilters
}
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.

View File

@ -132,6 +132,11 @@ class PurchaseOrderFilters extends QueryFilters
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.
*

View File

@ -138,9 +138,9 @@ class QuoteFilters extends QueryFilters
});
}
public function number($number = '')
public function number(string $number = ''):Builder
{
return $this->builder->where('number', 'like', '%'.$number.'%');
return $this->builder->where('number', $number);
}
/**

View File

@ -84,6 +84,11 @@ class RecurringExpenseFilters extends QueryFilters
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.
*

View File

@ -120,6 +120,11 @@ class RecurringInvoiceFilters extends QueryFilters
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.
*

View File

@ -79,6 +79,11 @@ class RecurringQuoteFilters extends QueryFilters
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.
*

View File

@ -123,6 +123,11 @@ class TaskFilters extends QueryFilters
return $this->builder->where('project_id', $this->decodePrimaryKey($project));
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.

View File

@ -89,6 +89,12 @@ class VendorFilters extends QueryFilters
});
}
public function number(string $number = ''):Builder
{
return $this->builder->where('number', $number);
}
/**
* Sorts the list based on $sort.
*