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]);
});
if (count($states)) {
if (count($states) || $this->hasField('Filter', 'all')) {
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)]);
}
}

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';