|
|
|
|
@ -136,7 +136,7 @@ public class FormTransaksiReturController implements Initializable {
|
|
|
|
|
tcDisc2.setCellValueFactory(new PropertyValueFactory<>("disc2"));
|
|
|
|
|
tcSubTotal.setCellValueFactory(new PropertyValueFactory<>("subTotal"));
|
|
|
|
|
tcPramuniaga.setCellValueFactory(new PropertyValueFactory<>("fldPramuniaga"));
|
|
|
|
|
// tcBtnBatal.setCellValueFactory(new PropertyValueFactory<>("btnBatal"));
|
|
|
|
|
// tcBtnBatal.setCellValueFactory(new PropertyValueFactory<>("btnBatal"));
|
|
|
|
|
tbvPenjualan.setItems(daftarTabelPenjualan);
|
|
|
|
|
|
|
|
|
|
tcNoRetur.setCellValueFactory((TableColumn.CellDataFeatures<TabelBarangRetur, Integer> cell) -> {
|
|
|
|
|
@ -151,7 +151,6 @@ public class FormTransaksiReturController implements Initializable {
|
|
|
|
|
tcDisc2Retur.setCellValueFactory(new PropertyValueFactory<>("disc2"));
|
|
|
|
|
tcSubTotalRetur.setCellValueFactory(new PropertyValueFactory<>("subTotal"));
|
|
|
|
|
tcPramuniagaRetur.setCellValueFactory(new PropertyValueFactory<>("fldPramuniaga"));
|
|
|
|
|
tcBtnBatal.setCellValueFactory(new PropertyValueFactory<>("btnBatal"));
|
|
|
|
|
tbvRetur.setItems(daftarTabelRetur);
|
|
|
|
|
|
|
|
|
|
Platform.runLater(() -> {
|
|
|
|
|
@ -221,18 +220,9 @@ public class FormTransaksiReturController implements Initializable {
|
|
|
|
|
|
|
|
|
|
private void refreshDataRetur(List<DNotaRetur> daftarDNotaRetur) {
|
|
|
|
|
daftarTabelRetur.clear();
|
|
|
|
|
|
|
|
|
|
for (DNotaRetur dNotaRetur : daftarDNotaRetur) {
|
|
|
|
|
//Button
|
|
|
|
|
Button btnBatal = ButtonUtility.generateButton(ButtonUtility.CLOSE_ICON);
|
|
|
|
|
btnBatal.setOnAction((t) -> {
|
|
|
|
|
Alert alert = AlertUtil.getAlertDialogKonfirmasi(
|
|
|
|
|
AlertUtil.DIALOG_KONFIRMASI_MESSAGE,
|
|
|
|
|
"Yakin ingin menghapus barang?");
|
|
|
|
|
alert.initOwner(apMain.getScene().getWindow());
|
|
|
|
|
alert.show();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
for(DNotaRetur dNotaRetur : daftarDNotaRetur){
|
|
|
|
|
//Button
|
|
|
|
|
TextField fldPramuniaga = new TextField(dNotaRetur.getKodePram());
|
|
|
|
|
|
|
|
|
|
String namaBarang = "...";
|
|
|
|
|
@ -254,8 +244,7 @@ public class FormTransaksiReturController implements Initializable {
|
|
|
|
|
Fucout.getText(Fucout.formatRibuan(
|
|
|
|
|
dNotaRetur.getHargaJual() * dNotaRetur.getJumlah()
|
|
|
|
|
)),
|
|
|
|
|
fldPramuniaga,
|
|
|
|
|
btnBatal);
|
|
|
|
|
fldPramuniaga);
|
|
|
|
|
|
|
|
|
|
tbr.setData(dNotaRetur);
|
|
|
|
|
daftarTabelRetur.add(tbr);
|
|
|
|
|
@ -394,15 +383,6 @@ public class FormTransaksiReturController implements Initializable {
|
|
|
|
|
success = true;
|
|
|
|
|
|
|
|
|
|
if (!ada) {
|
|
|
|
|
Button btnBatal = ButtonUtility.generateButton(ButtonUtility.CLOSE_ICON);
|
|
|
|
|
btnBatal.setOnAction((t) -> {
|
|
|
|
|
Alert alert = AlertUtil.getAlertDialogKonfirmasi(
|
|
|
|
|
AlertUtil.DIALOG_KONFIRMASI_MESSAGE,
|
|
|
|
|
"Yakin ingin menghapus barang?");
|
|
|
|
|
alert.initOwner(apMain.getScene().getWindow());
|
|
|
|
|
alert.show();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
TextField fldPramuniaga = new TextField();
|
|
|
|
|
|
|
|
|
|
DNotaRetur dNotaRetur = new DNotaRetur(noNota, draggedTabelBarangTunai.getData());
|
|
|
|
|
@ -417,9 +397,7 @@ public class FormTransaksiReturController implements Initializable {
|
|
|
|
|
Fucout.getText(Fucout.formatRibuan(
|
|
|
|
|
dNotaRetur.getJumlah() * dNotaRetur.getHargaJual()
|
|
|
|
|
)),
|
|
|
|
|
fldPramuniaga,
|
|
|
|
|
btnBatal);
|
|
|
|
|
|
|
|
|
|
fldPramuniaga);
|
|
|
|
|
tbr.setData(dNotaRetur);
|
|
|
|
|
|
|
|
|
|
daftarTabelRetur.add(tbr);
|
|
|
|
|
|