OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Compare Revisions

Regard whitespace Rev 168 → Rev 169

/trunk/Modules/Module Subscription/src/org/openconcerto/modules/subscription/panel/FacturesAboPanel.java
94,7 → 94,7
 
private boolean checkUniciteNumero(String num, int idFact) {
SQLTable tableFacture = Configuration.getInstance().getRoot().findTable("SAISIE_VENTE_FACTURE");
final SQLSelect selNum = new SQLSelect(tableFacture.getDBSystemRoot(), true);
final SQLSelect selNum = new SQLSelect();
selNum.addSelect(tableFacture.getKey(), "COUNT");
final Where w = new Where(tableFacture.getField("NUMERO"), "=", num);
selNum.setWhere(w);
108,12 → 108,12
 
@Override
protected void injectRow(SQLRow row, SQLRowValues rowVals, Date dateNew, SQLRow rowAbonnement) {
// TODO Raccord de méthode auto-généré
super.injectRow(row, rowVals, dateNew, rowAbonnement);
rowVals.put("NUMERO", "ABO--" + NumerotationAutoSQLElement.getNextNumero(SaisieVenteFactureSQLElement.class));
rowVals.put("ID_ADRESSE", row.getObject("ID_ADRESSE"));
rowVals.put("ID_COMPTE_PCE_SERVICE", row.getObject("ID_COMPTE_PCE_SERVICE"));
rowVals.put("PORT_HT", row.getObject("PORT_HT"));
rowVals.put("NET_A_PAYER", row.getObject("T_TTC"));
rowVals.put("REMISE_HT", row.getObject("REMISE_HT"));
 
rowVals.put("NOM", row.getObject("NOM"));