invoiceEngine.setShippingTotal(Format.getFloat(form.getInputShippingTotal()));
}
boolean isValid = validateInput(form, request);
if (!isValid || messages.size() > 0) {
initOrder(form, orderHeader, null, null, null, request);
invoiceEngine.calculateHeader();
saveMessages(request, messages);
Long id = null;
if (!Format.isNullOrEmpty(invoiceHeaderId)) {
id = Format.getLong(invoiceHeaderId);
}