Patch level : 10.0
Files correlati : ef0 Ricompilazione Demo : [ ] Commento : Ritocchi per maggiore efficienza git-svn-id: svn://10.65.10.50/trunk@19738 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5ef07c27ae
commit
036bd58ee3
@ -68,7 +68,7 @@ int analizza_IVA(const real& imptot, const real& ivatot, const real perc_ind,
|
||||
flag = 1;
|
||||
imp_det = imptot;
|
||||
iva_det = ivatot;
|
||||
if (iva_det.is_zero() && corrispettivo)
|
||||
if (corrispettivo && iva_det.is_zero())
|
||||
{
|
||||
const TCodiceIVA iva(codiva);
|
||||
iva_det = iva.scorpora(imp_det);
|
||||
@ -95,7 +95,7 @@ int analizza_IVA(const real& imptot, const real& ivatot, const real perc_ind,
|
||||
iva_ind = iva.imposta(imp_ind, decimali);
|
||||
iva_det = ivatot - iva_ind;
|
||||
}
|
||||
if (!iva_ind.is_zero() && iva_ind_al_costo)
|
||||
if (iva_ind_al_costo && !iva_ind.is_zero())
|
||||
{
|
||||
imp_ind += iva_ind;
|
||||
iva_ind = ZERO;
|
||||
@ -136,7 +136,7 @@ TInteressi_IVA_table::~TInteressi_IVA_table()
|
||||
int TInteressi_IVA_table::read(int anno, int mese)
|
||||
{
|
||||
TString8 k; k.format("%04d%02d",anno,mese);
|
||||
zero();put("CODTAB",k);
|
||||
zero(); put("CODTAB",k);
|
||||
if (TTable::read(_isgteq) == NOERR)
|
||||
{
|
||||
const TString& cod = TTable::get("CODTAB");
|
||||
|
Loading…
x
Reference in New Issue
Block a user