Examples of PriceAmountType


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

    public void convertFromHoursToDays(BigDecimal numberOfHoursInDay) {
        invoicedQuantityType.setValue(WorkTimeUnit.HOURS.toDays(invoicedQuantityType.getValue()));
        invoicedQuantityType.setUnitCode(WorkTimeUnit.DAY_UNIT_CODE);

        BigDecimal dailyPrice = priceType.getPriceAmount().getValue().multiply(numberOfHoursInDay);
        PriceAmountType priceAmountType = new PriceAmountType();
        priceAmountType.setValue(dailyPrice);
        priceAmountType.setCurrencyID(priceType.getPriceAmount().getCurrencyID());
        priceType.setPriceAmount(priceAmountType);
    }
View Full Code Here

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

    public void convertFromDaysToHours(BigDecimal numberOfHoursInDay) {
        invoicedQuantityType.setValue(WorkTimeUnit.DAYS.toHours(invoicedQuantityType.getValue()));
        invoicedQuantityType.setUnitCode(WorkTimeUnit.HOUR_UNIT_CODE);

        BigDecimal hourlyPrice = priceType.getPriceAmount().getValue().divide(numberOfHoursInDay, 2, RoundingMode.HALF_UP);
        PriceAmountType priceAmountType = new PriceAmountType();
        priceAmountType.setValue(hourlyPrice);
        priceAmountType.setCurrencyID(priceType.getPriceAmount().getCurrencyID());
        priceType.setPriceAmount(priceAmountType);
    }
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.