Skip to content

Commit

Permalink
#571 rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Dec 29, 2018
1 parent 8664df2 commit 58183a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/alfio/manager/TicketReservationManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public PaymentResult confirm(String gatewayToken, String payerId, Event event, S
return paymentResult;
}
if(toBePaid) {
handleBillingDocumentGeneration(event, reservationId, email, customerName, userLanguage, billingAddress, customerReference, reservationCost, invoiceRequested, vatCountryCode, vatNr, vatStatus);
generateInvoiceNumber(event, reservationId, email, customerName, userLanguage, billingAddress, customerReference, reservationCost, invoiceRequested, vatCountryCode, vatNr, vatStatus);
}
completeReservation(event, reservationId, email, customerName, userLanguage, billingAddress, specialPriceSessionId, paymentProxy, customerReference, tcAccepted, privacyPolicyAccepted);
return paymentResult;
Expand All @@ -431,7 +431,7 @@ public PaymentResult confirm(String gatewayToken, String payerId, Event event, S

}

private void handleBillingDocumentGeneration(Event event, String reservationId, String email, CustomerName customerName, Locale userLanguage, String billingAddress, String customerReference, TotalPrice reservationCost, boolean invoiceRequested, String vatCountryCode, String vatNr, PriceContainer.VatStatus vatStatus) {
private void generateInvoiceNumber(Event event, String reservationId, String email, CustomerName customerName, Locale userLanguage, String billingAddress, String customerReference, TotalPrice reservationCost, boolean invoiceRequested, String vatCountryCode, String vatNr, PriceContainer.VatStatus vatStatus) {

if(!invoiceRequested || !configurationManager.hasAllConfigurationsForInvoice(event)) {
return;
Expand Down

0 comments on commit 58183a2

Please sign in to comment.