|
|
|
@@ -145,13 +145,12 @@ public class FormTransaksiTunaiController implements Initializable { |
|
|
|
setTanggal(); |
|
|
|
} |
|
|
|
|
|
|
|
private void initShortcuts() { |
|
|
|
public void initShortcuts() { |
|
|
|
Map<KeyCombination, Runnable> listShortcuts = new HashMap<>(); |
|
|
|
|
|
|
|
KeyCombination kcTundaNota = new KeyCodeCombination(KeyCode.T, KeyCombination.CONTROL_DOWN); |
|
|
|
Runnable rnTundaNota = () -> { |
|
|
|
List<DNotaTunai> daftarDNotaTunai = new ArrayList<>(); |
|
|
|
|
|
|
|
if (noNota != null && !noNota.equals("")) { |
|
|
|
for (TabelBarangTunai tbt : daftarTabelTransaksi) { |
|
|
|
tbt.getData().setNoNota(noNota); |
|
|
|
@@ -196,7 +195,9 @@ public class FormTransaksiTunaiController implements Initializable { |
|
|
|
}; |
|
|
|
listShortcuts.put(kcTundaNota, rnTundaNota); |
|
|
|
|
|
|
|
apMain.getScene().getAccelerators().putAll(listShortcuts); |
|
|
|
Platform.runLater(() -> { |
|
|
|
apMain.getScene().getAccelerators().putAll(listShortcuts); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public void setTanggal() { |
|
|
|
@@ -638,12 +639,14 @@ public class FormTransaksiTunaiController implements Initializable { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void onComplete() { |
|
|
|
if (parent != null) { |
|
|
|
parent.notaContent.setControllerTunai(null); |
|
|
|
parent.notaContent.setNodeTunai(null); |
|
|
|
Platform.runLater(() -> { |
|
|
|
if (parent != null) { |
|
|
|
parent.notaContent.setControllerTunai(null); |
|
|
|
parent.notaContent.setNodeTunai(null); |
|
|
|
|
|
|
|
parent.removeNota(parent.notaContent.getBtnTunai()); |
|
|
|
} |
|
|
|
parent.removeNota(parent.notaContent.getBtnTunai()); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}; |
|
|
|
} |