Dépôt officiel du code source de l'ERP OpenConcerto
/trunk/OpenConcerto/src/org/openconcerto/erp/core/common/ui/TotalCalculator.java |
---|
39,6 → 39,8 |
private SQLRowAccessor rowDefaultCptProduit, rowDefaultCptService, rowDefaultCptTVACollecte, rowDefaultCptTVADeductible, rowDefaultCptAchat; |
private SQLRowAccessor rowDefaultCptProduitStandard; |
private double totalPoids; |
private BigDecimal totalDevise, totalDeviseSel; |
89,6 → 91,7 |
} |
} |
if (defaultCompte == null || defaultCompte.isUndefined()) { |
this.rowDefaultCptProduit = rowPrefsCompte.getForeign("ID_COMPTE_PCE_VENTE_PRODUIT"); |
if (this.rowDefaultCptProduit == null || this.rowDefaultCptProduit.isUndefined()) { |
try { |
97,6 → 100,10 |
e.printStackTrace(); |
} |
} |
} else { |
this.rowDefaultCptProduit = defaultCompte; |
} |
this.rowDefaultCptProduitStandard = this.rowDefaultCptProduit; |
this.rowDefaultCptTVACollecte = rowPrefsCompte.getForeign("ID_COMPTE_PCE_TVA_VENTE"); |
if (this.rowDefaultCptTVACollecte == null || this.rowDefaultCptTVACollecte.isUndefined()) { |
131,6 → 138,14 |
} |
public void setRowDefaultCptProduit(SQLRowAccessor rowDefaultCptProduit) { |
this.rowDefaultCptProduit = rowDefaultCptProduit; |
} |
public void retoreRowDefaultCptProduit() { |
this.rowDefaultCptProduit = rowDefaultCptProduitStandard; |
} |
/** |
* Définition d'une remise HT à appliquer |
* |