invoice.setDataFromTransaction(getOrderConfirmation(), userNumber);
JbsOptionPane dialog = JbsOptionPane.showMessageDialog(this, JbsL10N.getString("OrderConfirmation.msgToInvoice"), JbsL10N.getString("OrderConfirmation.formTitle"), JbsOptionPane.INFORMATION_MESSAGE);
dialog.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
FmInvoiceEdit fmInvoiceEdit = new FmInvoiceEdit();
fmInvoiceEdit.showForm(DlgState.dsCopy, invoice);
addAction(PnOfferEdit.ACTION_TOINVOICE);
}
});
} catch (Exception e) {
logger.error("Error creating invoice.", e);