diff --git a/app/pdfs/pdf/invoice.rb b/app/pdfs/pdf/invoice.rb index 21c4689df..de9d6cdf4 100644 --- a/app/pdfs/pdf/invoice.rb +++ b/app/pdfs/pdf/invoice.rb @@ -126,7 +126,9 @@ module PDF details += I18n.t('invoices.event_reservation_DESCRIPTION', DESCRIPTION: item.description) # details of the number of tickets details += "\n "+I18n.t('invoices.full_price_ticket', count: invoice.invoiced.nb_reserve_places) if invoice.invoiced.nb_reserve_places > 0 - details += "\n "+I18n.t('invoices.reduced_rate_ticket', count: invoice.invoiced.nb_reserve_reduced_places) if invoice.invoiced.nb_reserve_reduced_places > 0 + invoice.invoiced.tickets.each do |t| + details += "\n "+I18n.t('invoices.other_rate_ticket', count: t.booked, NAME: t.event_price_category.price_category.name) + end ### Other cases (not expected) else diff --git a/config/locales/en.yml b/config/locales/en.yml index ddff67613..4b78ed2bc 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -70,7 +70,7 @@ en: cancellation_of_invoice_REF: "Cancellation of invoice %{REF}" reservation_of_USER_on_DATE_at_TIME: "Reservation of %{USER} on %{DATE} at %{TIME}" cancellation: "Cancellation" - object: "Object:" + object: "Object:"COUNT order_summary: "Order summary:" details: "Details" amount: "Amount" @@ -82,9 +82,9 @@ en: full_price_ticket: one: "One full price ticket" other: "%{count} full price tickets" - reduced_rate_ticket: - one: "One reduced rate ticket" - other: "%{count} reduced rate tickets" + other_rate_ticket: + one: "One %{NAME} ticket" + other: "%{count} %{NAME} tickets" reservation_other: "Reservation (other)" coupon_CODE_discount_of_PERCENT: "Coupon %{CODE}: discount of %{PERCENT}%" total_including_all_taxes: "Total incl. all taxes" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 2fa56e28e..fe8258591 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -82,9 +82,9 @@ fr: full_price_ticket: one: "Une place plein tarif" other: "%{count} places plein tarif" - reduced_rate_ticket: - one: "Une place à tarif réduit" - other: "%{count} places à tarif réduit" + other_rate_ticket: + one: "Une place %{NAME}" + other: "%{count} places %{NAME}" reservation_other: "Réservation (autre)" coupon_CODE_discount_of_PERCENT: "Code %{CODE} : remise de %{PERCENT} %" total_including_all_taxes: "Total TTC"