0002064-avanzamento-tecnologico-e-pulizia-sorgenti #1
@ -3360,7 +3360,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
||||
}
|
||||
|
||||
private Boolean verificaSaldo(String numeroTessera) {
|
||||
Boolean OK = false;
|
||||
Boolean isSaldoOK = false;
|
||||
|
||||
//andare su viewtessere
|
||||
String querySaldo = "select t.saldo || '|' || cf.saldo_minimo_alert || '|' || cf.saldo_minimo_stop || '|' || t.punti || '|' as saldi "
|
||||
@ -3419,18 +3419,18 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
||||
}
|
||||
}
|
||||
//}
|
||||
OK = true;
|
||||
isSaldoOK = true;
|
||||
} else if (saldo <= saldoAlert) {
|
||||
JOptionPane.showMessageDialog(this,
|
||||
"Saldo ridotto, potrebbero non essere disponibili tutti i prodotti!",
|
||||
"Saldo Alert", JOptionPane.ERROR_MESSAGE);
|
||||
OK = true;
|
||||
isSaldoOK = true;
|
||||
|
||||
} else {
|
||||
OK = true;
|
||||
isSaldoOK = true;
|
||||
}
|
||||
//}
|
||||
return OK;
|
||||
return isSaldoOK;
|
||||
}
|
||||
|
||||
private String cercaTestoModoPagamento() {
|
||||
@ -4159,11 +4159,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
||||
lblTipoPagamento.setText(tipo);
|
||||
|
||||
}
|
||||
stoCalcolando = true;
|
||||
pulsantiModoPagamento();
|
||||
stoCalcolando = false;
|
||||
this.caricaPannello();
|
||||
abilitaPulsanti(pnlCategorie, true, true);
|
||||
|
||||
//statoTesseraLetta(gratuitaResidue, bonusResidui);
|
||||
|
||||
//28-09-2016 quando c'è una sola categoria faccio click
|
||||
@ -4198,6 +4194,13 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
||||
if (abilitatoPassaggi != 0L) {
|
||||
controllaPrenotazioni();
|
||||
}
|
||||
|
||||
stoCalcolando = true;
|
||||
pulsantiModoPagamento();
|
||||
stoCalcolando = false;
|
||||
this.caricaPannello();
|
||||
abilitaPulsanti(pnlCategorie, true, true);
|
||||
|
||||
} else {
|
||||
JOptionPane.showMessageDialog(this, "Tessera Scaduta o Disabilitata!");
|
||||
logTessera();
|
||||
|
Loading…
Reference in New Issue
Block a user