Examples of LineExtensionAmountType


Examples of oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LineExtensionAmountType

        String currencyCode = payableAmountType.getCurrencyID().value();
        return createCurrencyDecimal(value, currencyCode);
    }

    private CurrencyDecimal createSubTotal(MonetaryTotalType monetaryTotalType) {
        LineExtensionAmountType lineExtensionAmount = monetaryTotalType.getLineExtensionAmount();
        BigDecimal value = lineExtensionAmount.getValue();
        String currencyCode = lineExtensionAmount.getCurrencyID().value();
        return createCurrencyDecimal(value, currencyCode);
    }
View Full Code Here

Examples of oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LineExtensionAmountType

    }

    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
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.