Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8352,6 +8352,7 @@ const CONST = {
ASSIGNEE: 'assignee',
REIMBURSABLE: 'reimbursable',
BILLABLE: 'billable',
DECLINED: 'declined',
POLICY_ID: 'policyID',
ACTION: 'action',
HAS: 'has',
Expand Down Expand Up @@ -8443,6 +8444,7 @@ const CONST = {
ASSIGNEE: 'assignee',
REIMBURSABLE: 'reimbursable',
BILLABLE: 'billable',
DECLINED: 'declined',
ACTION: 'action',
HAS: 'has',
PURCHASE_AMOUNT: 'purchase-amount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type ListFilterContentProps = SearchFilterCommonProps<SearchAdvancedFiltersForm[
type SingleSelectFilterKeys =
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.WITHDRAWAL_TYPE
| typeof CONST.SEARCH.SYNTAX_FILTER_KEYS.TRANSACTION_STATUS;
type SingleSelectListFilterContentProps = SearchFilterCommonProps<SearchAdvancedFiltersForm[SingleSelectFilterKeys] | undefined> & {
Expand Down Expand Up @@ -250,6 +251,7 @@ function ListFilterContent({
}
case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.TRANSACTION_STATUS:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.WITHDRAWAL_TYPE: {
const isSingleSelectFilterValue = (v: ListFilterContentProps['value']): v is SingleSelectListFilterContentProps['value'] => {
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/useAdvancedSearchFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const typeFiltersKeys = {
CONST.SEARCH.SYNTAX_FILTER_KEYS.ATTENDEE,
CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE,
CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE,
CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED,
CONST.SEARCH.SYNTAX_FILTER_KEYS.CARD_ID,
CONST.SEARCH.SYNTAX_FILTER_KEYS.BANK_ACCOUNT,
CONST.SEARCH.SYNTAX_FILTER_KEYS.FEED,
Expand Down Expand Up @@ -90,6 +91,7 @@ const typeFiltersKeys = {
CONST.SEARCH.SYNTAX_FILTER_KEYS.CURRENCY,
CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED_TO,
CONST.SEARCH.SYNTAX_FILTER_KEYS.PAID_STATUS,
CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED,
CONST.SEARCH.SYNTAX_FILTER_KEYS.PAID_BY,
CONST.SEARCH.SYNTAX_FILTER_KEYS.TITLE,
CONST.SEARCH.SYNTAX_FILTER_KEYS.REPORT_ID,
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/useAutocompleteSuggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ function useAutocompleteSuggestions({
}));
}
case CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE: {
case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED: {
const filteredValues = BOOLEAN_VALUES.filter((value) => value.includes(autocompleteValue.toLowerCase()) && !alreadyAutocompletedKeys.has(value)).sort();

return filteredValues.map((value) => ({
Expand Down
1 change: 1 addition & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10236,6 +10236,7 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc
posted: 'Gebucht',
withdrawn: 'Zurückgezogen',
billable: 'Abrechenbar',
rejected: 'Abgelehnt',
reimbursable: 'Erstattungsfähig',
purchaseCurrency: 'Kaufwährung',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10441,6 +10441,7 @@ ${reportName}`,
posted: 'Καταχωρισμένο',
withdrawn: 'Ανακλήθηκε',
billable: 'Χρεώσιμη',
rejected: 'Απορρίφθηκε',
reimbursable: 'Επανεντάξιμο',
purchaseCurrency: 'Νόμισμα αγοράς',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10486,6 +10486,7 @@ const translations = {
createdDate: 'Created date',
withdrawn: 'Withdrawn',
billable: 'Billable',
rejected: 'Rejected',
reimbursable: 'Reimbursable',
purchaseCurrency: 'Purchase currency',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10081,6 +10081,7 @@ ${reportName}`,
posted: 'Contabilización',
withdrawn: 'Retirada',
billable: 'Facturable',
rejected: 'Rechazado',
reimbursable: 'Reembolsable',
purchaseCurrency: 'Moneda de compra',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10262,6 +10262,7 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e
posted: 'Publié',
withdrawn: 'Retiré',
billable: 'Facturable',
rejected: 'Rejeté',
reimbursable: 'Remboursable',
purchaseCurrency: 'Devise d’achat',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10188,6 +10188,7 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`,
posted: 'Pubblicato',
withdrawn: 'Ritirata',
billable: 'Fatturabile',
rejected: 'Rifiutato',
reimbursable: 'Rimborsabile',
purchaseCurrency: 'Valuta di acquisto',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10045,6 +10045,7 @@ ${reportName}`,
posted: '投稿日',
withdrawn: '取下済み',
billable: '請求可能',
rejected: '却下済み',
reimbursable: '払い戻し対象',
purchaseCurrency: '購入通貨',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10154,6 +10154,7 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`,
posted: 'Gepost',
withdrawn: 'Ingetrokken',
billable: 'Factureerbaar',
rejected: 'Afgekeurd',
reimbursable: 'Vergoedbaar',
purchaseCurrency: 'Aankoopvaluta',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10171,6 +10171,7 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`,
posted: 'Opublikowano',
withdrawn: 'Wycofano',
billable: 'Fakturowalne',
rejected: 'Odrzucone',
reimbursable: 'Podlegające zwrotowi',
purchaseCurrency: 'Waluta zakupu',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10152,6 +10152,7 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`,
posted: 'Publicado',
withdrawn: 'Retirado',
billable: 'Faturável',
rejected: 'Rejeitado',
reimbursable: 'Reembolsável',
purchaseCurrency: 'Moeda de compra',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9776,6 +9776,7 @@ ${reportName}`,
posted: '已发布',
withdrawn: '已撤回',
billable: '可计费',
rejected: '已拒绝',
reimbursable: '可报销',
purchaseCurrency: '购买货币',
sortOrder: {
Expand Down
1 change: 1 addition & 0 deletions src/libs/SearchAutocompleteUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ function filterOutRangesWithCorrectValue(
return viewList.includes(range.value);
case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED:
return booleanList.includes(range.value);
case CONST.SEARCH.SYNTAX_FILTER_KEYS.DATE:
case CONST.SEARCH.SYNTAX_FILTER_KEYS.SUBMITTED:
Expand Down
Loading
Loading