Package org.openinvoice.ubl4j.core.common.text

Examples of org.openinvoice.ubl4j.core.common.text.QuantityConverter.convert()


            // If the conversion enabled, it converts the WorkTimeUnit to the specified
            //  WorkTimeUnit in the UBL4J configuration file. It also adapts the
            // price accordingly.
            if (ubl4JConfigurationBean.isWorkTimeUnitConversionEnabled()) {
                QuantityConverter quantityConverter = new QuantityConverter(invoicedQuantityType, invoiceLineTypePrice);
                quantityConverter.convert(ubl4JConfigurationBean.getPersistenceWorkTimeUnit(), ubl4JConfigurationBean.getWorkHourPerDay());
                invoiceLineTypePrice.setPriceAmount(quantityConverter.getPriceType().getPriceAmount());
                invoiceLineType.setInvoicedQuantity(invoicedQuantityType);

                // Convert Base Quantity
                invoiceLineTypePrice.setBaseQuantity(org.openinvoice.ubl4j.core.invoice.InvoiceTypeHelper
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.