Patch level : 12.0 344
Files correlati : ve0 Commento : - Aggiunto controllo nota credito git-svn-id: svn://10.65.10.50/branches/R_10_00@23631 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a7f0824e35
commit
1c6dde9b5e
@ -1272,7 +1272,7 @@ int TMotore_application::checkPlafondAvaibility(TDocumento d)
|
||||
TLi_manager plafond(d.tipocf(), d.codcf(), TDate(TODAY).year());
|
||||
TAssoc_array tabIva = d.tabella_iva(true);
|
||||
TRiepilogo_iva * totali = static_cast<TRiepilogo_iva *>(tabIva.get());
|
||||
real diff = plafond.getPlaRes() - totali->imp_orig();
|
||||
real diff = plafond.getPlaRes() - (cache().get("%TIP", d.tipo().codice()).get_bool("B7") ? -totali->imp_orig() : totali->imp_orig());
|
||||
if(diff >= 0)
|
||||
return NOERR;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user