mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(feat) custom message on invoice PDF not found
This commit is contained in:
parent
3fc706f463
commit
16c24e565c
@ -18,6 +18,7 @@
|
||||
- OpenAPI users endpoint return first name, last name, gender, organization and address
|
||||
- Default accounting codes and labels if not set
|
||||
- Active serving static files from the `/public` folder by default from rails
|
||||
- Display custom error message if the PDF invoice is not found
|
||||
- Fix a bug: unable to run test in negative timezones (#425)
|
||||
- Fix a bug: providing an array of attributes to filter OpenApi data, results in error
|
||||
- Fix a bug: unable to manage stocks on new products
|
||||
@ -27,6 +28,7 @@
|
||||
- Fix a bug: clearing the new expiration date field in the offer days modal result in errors
|
||||
- Fix a bug: low stock notification is always sent if one of the stocks has reached the threshold
|
||||
- Fix a bug: unable to update title of availability after admin remove a machine/plan in calendar
|
||||
- Fix a bug: unable to access files from the public folder (like example.csv)
|
||||
- Updated react-modal to 3.16.1
|
||||
- Updated tiptap editor and its dependencies to 2.0.0-beta.204
|
||||
- [TODO DEPLOY] `rails db:seed`
|
||||
|
@ -12,9 +12,13 @@ class API::InvoicesController < API::ApiController
|
||||
).all.order('reference DESC')
|
||||
end
|
||||
|
||||
def show; end
|
||||
|
||||
def download
|
||||
authorize @invoice
|
||||
send_file File.join(Rails.root, @invoice.file), type: 'application/pdf', disposition: 'attachment'
|
||||
send_file Rails.root.join(@invoice.file), type: 'application/pdf', disposition: 'attachment'
|
||||
rescue ActionController::MissingFile
|
||||
render html: I18n.t('invoices.unable_to_find_pdf'), status: :not_found
|
||||
end
|
||||
|
||||
def list
|
||||
|
@ -536,5 +536,6 @@ de:
|
||||
spaces: "Spaces"
|
||||
events: "Events"
|
||||
externals: "Other calendars"
|
||||
show_reserved_uniq: "Show reserved slots only"
|
||||
machine:
|
||||
machine_uncategorized: "Uncategorized machines"
|
||||
|
@ -536,5 +536,6 @@ es:
|
||||
spaces: "Spaces"
|
||||
events: "Events"
|
||||
externals: "Other calendars"
|
||||
show_reserved_uniq: "Show reserved slots only"
|
||||
machine:
|
||||
machine_uncategorized: "Uncategorized machines"
|
||||
|
@ -536,5 +536,6 @@ fr:
|
||||
spaces: "Espaces"
|
||||
events: "Événements"
|
||||
externals: "Autres calendriers"
|
||||
show_reserved_uniq: "Show reserved slots only"
|
||||
machine:
|
||||
machine_uncategorized: "Machines non classés"
|
||||
|
@ -536,5 +536,6 @@
|
||||
spaces: "Spaces"
|
||||
events: "Events"
|
||||
externals: "Other calendars"
|
||||
show_reserved_uniq: "Show reserved slots only"
|
||||
machine:
|
||||
machine_uncategorized: "Uncategorized machines"
|
||||
|
@ -536,5 +536,6 @@ pt:
|
||||
spaces: "Spaces"
|
||||
events: "Events"
|
||||
externals: "Other calendars"
|
||||
show_reserved_uniq: "Show reserved slots only"
|
||||
machine:
|
||||
machine_uncategorized: "Uncategorized machines"
|
||||
|
@ -536,5 +536,6 @@ zu:
|
||||
spaces: "crwdns36191:0crwdne36191:0"
|
||||
events: "crwdns36193:0crwdne36193:0"
|
||||
externals: "crwdns36195:0crwdne36195:0"
|
||||
show_reserved_uniq: "crwdns36249:0crwdne36249:0"
|
||||
machine:
|
||||
machine_uncategorized: "crwdns36219:0crwdne36219:0"
|
||||
|
@ -133,6 +133,7 @@ de:
|
||||
prepaid_pack: "Prepaid-Stundenpaket"
|
||||
pack_item: "Paket von %{COUNT} Stunden für %{ITEM}"
|
||||
order: "Your order on the store"
|
||||
unable_to_find_pdf: "We cannot find your invoice. If you ordered recently, it may have not been generated yet. Please retry in a moment."
|
||||
#PDF payment schedule generation
|
||||
payment_schedules:
|
||||
schedule_reference: "Zahlungsplan Referenz: %{REF}"
|
||||
|
@ -133,6 +133,7 @@ en:
|
||||
prepaid_pack: "Prepaid pack of hours"
|
||||
pack_item: "Pack of %{COUNT} hours for the %{ITEM}"
|
||||
order: "Your order on the store"
|
||||
unable_to_find_pdf: "We cannot find your invoice. If you ordered recently, it may have not been generated yet. Please retry in a moment."
|
||||
#PDF payment schedule generation
|
||||
payment_schedules:
|
||||
schedule_reference: "Payment schedule reference: %{REF}"
|
||||
|
@ -133,6 +133,7 @@ es:
|
||||
prepaid_pack: "Prepaid pack of hours"
|
||||
pack_item: "Pack of %{COUNT} hours for the %{ITEM}"
|
||||
order: "Your order on the store"
|
||||
unable_to_find_pdf: "We cannot find your invoice. If you ordered recently, it may have not been generated yet. Please retry in a moment."
|
||||
#PDF payment schedule generation
|
||||
payment_schedules:
|
||||
schedule_reference: "Payment schedule reference: %{REF}"
|
||||
|
@ -133,6 +133,7 @@ fr:
|
||||
prepaid_pack: "Paquet d'heures prépayé"
|
||||
pack_item: "Pack de %{COUNT} heures pour la %{ITEM}"
|
||||
order: "Votre commande sur la boutique"
|
||||
unable_to_find_pdf: "Nous ne trouvons pas votre facture. Si vous avez commandé récemment, il se peut qu'elle n'ait pas encore été générée. Veuillez réessayer dans un instant."
|
||||
#PDF payment schedule generation
|
||||
payment_schedules:
|
||||
schedule_reference: "Référence de l'échéancier : %{REF}"
|
||||
|
@ -133,6 +133,7 @@
|
||||
prepaid_pack: "Forhåndsbetalt pakke med timer"
|
||||
pack_item: "Pakke med %{COUNT} timer for %{ITEM}"
|
||||
order: "Your order on the store"
|
||||
unable_to_find_pdf: "We cannot find your invoice. If you ordered recently, it may have not been generated yet. Please retry in a moment."
|
||||
#PDF payment schedule generation
|
||||
payment_schedules:
|
||||
schedule_reference: "Referanse til betalingsplanen: %{REF}"
|
||||
|
@ -133,6 +133,7 @@ pt:
|
||||
prepaid_pack: "Pacote de horas pré-pago"
|
||||
pack_item: "Pacote de %{COUNT} horas para a %{ITEM}"
|
||||
order: "Your order on the store"
|
||||
unable_to_find_pdf: "We cannot find your invoice. If you ordered recently, it may have not been generated yet. Please retry in a moment."
|
||||
#PDF payment schedule generation
|
||||
payment_schedules:
|
||||
schedule_reference: "Agendamento de pagamento: %{REF}"
|
||||
|
@ -133,6 +133,7 @@ zu:
|
||||
prepaid_pack: "crwdns22022:0crwdne22022:0"
|
||||
pack_item: "crwdns22024:0%{COUNT}crwdnd22024:0%{ITEM}crwdne22024:0"
|
||||
order: "crwdns31699:0crwdne31699:0"
|
||||
unable_to_find_pdf: "crwdns36251:0crwdne36251:0"
|
||||
#PDF payment schedule generation
|
||||
payment_schedules:
|
||||
schedule_reference: "crwdns21094:0%{REF}crwdne21094:0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user