risoluzione problema calcolo saldo
spostamento metodo pulsantiModoPagamento, che richiama il calcolo del saldo. esso verrà richiamato dopo l'aggiornamento della fascia (conseguente alla scelta della tessera)
This commit is contained in:
parent
54cd2ebb02
commit
8f1a75b4d7
@ -3360,7 +3360,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Boolean verificaSaldo(String numeroTessera) {
|
private Boolean verificaSaldo(String numeroTessera) {
|
||||||
Boolean OK = false;
|
Boolean isSaldoOK = false;
|
||||||
|
|
||||||
//andare su viewtessere
|
//andare su viewtessere
|
||||||
String querySaldo = "select t.saldo || '|' || cf.saldo_minimo_alert || '|' || cf.saldo_minimo_stop || '|' || t.punti || '|' as saldi "
|
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) {
|
} else if (saldo <= saldoAlert) {
|
||||||
JOptionPane.showMessageDialog(this,
|
JOptionPane.showMessageDialog(this,
|
||||||
"Saldo ridotto, potrebbero non essere disponibili tutti i prodotti!",
|
"Saldo ridotto, potrebbero non essere disponibili tutti i prodotti!",
|
||||||
"Saldo Alert", JOptionPane.ERROR_MESSAGE);
|
"Saldo Alert", JOptionPane.ERROR_MESSAGE);
|
||||||
OK = true;
|
isSaldoOK = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
OK = true;
|
isSaldoOK = true;
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
return OK;
|
return isSaldoOK;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String cercaTestoModoPagamento() {
|
private String cercaTestoModoPagamento() {
|
||||||
@ -4159,11 +4159,7 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
lblTipoPagamento.setText(tipo);
|
lblTipoPagamento.setText(tipo);
|
||||||
|
|
||||||
}
|
}
|
||||||
stoCalcolando = true;
|
|
||||||
pulsantiModoPagamento();
|
|
||||||
stoCalcolando = false;
|
|
||||||
this.caricaPannello();
|
|
||||||
abilitaPulsanti(pnlCategorie, true, true);
|
|
||||||
//statoTesseraLetta(gratuitaResidue, bonusResidui);
|
//statoTesseraLetta(gratuitaResidue, bonusResidui);
|
||||||
|
|
||||||
//28-09-2016 quando c'è una sola categoria faccio click
|
//28-09-2016 quando c'è una sola categoria faccio click
|
||||||
@ -4198,6 +4194,13 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
if (abilitatoPassaggi != 0L) {
|
if (abilitatoPassaggi != 0L) {
|
||||||
controllaPrenotazioni();
|
controllaPrenotazioni();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stoCalcolando = true;
|
||||||
|
pulsantiModoPagamento();
|
||||||
|
stoCalcolando = false;
|
||||||
|
this.caricaPannello();
|
||||||
|
abilitaPulsanti(pnlCategorie, true, true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
JOptionPane.showMessageDialog(this, "Tessera Scaduta o Disabilitata!");
|
JOptionPane.showMessageDialog(this, "Tessera Scaduta o Disabilitata!");
|
||||||
logTessera();
|
logTessera();
|
||||||
|
Loading…
Reference in New Issue
Block a user