1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

custom prices in invoice generation

This commit is contained in:
Sylvain 2016-08-29 16:37:51 +02:00
parent af883ea1ec
commit d86cccf98c
3 changed files with 10 additions and 8 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"