diff --git a/src/main/resources/alfio/i18n/public.properties b/src/main/resources/alfio/i18n/public.properties index c86fc759d3..7d39c88a8b 100644 --- a/src/main/resources/alfio/i18n/public.properties +++ b/src/main/resources/alfio/i18n/public.properties @@ -371,4 +371,5 @@ common.back=Back reservation-page.address-line-1=Address Line 1 reservation-page.address-line-2=Address Line 2 reservation-page.zip-postal-code=Zip/Postal Code -reservation-page.city=City \ No newline at end of file +reservation-page.city=City +reservation-page.invoice-details=Invoice details \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/templates/event/reservation-page.ms b/src/main/webapp/WEB-INF/templates/event/reservation-page.ms index 5d57d05aeb..a6a2fbdeaa 100644 --- a/src/main/webapp/WEB-INF/templates/event/reservation-page.ms +++ b/src/main/webapp/WEB-INF/templates/event/reservation-page.ms @@ -233,6 +233,15 @@ {{#i18n}}reservation-page.i-need-an-invoice{{/i18n}} + + + {{/onlyInvoice}} {{/invoiceIsAllowed}} {{/orderSummary.free}} diff --git a/src/main/webapp/resources/js/event/reservation-page.js b/src/main/webapp/resources/js/event/reservation-page.js index e232cd8c98..44f10217de 100644 --- a/src/main/webapp/resources/js/event/reservation-page.js +++ b/src/main/webapp/resources/js/event/reservation-page.js @@ -353,6 +353,15 @@ } }); + + $("#invoice-requested").change(function() { + if($("#invoice-requested:checked").length) { + $(".invoice-details-section").removeClass(hiddenClasses) + } else { + $(".invoice-details-section").addClass(hiddenClasses) + } + }); + }); /*window.recaptchaLoadCallback = function() {