saveInput(form, invoiceEngine);
invoiceEngine.saveOrder();
orderHeader = invoiceEngine.getOrderHeader();
OrderEngine orderEngine = new OrderEngine(orderHeader, user);
orderHeader.setOrderStatus(orderEngine.calcStatus(orderHeader));
invoiceHeader = invoiceEngine.getInvoiceHeader();
form.setInvoiceHeaderId(invoiceHeader.getInvoiceHeaderId().toString());
// refresh form
initOrder(form, orderHeader, invoiceHeader, null, null, request);
calcTotal(form, invoiceHeader.getInvoiceHeaderId(), invoiceEngine);