Skip to content

Commit

Permalink
feat: Add finance theme
Browse files Browse the repository at this point in the history
The finance theme merges the tax and bank documents. The latter was
missing in the previous categorization.
  • Loading branch information
paultranvan committed Jan 14, 2021
1 parent fe6f78f commit bb8cf35
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
16 changes: 13 additions & 3 deletions packages/cozy-scanner/src/DocumentTypeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,17 @@ const transportLabels = [
'other_transport_document'
]

const taxLabels = ['tax_return', 'tax_notice', 'tax_timetable', 'receipt']
const financeLabels = [
'tax_return',
'tax_notice',
'tax_timetable',
'receipt',
'other_tax_document',
'bank_details',
'bank_statement',
'loan_agreement',
'other_bank_document'
]

const invoiceLabels = [
'phone_invoice',
Expand Down Expand Up @@ -142,9 +152,9 @@ export const themes = [
},
{
id: 'theme7',
label: 'tax',
label: 'finance',
icon: 'bank',
items: buildItems(taxLabels)
items: buildItems(financeLabels)
},
{
id: 'theme8',
Expand Down
6 changes: 5 additions & 1 deletion packages/cozy-scanner/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
"tax_timetable": "Payment Plans Installment Agreements",
"receipt": "Receipt",
"other_tax_document": "Other tax document",
"bank_details": "Bank details",
"bank_statement": "Bank statement",
"loan_agreement": "Loan agreement",
"other_bank_document": "Other banking document",
"invoices": "Invoices",
"other_invoice": "Other invoice"
},
Expand All @@ -95,7 +99,7 @@
"invoice": "Invoice",
"others": "Others",
"undefined": "Undefined",
"tax": "Tax"
"finance": "Finance"
}
}
}
6 changes: 5 additions & 1 deletion packages/cozy-scanner/src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
"tax_timetable": "Echéancier d'imposition",
"receipt": "Accusé de réception",
"other_tax_document": "Autre document d'impôt",
"bank_details": "RIB",
"bank_statement": "Relevé de compte",
"loan_agreement": "Contrat de prêt",
"other_bank_document": "Autre document bancaire",
"invoices": "Factures",
"other_invoice": "Autre facture"
},
Expand All @@ -95,7 +99,7 @@
"invoice": "Factures",
"others": "Autres",
"undefined": "Indéfini",
"tax": "Impôts"
"finance": "Finances"
}
}
}

0 comments on commit bb8cf35

Please sign in to comment.