}
// Check to see tax currencies are all the same as the ref. currency
List<TaxCategoryType> taxCategoryTypes = lineItemType.getItem().getClassifiedTaxCategory();
for (TaxCategoryType taxCategoryType : taxCategoryTypes) {
TaxSchemeType taxSchemeType = taxCategoryType.getTaxScheme();
if (taxSchemeType != null) {
if (!this.referenceCurrency.value().equals(taxSchemeType.getCurrencyCode().getValue())) {
this.errorCurrency = CurrencyCodeContentType.valueOf(taxSchemeType.getCurrencyCode().getValue());
return false;
}
}
}
return true;