add specs
This commit is contained in:
parent
e902aa0d5a
commit
45db0575b1
46 changed files with 714 additions and 238 deletions
|
|
@ -36,6 +36,9 @@ Rails.application.configure do
|
|||
|
||||
# Don't care if the mailer can't send.
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
config.action_mailer.perform_deliveries = true
|
||||
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
|
||||
config.action_mailer.delivery_method = :letter_opener_web
|
||||
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
|
|
@ -57,12 +60,12 @@ Rails.application.configure do
|
|||
config.assets.initialize_on_precompile = true
|
||||
|
||||
# Configure hostname for action mailer (can be overridden in foodcoop config)
|
||||
config.action_mailer.default_url_options = { host: 'localhost', port: 3000, protocol: 'http' }
|
||||
config.action_mailer.default_url_options = { host: 'localhost', port: 3000}
|
||||
|
||||
# Mailcatcher config, start mailcatcher from console with 'mailcatcher'
|
||||
# Mailcatcher can be installed by gem install mailcatcher
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.smtp_settings = { address: ENV.fetch("MAILCATCHER_ADDRESS", "localhost"), port: ENV.fetch("MAILCATCHER_PORT", 1025) }
|
||||
#config.action_mailer.delivery_method = :smtp
|
||||
#config.action_mailer.smtp_settings = { address: ENV.fetch("MAILCATCHER_ADDRESS", "localhost"), port: ENV.fetch("MAILCATCHER_PORT", 1025) }
|
||||
|
||||
# Raises error for missing translations
|
||||
# config.action_view.raise_on_missing_translations = true
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@ de:
|
|||
actions_for_all: Aktion für alle ausführen
|
||||
delete: Rechnung löschen
|
||||
create_cumulative_invoice: Kumulative Rechnung erstellen
|
||||
confirm_send_all: Möchtest Du wirklich diese Bestellgruppenrechnungen an %{ordergroups} versenden?
|
||||
combine: Rechnungen zusammenfassen
|
||||
download: Rechnung herunterladen
|
||||
download_all_zip: Alle Rechnungen herunterladen (zip)
|
||||
|
|
@ -111,6 +112,8 @@ de:
|
|||
ordergroup: Bestellgruppe
|
||||
paid: Bezahlt
|
||||
not_paid: Nicht Bezahlt
|
||||
send_all_by_email: Alle Rechnungen versenden
|
||||
send_all_success: Rechnungen erfolgreich versendet
|
||||
sepa_downloaded: SEPA exportiert
|
||||
sepa_not_downloaded: SEPA nicht exportiert
|
||||
sepa_not_ready:
|
||||
|
|
@ -195,6 +198,9 @@ de:
|
|||
last_user_activity: Zuletzt aktiv
|
||||
name: Name
|
||||
user_tokens: Mitglieder
|
||||
ordergroup_invoice:
|
||||
name: Bestellgruppenrechnung
|
||||
email_sent: versendet am
|
||||
sepa_account_holder:
|
||||
bic: BIC
|
||||
holder: SEPA Kontoinhaber*in
|
||||
|
|
@ -1393,6 +1399,15 @@ de:
|
|||
Im Anhang befindet sich daher eure Rechnung.
|
||||
|
||||
Viele Grüße von %{foodcoop}
|
||||
ordergroup_invoice:
|
||||
subject: Bestellgruppenrechnung für %{group} bei %{supplier}
|
||||
text: |
|
||||
Liebe Bestellgruppe %{group},
|
||||
|
||||
Die Sammelbestellung bei %{supplier} wurde soeben abgerechnet und für die jeweiligen Bestellgruppen Rechnungen angelegt.
|
||||
Im Anhang befindet sich daher eure Rechnung.
|
||||
|
||||
Viele Grüße von %{foodcoop}
|
||||
invite:
|
||||
subject: Einladung in die Foodcoop
|
||||
text: |
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ en:
|
|||
total_price: Sum
|
||||
unit_price: Price/Unit
|
||||
group_order_invoice:
|
||||
name: Group order invoice
|
||||
name: group-order-invoice
|
||||
sequence_type:
|
||||
FRST: "First Direct Debit"
|
||||
RCUR: "Recurring Direct Debit"
|
||||
|
|
@ -101,6 +101,7 @@ en:
|
|||
actions_for_all: Actions for all group orders
|
||||
create_cumulative_invoice: create cumulative invoice
|
||||
combine: combine invoices
|
||||
confirm_send_all: Are you sure you want to send these ordergroup invoices to %{ordergroups}?
|
||||
delete: delete invoice
|
||||
download: download invoice
|
||||
download_all_zip: download all invoices as zip
|
||||
|
|
@ -111,6 +112,8 @@ en:
|
|||
ordergroup: Ordergroup
|
||||
paid: paid
|
||||
not_paid: unpaid
|
||||
send_all_by_email: send all invoices
|
||||
send_all_success: Invoices were sent to all ordergroups
|
||||
sepa_downloaded: SEPA exported
|
||||
sepa_not_downloaded: SEPA not exported
|
||||
sepa_not_ready: Configurations for SEPA are missing in Admin->Settings->Finances
|
||||
|
|
@ -194,6 +197,9 @@ en:
|
|||
last_user_activity: Last activity
|
||||
name: Name
|
||||
user_tokens: Members
|
||||
ordergroup_invoice:
|
||||
name: ordergroup-invoice
|
||||
email_sent: Email sent at
|
||||
stock_article:
|
||||
available: Available
|
||||
price: Price
|
||||
|
|
@ -1358,7 +1364,16 @@ en:
|
|||
header: "%{user} wrote at %{date}:"
|
||||
subject: Feedback for Foodsoft
|
||||
group_order_invoice:
|
||||
subject: Order group invoice for %{group} at %{supplier}
|
||||
subject: Group order invoice for %{group} at %{supplier}
|
||||
text: |
|
||||
Dear order group %{group},
|
||||
|
||||
The collective order at %{supplier} has just been settled and invoices have been created for the respective order groups.
|
||||
Attached you will find your invoice.
|
||||
|
||||
Best regards from %{foodcoop}
|
||||
ordergroup_invoice:
|
||||
subject: Group order invoice for %{group} at %{supplier}
|
||||
text: |
|
||||
Dear order group %{group},
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,11 @@
|
|||
Rails.application.routes.draw do
|
||||
mount Rswag::Ui::Engine => '/api-docs'
|
||||
mount Rswag::Api::Engine => '/api-docs'
|
||||
|
||||
if Rails.env.development?
|
||||
mount LetterOpenerWeb::Engine, at: "/letter_opener"
|
||||
end
|
||||
|
||||
get 'order_comments/new'
|
||||
|
||||
get 'comments/new'
|
||||
|
|
@ -152,7 +157,8 @@ Rails.application.routes.draw do
|
|||
post 'finance/group_order_invoice', to: 'group_order_invoices#create_multiple'
|
||||
|
||||
get 'orders/:order_id/group_order_invoices/download_all', to: 'group_order_invoices#download_all', as: 'download_all_group_order_invoices'
|
||||
get 'multi_orders/:multi_order_id/group_order_invoices/download_all', to: 'ordergroup_invoices#download_all', as: 'download_all_ordergroup_invoices'
|
||||
get 'multi_orders/:multi_order_id/ordergroup_invoices/download_all', to: 'ordergroup_invoices#download_all', as: 'download_all_ordergroup_invoices'
|
||||
post 'multi_orders/:multi_order_id/ordergroup_invoices/send_all', to: 'ordergroup_invoices#send_all', as: 'send_all_ordergroup_invoices'
|
||||
|
||||
resources :ordergroup_invoices do
|
||||
member do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue