// 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