Working on speech rec
This commit is contained in:
parent
4ba3adfae9
commit
1d855a90eb
7 changed files with 7 additions and 7 deletions
|
|
@ -110,7 +110,7 @@ class BaseIntent
|
|||
return in_array($state, [STATUS_ACTIVE, STATUS_ARCHIVED, STATUS_DELETED]);
|
||||
});
|
||||
|
||||
if (count($states)) {
|
||||
if (count($states) || $this->hasField('Filter', 'all')) {
|
||||
session(['entity_state_filter:' . $entityType => join(',', $states)]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class InvoiceIntent extends BaseIntent
|
|||
}
|
||||
}
|
||||
|
||||
if (count($statusIds)) {
|
||||
if (count($statusIds) || $this->hasField('Filter', 'all')) {
|
||||
session(['entity_status_filter:' . $entityType => join(',', $statusIds)]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class ListCreditIntent extends BaseIntent
|
|||
{
|
||||
$this->loadStates(ENTITY_CREDIT);
|
||||
|
||||
if ($client = $this->requestClient()) {
|
||||
if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
|
||||
$url = $client->present()->url . '#credits';
|
||||
} else {
|
||||
$url = '/credits';
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class ListPaymentIntent extends BaseIntent
|
|||
{
|
||||
$this->loadStates(ENTITY_PAYMENT);
|
||||
|
||||
if ($client = $this->requestClient()) {
|
||||
if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
|
||||
$url = $client->present()->url . '#payments';
|
||||
} else {
|
||||
$url = '/payments';
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class ListQuoteIntent extends InvoiceIntent
|
|||
$this->loadStates(ENTITY_QUOTE);
|
||||
$this->loadStatuses(ENTITY_QUOTE);
|
||||
|
||||
if ($client = $this->requestClient()) {
|
||||
if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
|
||||
$url = $client->present()->url . '#quotes';
|
||||
} else {
|
||||
$url = '/quotes';
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class ListRecurringInvoiceIntent extends BaseIntent
|
|||
{
|
||||
$this->loadStates(ENTITY_RECURRING_INVOICE);
|
||||
|
||||
if ($client = $this->requestClient()) {
|
||||
if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
|
||||
$url = $client->present()->url . '#recurring_invoices';
|
||||
} else {
|
||||
$url = '/recurring_invoices';
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class ListTaskIntent extends BaseIntent
|
|||
{
|
||||
$this->loadStates(ENTITY_TASK);
|
||||
|
||||
if ($client = $this->requestClient()) {
|
||||
if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
|
||||
$url = $client->present()->url . '#tasks';
|
||||
} else {
|
||||
$url = '/tasks';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue