0002454-azzeramento-dopo-selezione-tessera-con-saldo-negativo #3
@ -3434,7 +3434,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
if ((saldo - calcolaTotale()) < 0) {
|
if ((saldo - calcolaTotale()) < 0) {
|
||||||
JOptionPane.showMessageDialog(this, "Saldo insufficiente!", "Saldo", JOptionPane.OK_OPTION);
|
JOptionPane.showMessageDialog(this, "Saldo insufficiente!", "Saldo", JOptionPane.OK_OPTION);
|
||||||
logTessera();
|
logTessera();
|
||||||
azzera();
|
//azzera();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3907,8 +3907,6 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
try {
|
try {
|
||||||
MyTableModel model = (MyTableModel) tblLista.getModel();
|
MyTableModel model = (MyTableModel) tblLista.getModel();
|
||||||
MyTableModel model1 = (MyTableModel) tblLista1.getModel();
|
MyTableModel model1 = (MyTableModel) tblLista1.getModel();
|
||||||
/*clearTable(model);
|
|
||||||
clearTable(model1);*/
|
|
||||||
model.clearTable();
|
model.clearTable();
|
||||||
model1.clearTable();
|
model1.clearTable();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -3924,6 +3922,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
|
|
||||||
pnlCategorie.setVisible(false);
|
pnlCategorie.setVisible(false);
|
||||||
pnlProdotti.setVisible(false);
|
pnlProdotti.setVisible(false);
|
||||||
|
|
||||||
if (flagPrecaricaLista == false) {
|
if (flagPrecaricaLista == false) {
|
||||||
abilitaPulsanti(pnlCategorie, false, false);
|
abilitaPulsanti(pnlCategorie, false, false);
|
||||||
abilitaPulsanti(pnlProdotti, false, false);
|
abilitaPulsanti(pnlProdotti, false, false);
|
||||||
@ -3974,23 +3973,23 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
gratuitaResidue = 0;
|
gratuitaResidue = 0;
|
||||||
|
|
||||||
//9-5-18<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
//9-5-18<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||||
if (flagPrecaricaLista) {
|
if (flagPrecaricaLista && !isCassaAperta) {
|
||||||
apriCassaDefault();
|
apriCassaDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void apriCassaDefault() {
|
public void apriCassaDefault() {
|
||||||
lblCategoria.setText("");
|
//lblCategoria.setText("");
|
||||||
lblCognome.setText("");
|
//lblCognome.setText("");
|
||||||
lblNome.setText("");
|
//lblNome.setText("");
|
||||||
lblNascita.setText("");
|
//lblNascita.setText("");
|
||||||
lblScadTessera.setText("");
|
//lblScadTessera.setText("");
|
||||||
lblAzienda.setText("");
|
//lblAzienda.setText("");
|
||||||
lblConvenzione.setText("");
|
//lblConvenzione.setText("");
|
||||||
lblFascia.setText("");
|
//lblFascia.setText("");
|
||||||
|
|
||||||
if (isCassaAperta == false) {
|
//if (isCassaAperta == false) {
|
||||||
|
|
||||||
turnoAttuale();
|
turnoAttuale();
|
||||||
if ((idTurnoAttuale - idTurno) != 0) {
|
if ((idTurnoAttuale - idTurno) != 0) {
|
||||||
@ -4025,12 +4024,12 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
isCassaAperta = true;
|
isCassaAperta = true;
|
||||||
idProfiloTariffario = idProfiloTariffarioDefault;//0L
|
idProfiloTariffario = idProfiloTariffarioDefault;//0L
|
||||||
|
|
||||||
setModoPagamento(modoPagamentoDefault);
|
//setModoPagamento(modoPagamentoDefault);
|
||||||
|
|
||||||
this.caricaPannello();
|
this.caricaPannello();
|
||||||
abilitaPulsanti(pnlCategorie, true, true);
|
//abilitaPulsanti(pnlCategorie, true, true);
|
||||||
jbtnChiudi.setEnabled(false);
|
jbtnChiudi.setEnabled(false);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4062,7 +4061,6 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
|
|
||||||
Date now = new Date();
|
Date now = new Date();
|
||||||
|
|
||||||
Date scadenza = new Date();
|
|
||||||
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
|
|
||||||
idProfiloTariffario = Long.valueOf(dati[12]);
|
idProfiloTariffario = Long.valueOf(dati[12]);
|
||||||
@ -4124,7 +4122,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
|
|
||||||
//aggiungo un giorno altrimenti in caso di scadenza nello stesso giorno
|
//aggiungo un giorno altrimenti in caso di scadenza nello stesso giorno
|
||||||
//considera le ore
|
//considera le ore
|
||||||
scadenza = formatter.parse(dati[9]);
|
Date scadenza = formatter.parse(dati[9]);
|
||||||
Calendar c = Calendar.getInstance();
|
Calendar c = Calendar.getInstance();
|
||||||
c.setTime(scadenza);
|
c.setTime(scadenza);
|
||||||
c.add(Calendar.DATE, 1);
|
c.add(Calendar.DATE, 1);
|
||||||
@ -4177,7 +4175,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
if (modoPagamento.equalsIgnoreCase("A scalare")) {
|
if (modoPagamento.equalsIgnoreCase("A scalare")) {
|
||||||
//modifica 09-11-18
|
//modifica 09-11-18
|
||||||
if (calcolaTotale() >= 0.00 && flagPrecaricaLista == false) {
|
if (calcolaTotale() >= 0.00 && flagPrecaricaLista == false) {
|
||||||
verificaSaldo(numeroTessera);
|
//verificaSaldo(numeroTessera);
|
||||||
}
|
}
|
||||||
//fine modifica
|
//fine modifica
|
||||||
|
|
||||||
@ -4218,7 +4216,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
//modifica 09-11-18
|
//modifica 09-11-18
|
||||||
if (modoPagamento.equalsIgnoreCase("A scalare")) {
|
if (modoPagamento.equalsIgnoreCase("A scalare")) {
|
||||||
if (calcolaTotale() >= 0.00 && flagPrecaricaLista) {
|
if (calcolaTotale() >= 0.00 && flagPrecaricaLista) {
|
||||||
verificaSaldo(numeroTessera);
|
//verificaSaldo(numeroTessera);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//fine modifica
|
//fine modifica
|
||||||
|
Loading…
Reference in New Issue
Block a user