Removed Order Id

This commit is contained in:
2017-12-11 17:39:35 +01:00
parent c3812b7660
commit e3ed6d1043
9 changed files with 81 additions and 65 deletions

View File

@ -227,9 +227,11 @@ public class OpenOrdersList extends javax.swing.JPanel {
private void ctxMenuCancelOrderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ctxMenuCancelOrderActionPerformed
int r = table.getSelectedRow();
Long id = (Long) model.getValueAt(r, 0);
Order co = account.getOrders().get(id);
System.out.printf("Should cancel %d\n", id);
Globals.se.cancelOrder(account.getID(), id);
Globals.se.cancelOrder(account.getID(), co);
}//GEN-LAST:event_ctxMenuCancelOrderActionPerformed