Browse Source

menambahkan anchor di radioButton UI form dialogTambahNota, bug fixed menambahkan nota bawa dulu

pull/2/head
Jessica C Dewanta 5 years ago
parent
commit
9baea65099
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      src/main/java/id/amigogroup/posterminal/FormConstanta.java
  2. +1
    -1
      src/main/java/id/amigogroup/posterminal/FormUtamaController.java
  3. +1
    -1
      src/main/java/id/amigogroup/posterminal/util/Fucout.java
  4. +2
    -2
      src/main/resources/fxml/DialogTambahNota.fxml

+ 1
- 1
src/main/java/id/amigogroup/posterminal/FormConstanta.java View File

@@ -5,7 +5,7 @@ public class FormConstanta {
//daftarkan halaman disini //daftarkan halaman disini
public static final String TRANSAKSI_TUNAI = "Transaksi Tunai"; public static final String TRANSAKSI_TUNAI = "Transaksi Tunai";
public static final String TRANSAKSI_BON = "Transaksi Bon"; public static final String TRANSAKSI_BON = "Transaksi Bon";
public static final String TRANSAKSI_BAWA = "Transaksi Bawa";
public static final String TRANSAKSI_BAWA = "Transaksi Bawa Dulu";
public static final String TRANSAKSI_RETUR = "Transaksi Retur"; public static final String TRANSAKSI_RETUR = "Transaksi Retur";
public static final String BAYAR = "Bayar"; public static final String BAYAR = "Bayar";
} }

+ 1
- 1
src/main/java/id/amigogroup/posterminal/FormUtamaController.java View File

@@ -394,7 +394,7 @@ public class FormUtamaController implements Initializable {
vbNavigasi.getChildren().add(buttonBaru); vbNavigasi.getChildren().add(buttonBaru);
jumlahNota++; jumlahNota++;
} }
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Bawa")) {
else if (hasilReturn.isPresent() && hasilReturn.get().equals("Bawa Dulu")) {


Button buttonBaru = generateButtonNota("10-0220-0000X", Button buttonBaru = generateButtonNota("10-0220-0000X",
FormConstanta.TRANSAKSI_BAWA, FormConstanta.TRANSAKSI_BAWA,


+ 1
- 1
src/main/java/id/amigogroup/posterminal/util/Fucout.java View File

@@ -27,7 +27,7 @@ public class Fucout {


public static final String TIPE_NOTA_TUNAI = "Tunai"; public static final String TIPE_NOTA_TUNAI = "Tunai";
public static final String TIPE_NOTA_BON = "Bon"; public static final String TIPE_NOTA_BON = "Bon";
public static final String TIPE_NOTA_BAWA = "Bawa";
public static final String TIPE_NOTA_BAWA = "Bawa Dulu";
public static final String TIPE_NOTA_RETUR = "Retur"; public static final String TIPE_NOTA_RETUR = "Retur";


//IMAGES URL //IMAGES URL


+ 2
- 2
src/main/resources/fxml/DialogTambahNota.fxml View File

@@ -15,11 +15,11 @@
<Font size="16.0" /> <Font size="16.0" />
</font> </font>
</Label> </Label>
<RadioButton fx:id="rbBaru" layoutX="4.0" layoutY="30.0" mnemonicParsing="false" onAction="#rbNotaBaruOnAction" selected="true" text="Baru" AnchorPane.leftAnchor="4.0" AnchorPane.topAnchor="30.0">
<RadioButton fx:id="rbBaru" layoutX="4.0" layoutY="30.0" mnemonicParsing="false" onAction="#rbNotaBaruOnAction" selected="true" text="Baru" AnchorPane.leftAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="30.0">
<toggleGroup> <toggleGroup>
<ToggleGroup fx:id="tgTipe" /> <ToggleGroup fx:id="tgTipe" />
</toggleGroup></RadioButton> </toggleGroup></RadioButton>
<RadioButton fx:id="rbAmbilDariCheckout" layoutX="4.0" layoutY="90.0" mnemonicParsing="false" onAction="#rbAmbilDariCheckoutOnAction" text="Ambil dari checkout" toggleGroup="$tgTipe" AnchorPane.leftAnchor="4.0" AnchorPane.topAnchor="90.0" />
<RadioButton fx:id="rbAmbilDariCheckout" layoutX="4.0" layoutY="90.0" mnemonicParsing="false" onAction="#rbAmbilDariCheckoutOnAction" text="Ambil dari checkout" toggleGroup="$tgTipe" AnchorPane.leftAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="90.0" />
<ComboBox fx:id="cbxPilihNota" layoutX="4.0" layoutY="52.0" prefWidth="150.0" promptText="Pilih nota" AnchorPane.leftAnchor="4.0" AnchorPane.topAnchor="52.0" /> <ComboBox fx:id="cbxPilihNota" layoutX="4.0" layoutY="52.0" prefWidth="150.0" promptText="Pilih nota" AnchorPane.leftAnchor="4.0" AnchorPane.topAnchor="52.0" />
<TextField fx:id="txtFieldAmbilDariCheckout" disable="true" layoutX="4.0" layoutY="112.0" AnchorPane.leftAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="112.0" /> <TextField fx:id="txtFieldAmbilDariCheckout" disable="true" layoutX="4.0" layoutY="112.0" AnchorPane.leftAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="112.0" />
</children> </children>


Loading…
Cancel
Save