OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 180 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 126... Line 126...
126
        final JTextField totalWeight = (JTextField) getEditor("T_POIDS");
126
        final JTextField totalWeight = (JTextField) getEditor("T_POIDS");
127
        final DeviseField totalTTC = (DeviseField) getEditor("T_TTC");
127
        final DeviseField totalTTC = (DeviseField) getEditor("T_TTC");
128
        final DeviseField totalTVA = (DeviseField) getEditor("T_TVA");
128
        final DeviseField totalTVA = (DeviseField) getEditor("T_TVA");
129
        final DeviseField totalEco = (DeviseField) getEditor("T_ECO_CONTRIBUTION");
129
        final DeviseField totalEco = (DeviseField) getEditor("T_ECO_CONTRIBUTION");
130
        final DeviseField totalRemise = (DeviseField) getEditor("REMISE_HT");
130
        final DeviseField totalRemise = (DeviseField) getEditor("REMISE_HT");
-
 
131
        final SQLRequestComboBox taxePort = (SQLRequestComboBox) getEditor("ID_TAXE_PORT");
131
        totalRemise.setEditable(false);
132
        totalRemise.setEditable(false);
132
        totalRemise.setEnabled(false);
133
        totalRemise.setEnabled(false);
133
        final DeviseField totalPORT = (DeviseField) getEditor("PORT_HT");
134
        final DeviseField totalPORT = (DeviseField) getEditor("PORT_HT");
134
        this.addView(totalPORT, "PORT_HT");
135
        this.addView(totalPORT, "PORT_HT");
-
 
136
        this.addView(taxePort, "ID_TAXE_PORT");
135
        this.addView(totalTVA, "T_TVA");
137
        this.addView(totalTVA, "T_TVA");
136
        this.addView(totalTTC, "T_TTC");
138
        this.addView(totalTTC, "T_TTC");
137
        this.addView(totalEco, "T_ECO_CONTRIBUTION");
139
        this.addView(totalEco, "T_ECO_CONTRIBUTION");
138
        this.addView(totalWeight, "T_POIDS");
140
        this.addView(totalWeight, "T_POIDS");
139
        this.addView(totalDevise, "T_DEVISE");
141
        this.addView(totalDevise, "T_DEVISE");
Line 394... Line 396...
394
            new GenerationMvtSaisieVenteFacture(idSaisieVF);
396
            new GenerationMvtSaisieVenteFacture(idSaisieVF);
395
 
397
 
396
            try {
398
            try {
397
                VenteFactureXmlSheet sheet = new VenteFactureXmlSheet(rowFacture);
399
                VenteFactureXmlSheet sheet = new VenteFactureXmlSheet(rowFacture);
398
                sheet.createDocument();
400
                sheet.createDocument();
399
                sheet.showPrintAndExport(this.panelOO.isVisualisationSelected(), this.panelOO.isImpressionSelected(), true);
401
                sheet.showPrintAndExportAsynchronous(this.panelOO.isVisualisationSelected(), this.panelOO.isImpressionSelected(), true, getElement(), rowFacture);
400
            } catch (Exception e) {
402
            } catch (Exception e) {
401
                ExceptionHandler.handle("Une erreur est survenue lors de la création du document.", e);
403
                ExceptionHandler.handle("Une erreur est survenue lors de la création du document.", e);
402
            }
404
            }
403
            if (attempt > 0) {
405
            if (attempt > 0) {
404
                SwingUtilities.invokeLater(new Runnable() {
406
                SwingUtilities.invokeLater(new Runnable() {
Line 426... Line 428...
426
        eltEcr.archiveMouvementProfondeur(idMvt, false);
428
        eltEcr.archiveMouvementProfondeur(idMvt, false);
427
        new GenerationMvtSaisieVenteFacture(id);
429
        new GenerationMvtSaisieVenteFacture(id);
428
        try {
430
        try {
429
            VenteFactureXmlSheet sheet = new VenteFactureXmlSheet(rowFacture);
431
            VenteFactureXmlSheet sheet = new VenteFactureXmlSheet(rowFacture);
430
            sheet.createDocument();
432
            sheet.createDocument();
431
            sheet.showPrintAndExport(this.panelOO.isVisualisationSelected(), this.panelOO.isImpressionSelected(), true);
433
            sheet.showPrintAndExportAsynchronous(this.panelOO.isVisualisationSelected(), this.panelOO.isImpressionSelected(), true, getElement(), rowFacture);
432
        } catch (Exception e) {
434
        } catch (Exception e) {
433
            ExceptionHandler.handle("Une erreur est survenue lors de la création du document.", e);
435
            ExceptionHandler.handle("Une erreur est survenue lors de la création du document.", e);
434
        }
436
        }
435
    }
437
    }
436
 
438