Working on speech rec

This commit is contained in:
Hillel Coren 2017-04-05 22:42:54 +03:00
parent 4ba3adfae9
commit 1d855a90eb
7 changed files with 7 additions and 7 deletions

View File

@ -110,7 +110,7 @@ class BaseIntent
return in_array($state, [STATUS_ACTIVE, STATUS_ARCHIVED, STATUS_DELETED]); 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)]); session(['entity_state_filter:' . $entityType => join(',', $states)]);
} }
} }

View File

@ -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)]); session(['entity_status_filter:' . $entityType => join(',', $statusIds)]);
} }
} }

View File

@ -10,7 +10,7 @@ class ListCreditIntent extends BaseIntent
{ {
$this->loadStates(ENTITY_CREDIT); $this->loadStates(ENTITY_CREDIT);
if ($client = $this->requestClient()) { if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
$url = $client->present()->url . '#credits'; $url = $client->present()->url . '#credits';
} else { } else {
$url = '/credits'; $url = '/credits';

View File

@ -10,7 +10,7 @@ class ListPaymentIntent extends BaseIntent
{ {
$this->loadStates(ENTITY_PAYMENT); $this->loadStates(ENTITY_PAYMENT);
if ($client = $this->requestClient()) { if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
$url = $client->present()->url . '#payments'; $url = $client->present()->url . '#payments';
} else { } else {
$url = '/payments'; $url = '/payments';

View File

@ -11,7 +11,7 @@ class ListQuoteIntent extends InvoiceIntent
$this->loadStates(ENTITY_QUOTE); $this->loadStates(ENTITY_QUOTE);
$this->loadStatuses(ENTITY_QUOTE); $this->loadStatuses(ENTITY_QUOTE);
if ($client = $this->requestClient()) { if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
$url = $client->present()->url . '#quotes'; $url = $client->present()->url . '#quotes';
} else { } else {
$url = '/quotes'; $url = '/quotes';

View File

@ -10,7 +10,7 @@ class ListRecurringInvoiceIntent extends BaseIntent
{ {
$this->loadStates(ENTITY_RECURRING_INVOICE); $this->loadStates(ENTITY_RECURRING_INVOICE);
if ($client = $this->requestClient()) { if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
$url = $client->present()->url . '#recurring_invoices'; $url = $client->present()->url . '#recurring_invoices';
} else { } else {
$url = '/recurring_invoices'; $url = '/recurring_invoices';

View File

@ -10,7 +10,7 @@ class ListTaskIntent extends BaseIntent
{ {
$this->loadStates(ENTITY_TASK); $this->loadStates(ENTITY_TASK);
if ($client = $this->requestClient()) { if (! $this->hasField('Filter', 'all') && $client = $this->requestClient()) {
$url = $client->present()->url . '#tasks'; $url = $client->present()->url . '#tasks';
} else { } else {
$url = '/tasks'; $url = '/tasks';