|
|
|
|
@ -376,7 +376,7 @@ public class FormUtamaController implements Initializable {
|
|
|
|
|
dialogTambahNota.initOwner(bpMain.getScene().getWindow());
|
|
|
|
|
Optional<String> hasilReturn = dialogTambahNota.showAndWait();
|
|
|
|
|
|
|
|
|
|
if (hasilReturn.isPresent() && hasilReturn.get().equals("Tunai")) {
|
|
|
|
|
if (hasilReturn.isPresent() && hasilReturn.get().equals("Baru:Tunai")) {
|
|
|
|
|
|
|
|
|
|
Button buttonBaru = generateButtonNota("10-0220-0000X",
|
|
|
|
|
FormConstanta.TRANSAKSI_TUNAI,
|
|
|
|
|
@ -385,7 +385,7 @@ public class FormUtamaController implements Initializable {
|
|
|
|
|
vbNavigasi.getChildren().add(buttonBaru);
|
|
|
|
|
jumlahNota++;
|
|
|
|
|
}
|
|
|
|
|
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Bon")) {
|
|
|
|
|
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Baru:Bon")) {
|
|
|
|
|
|
|
|
|
|
Button buttonBaru = generateButtonNota("10-0220-0000X",
|
|
|
|
|
FormConstanta.TRANSAKSI_BON,
|
|
|
|
|
@ -394,7 +394,7 @@ public class FormUtamaController implements Initializable {
|
|
|
|
|
vbNavigasi.getChildren().add(buttonBaru);
|
|
|
|
|
jumlahNota++;
|
|
|
|
|
}
|
|
|
|
|
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Bawa Dulu")) {
|
|
|
|
|
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Baru:Bawa Dulu")) {
|
|
|
|
|
|
|
|
|
|
Button buttonBaru = generateButtonNota("10-0220-0000X",
|
|
|
|
|
FormConstanta.TRANSAKSI_BAWA,
|
|
|
|
|
@ -403,7 +403,7 @@ public class FormUtamaController implements Initializable {
|
|
|
|
|
vbNavigasi.getChildren().add(buttonBaru);
|
|
|
|
|
jumlahNota++;
|
|
|
|
|
}
|
|
|
|
|
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Retur")) {
|
|
|
|
|
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Baru:Retur")) {
|
|
|
|
|
|
|
|
|
|
Button buttonBaru = generateButtonNota("10-0220-0000X",
|
|
|
|
|
FormConstanta.TRANSAKSI_RETUR,
|
|
|
|
|
@ -411,6 +411,13 @@ public class FormUtamaController implements Initializable {
|
|
|
|
|
navigasi.add(buttonBaru);
|
|
|
|
|
vbNavigasi.getChildren().add(buttonBaru);
|
|
|
|
|
jumlahNota++;
|
|
|
|
|
} else if(hasilReturn.isPresent() && hasilReturn.get().contains("Checkout:")){
|
|
|
|
|
Button buttonBaru = generateButtonNota(hasilReturn.get().substring(9),
|
|
|
|
|
FormConstanta.TRANSAKSI_TUNAI,
|
|
|
|
|
Fucout.TIPE_NOTA_TUNAI);
|
|
|
|
|
navigasi.add(buttonBaru);
|
|
|
|
|
vbNavigasi.getChildren().add(buttonBaru);
|
|
|
|
|
jumlahNota++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|