OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 177
Line 62... Line 62...
62
        this.nom = avoirRow.getObject("NOM").toString();
62
        this.nom = avoirRow.getObject("NOM").toString();
63
        this.putValue("DATE", new java.sql.Date(this.date.getTime()));
63
        this.putValue("DATE", new java.sql.Date(this.date.getTime()));
64
        this.putValue("NOM", "Avoir fournisseur : " + avoirRow.getString("NUMERO") + " " + rowFourn.getString("NOM"));
64
        this.putValue("NOM", "Avoir fournisseur : " + avoirRow.getString("NUMERO") + " " + rowFourn.getString("NOM"));
65
        this.putValue("ID_JOURNAL", GenerationMvtAvoirFournisseur.journal);
65
        this.putValue("ID_JOURNAL", GenerationMvtAvoirFournisseur.journal);
66
        this.putValue("ID_MOUVEMENT", Integer.valueOf(1));
66
        this.putValue("ID_MOUVEMENT", Integer.valueOf(1));
-
 
67
        if (rowFourn.getTable().getTable("ECRITURE").contains("CODE_CLIENT")) {
-
 
68
            this.putValue("CODE_CLIENT", rowFourn.getString("CODE"));
67
 
69
        }
68
        // on cree un nouveau mouvement
70
        // on cree un nouveau mouvement
69
        if (this.idMvt == 1) {
71
        if (this.idMvt == 1) {
70
            getNewMouvement(GenerationMvtAvoirFournisseur.source, this.idAvoirFourn, 1, "Avoir Fournisseur : " + avoirRow.getString("NUMERO"));
72
            getNewMouvement(GenerationMvtAvoirFournisseur.source, this.idAvoirFourn, 1, "Avoir Fournisseur : " + avoirRow.getString("NUMERO"));
71
        } else {
73
        } else {
72
            this.putValue("ID_MOUVEMENT", Integer.valueOf(this.idMvt));
74
            this.putValue("ID_MOUVEMENT", Integer.valueOf(this.idMvt));
Line 85... Line 87...
85
                } catch (Exception e) {
87
                } catch (Exception e) {
86
                    e.printStackTrace();
88
                    e.printStackTrace();
87
                }
89
                }
88
            }
90
            }
89
        }
91
        }
-
 
92
 
90
        this.putValue("ID_COMPTE_PCE", Integer.valueOf(idCompteAchat));
93
        this.putValue("ID_COMPTE_PCE", Integer.valueOf(idCompteAchat));
91
        this.putValue("DEBIT", Long.valueOf(0));
94
        this.putValue("DEBIT", Long.valueOf(0));
92
        this.putValue("CREDIT", Long.valueOf(prixHT.getLongValue()));
95
        this.putValue("CREDIT", Long.valueOf(prixHT.getLongValue()));
93
        SQLRow rowEcr = ajoutEcriture();
96
        SQLRow rowEcr = ajoutEcriture();
94
        // addAssocAnalytiqueFromProvider(rowEcr, avoirRow);
97
        // addAssocAnalytiqueFromProvider(rowEcr, avoirRow);