Compare commits
No commits in common. "26875041f5deee1a02337aa63ae757490fc1a09d" and "7e093539a88266dbb62d8c37c265402960e0f8e2" have entirely different histories.
26875041f5
...
7e093539a8
@ -3685,22 +3685,17 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
||||
Double costoPasto = Double.valueOf(txtTotaleCassa.getText().replace("€", "").trim().replace(",", "."));
|
||||
if (saldo > costoPasto) {
|
||||
Object[] options = {"A Scalare", "Contanti"};
|
||||
int selectedValue = JOptionPane.showOptionDialog(this,
|
||||
Object selectedValue = JOptionPane.showOptionDialog(this,
|
||||
"Attenzione, c'è saldo sufficiente sulla tessera,\nscegli la modalità di pagamento da utilizzare", "Modalità Pagamento",
|
||||
JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, null);
|
||||
|
||||
switch (selectedValue) {
|
||||
case 0 -> {
|
||||
if (Integer.parseInt(selectedValue.toString()) == 0) {
|
||||
jTBP0.setSelected(true);
|
||||
jTBP0ActionPerformed(null);
|
||||
}
|
||||
case 1 -> {
|
||||
|
||||
} else {
|
||||
jTBP1.setSelected(true);
|
||||
jTBP1ActionPerformed(null);
|
||||
}
|
||||
default -> {
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user