Skip to content

Commit

Permalink
#464 set always false to vat exemption when doing the fallback valida…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
syjer committed Jul 5, 2018
1 parent 5a3bc0b commit 6ebb86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/alfio/manager/EuVatChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Optional<VatDetail> checkVat(String vatNr, String countryCode, Event even
if(!detail.isValid()) {
String organizerCountry = organizerCountry(configurationManager, event.getOrganizationId());
boolean valid = extensionManager.handleTaxIdValidation(event.getId(), vatNr, organizerCountry);
return new VatDetail(detail.getVatNr(), detail.getCountry(), valid, detail.getName(), detail.getAddress(), detail.isVatExempt());
return new VatDetail(detail.getVatNr(), detail.getCountry(), valid, detail.getName(), detail.getAddress(), false);
} else {
return detail;
}
Expand Down

0 comments on commit 6ebb86a

Please sign in to comment.