mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on speech rec
This commit is contained in:
parent
4ba3adfae9
commit
1d855a90eb
@ -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)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user