Add BankAccountConnector to implement bank import methods in plugins

This commit is contained in:
Patrick Gansterer 2020-02-24 14:22:58 +01:00
parent d476993321
commit 5d84156bd8
11 changed files with 281 additions and 22 deletions

View file

@ -516,6 +516,13 @@ de:
text_1: 'Du kannst hier eine Tabelle hochladen, um die Artikel des Lieferanten %{supplier} zu aktualisieren. Excel (xls, xlsx) und OpenOffice (ods) Tabellen werden akzeptiert, darüber hinaus Dateien im Format "csv" (comma-separated values, mit dem Spaltentrennzeichen ";" und utf-8 Kodierung). Nur das erste Tabellenblatt wird importiert und die Spalten müssen in der folgenden Anordnung vorliegen:'
text_2: Die hier gezeigten Spalten sind Beispiele. Ist ein "x" in der ersten Spalte, wird der Artikel aussortiert und entfernt. Das erlaubt Dir die Tabelle zu ändern und schnell viele Artikel auf ein Mal zu entfernen, zum Beispiel wenn Artkiel des Lieferanten nicht mehr verfügbar sind. Die Kategorie wird der Foodsoft Kategorie zugeordnet (durch die Kategorienamen und die Importnamen).
title: Artikel des Lieferanten %{supplier} hochladen
bank_account_connector:
confirm_app: Bitte bestätige den Code %{code} in deiner App.
fields:
email: E-Mail
pin: PIN
password: Passwort
username: Benutzername
config:
hints:
applepear_url: Seite, auf der das Äpfel- und Birnensystem für Aufgaben erklärt wird.
@ -781,6 +788,8 @@ de:
import:
notice: 'Es wurden %{count} neue Transaktionen importiert.'
no_import_method: Für dieses Bankkonto ist keine Importmethode konfiguriert.
submit: Abschicken
title: Banktransaktionen für %{name} importieren
index:
title: Bankkonten
bank_transactions:

View file

@ -536,6 +536,13 @@ en:
text_1: 'Here you can upload a spreadsheet to update the articles of %{supplier}. Excel (xls, xlsx) and OpenOffice (ods) spreadsheets are accepted, as well as comma-separated files (csv, columns separated by ";" with utf-8 encoding). Only the first sheet will be imported, and columns must be in the following order:'
text_2: The rows shown here are examples. When there is an "x" in the first column, the article is outlisted and will be removed. This allows you to edit the spreadsheet and quickly remove many articles at once, for example when articles become unavailable with the supplier. The category will be matched to your Foodsoft category list (both by category name and import names).
title: Upload articles of %{supplier}
bank_account_connector:
confirm_app: Please confirum the code %{code} in your app.
fields:
email: E-Mail
pin: PIN
password: Password
username: Username
config:
hints:
applepear_url: Website where the apple and pear system for tasks is explained.
@ -806,6 +813,8 @@ en:
import:
notice: '%{count} new transactions have been imported'
no_import_method: For this bank account no import method is configured.
submit: Abschicken
title: Import bank transactions for %{name}
index:
title: Bank Accounts
bank_transactions:

View file

@ -197,6 +197,7 @@ Foodsoft::Application.routes.draw do
member do
get :assign_unlinked_transactions
get :import
post :import
end
resources :bank_transactions, as: :transactions