Compare commits
No commits in common. "45209fa973b358068caa02d0b1335cfb1d62967a" and "3ff1146b96391adce4809552deb44eb856fd88d2" have entirely different histories.
45209fa973
...
3ff1146b96
@ -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,6 +3907,8 @@ 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) {
|
||||||
@ -3922,7 +3924,6 @@ 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);
|
||||||
@ -3973,23 +3974,23 @@ public class PuntoCassa extends JFrame implements ActionListener {
|
|||||||
gratuitaResidue = 0;
|
gratuitaResidue = 0;
|
||||||
|
|
||||||
//9-5-18<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
//9-5-18<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
||||||
if (flagPrecaricaLista && !isCassaAperta) {
|
if (flagPrecaricaLista) {
|
||||||
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) {
|
||||||
@ -4024,12 +4025,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);
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4061,6 +4062,7 @@ 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]);
|
||||||
@ -4122,7 +4124,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
|
||||||
Date scadenza = formatter.parse(dati[9]);
|
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);
|
||||||
@ -4175,7 +4177,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
|
||||||
|
|
||||||
@ -4216,7 +4218,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