public void book(boolean debit) {
        for (Account selectedAccount : table.getSelectedObjects()) {
            if (selectedAccount != null) {
                BigDecimal amount = journalInputGUI.askAmount(selectedAccount, debit);
                if (amount != null) {
                    journalInputGUI.addBooking(new Booking(selectedAccount, amount, debit));
                }
            }
        }
        setVisible(false);
    }