OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 156 Rev 174
Line 390... Line 390...
390
                        idCompteClient = ComptePCESQLElement.getIdComptePceDefault("Clients");
390
                        idCompteClient = ComptePCESQLElement.getIdComptePceDefault("Clients");
391
                    }
391
                    }
392
                }
392
                }
393
            }
393
            }
394
 
394
 
-
 
395
            int idJournal = JournalSQLElement.BANQUES;
-
 
396
            if (rowPrefsCompte.getObject("ID_JOURNAL_VALEUR_ENCAISSEMENT") != null && !rowPrefsCompte.isForeignEmpty("ID_JOURNAL_VALEUR_ENCAISSEMENT")) {
-
 
397
                idJournal = rowPrefsCompte.getForeignID("ID_JOURNAL_VALEUR_ENCAISSEMENT");
-
 
398
            }
-
 
399
            
395
            this.putValue("ID_JOURNAL", JournalSQLElement.BANQUES);
400
            this.putValue("ID_JOURNAL", idJournal);
396
            this.putValue("ID_COMPTE_PCE", idCompteClient);
401
            this.putValue("ID_COMPTE_PCE", idCompteClient);
397
            this.putValue("DEBIT", Long.valueOf(0));
402
            this.putValue("DEBIT", Long.valueOf(0));
398
            this.putValue("CREDIT", Long.valueOf(ttc.getLongValue()));
403
            this.putValue("CREDIT", Long.valueOf(ttc.getLongValue()));
399
 
404
 
400
            this.ecrClient = ajoutEcriture();
405
            this.ecrClient = ajoutEcriture();