Package com.plainsource.commons.text

Examples of com.plainsource.commons.text.CurrencyDecimal.format()


    private void addGrandTotalTokens() {
        BigDecimal total = invoiceType.getLegalMonetaryTotal().getPayableAmount().getValue();
        CurrencyDecimal totalCurrency = new CurrencyDecimal(total, invoiceTypeCurrency, locale);
        template.addToken(new Token(TextLabel.INV_TOTAL_LABEL.toLowerCase(),
                TextLabel.INV_TOTAL_LABEL.toString(locale)));
        template.addToken(new Token(TextLabel.INV_TOTAL.toLowerCase(), totalCurrency.format()));
    }

    private void addTaxTotalTokens() {
        if (invoiceType.getTaxTotal().size() > 0) {
            TaxTotalType taxTotalType = invoiceType.getTaxTotal().get(0);
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.