*
* @throws UBL4JException in case issues while converting the order file
* @throws IOException in case issues while reading the order file
*/
public void executeCreateInvoiceBasedOnOrderTask() throws UBL4JException, IOException {
InvoiceCreationInput input = new CreateInvoiceBasedOnOrderInput();
input = initOutputOptions(input);
input.setUbl4jConfigurationBean(UBL4JConfigurationBeanBuilder.getInstance());
File orderFile = new File(options.convertOrderToInvoice);
if (!orderFile.exists()) {
throw new UBL4JException(String.format("order '%s' doesn't exist", orderFile.getAbsolutePath()));
}
((CreateInvoiceBasedOnOrderInput)input).setOrderURI(URI.create(orderFile.toURI().getPath()));