}
}
private boolean isOrderLineCurrencyTheSame(OrderLineType orderLineType) {
LineItemType lineItemType = orderLineType.getLineItem();
LineExtensionAmountType lineExtensionAmount = lineItemType.getLineExtensionAmount();
// Check to see if the line extension prices all have the same value as the referenceCurrency
if (lineExtensionAmount != null) {
if (!referenceCurrency.equals(lineExtensionAmount.getCurrencyID())) {
this.errorCurrency = lineExtensionAmount.getCurrencyID();
return false;
}
}
// 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());