OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 149 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 151
Line 39... Line 39...
39
import org.openconcerto.ui.JDate;
39
import org.openconcerto.ui.JDate;
40
import org.openconcerto.ui.JLabelBold;
40
import org.openconcerto.ui.JLabelBold;
41
import org.openconcerto.ui.warning.JLabelWarning;
41
import org.openconcerto.ui.warning.JLabelWarning;
42
import org.openconcerto.utils.ExceptionHandler;
42
import org.openconcerto.utils.ExceptionHandler;
43
import org.openconcerto.utils.GestionDevise;
43
import org.openconcerto.utils.GestionDevise;
-
 
44
import org.openconcerto.utils.StringUtils;
44
import org.openconcerto.utils.text.SimpleDocumentListener;
45
import org.openconcerto.utils.text.SimpleDocumentListener;
45
 
46
 
46
import java.awt.GridBagConstraints;
47
import java.awt.GridBagConstraints;
47
import java.awt.GridBagLayout;
48
import java.awt.GridBagLayout;
48
import java.awt.Insets;
49
import java.awt.Insets;
Line 306... Line 307...
306
            System.out.println("Génération des ecritures du reglement");
307
            System.out.println("Génération des ecritures du reglement");
307
            SQLRow row = getTable().getRow(id);
308
            SQLRow row = getTable().getRow(id);
308
            String s = row.getString("NOM");
309
            String s = row.getString("NOM");
309
            SQLRow rowModeRegl = row.getForeignRow("ID_MODE_REGLEMENT");
310
            SQLRow rowModeRegl = row.getForeignRow("ID_MODE_REGLEMENT");
310
            SQLRow rowTypeRegl = rowModeRegl.getForeignRow("ID_TYPE_REGLEMENT");
311
            SQLRow rowTypeRegl = rowModeRegl.getForeignRow("ID_TYPE_REGLEMENT");
311
            String label = "Règlement vente " + ((s == null) ? "" : s) + " (" + rowTypeRegl.getString("NOM") + ")";
-
 
312
 
312
 
313
            // Compte Client
313
            // Compte Client
314
            SQLRow clientRow = row.getForeignRow("ID_CLIENT");
314
            SQLRow clientRow = row.getForeignRow("ID_CLIENT");
315
 
315
 
-
 
316
            String label = "Règlement vente " + ((s == null) ? "" : s) + " (" + rowTypeRegl.getString("NOM") + ") " + StringUtils.limitLength(clientRow.getString("NOM"), 20);
316
            long montant = row.getLong("MONTANT");
317
            long montant = row.getLong("MONTANT");
317
            PrixTTC ttc = new PrixTTC(montant);
318
            PrixTTC ttc = new PrixTTC(montant);
318
 
319
 
319
            List<SQLRow> l = row.getReferentRows(Configuration.getInstance().getDirectory().getElement("ENCAISSER_MONTANT_ELEMENT").getTable());
320
            List<SQLRow> l = row.getReferentRows(Configuration.getInstance().getDirectory().getElement("ENCAISSER_MONTANT_ELEMENT").getTable());
320
            if (l.isEmpty()) {
321
            if (l.isEmpty()) {