Patch level : 10.0 882
Files correlati : tc0.exe Ricompilazione Demo : [ ] Commento : Separate le righe IVA anche per conto git-svn-id: svn://10.65.10.50/branches/R_10_00@21459 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a86fa705ec
commit
4c247239e3
@ -991,14 +991,14 @@ void TTS_sender::add_datiiva(const TRecordset& mov)
|
||||
TCodiceIVA c(rmoviva.get(RMI_CODIVA).as_string());
|
||||
bool agricolo = c.get_int("S4") == 1;
|
||||
TString16 codcomp;
|
||||
TString key;
|
||||
key.format("%03ld|%03ld|%06ld", rmoviva.get(RMI_GRUPPO).as_int(), rmoviva.get(RMI_CONTO).as_int(), rmoviva.get(RMI_SOTTOCONTO).as_int());
|
||||
|
||||
if (corrispettivo)
|
||||
if (imposta == ZERO)
|
||||
imposta = c.scorpora(imponibile);
|
||||
if (regime_agricolo(mov) && agricolo)
|
||||
{
|
||||
TString key;
|
||||
key.format("%03ld|%03ld|%06ld", rmoviva.get(RMI_GRUPPO).as_int(), rmoviva.get(RMI_CONTO).as_int(), rmoviva.get(RMI_SOTTOCONTO).as_int());
|
||||
const TRectype & pcon = cache().get(LF_PCON, key);
|
||||
codcomp = pcon.get(PCN_IVACOMP);
|
||||
}
|
||||
@ -1019,7 +1019,7 @@ void TTS_sender::add_datiiva(const TRecordset& mov)
|
||||
else
|
||||
if (rmoviva.get(RMI_TIPOCR).as_int() > 0)
|
||||
codiva11 = cod2ricl("TSI11", tipocr);
|
||||
key.format("%04ld%04ld", codiva, codiva11);
|
||||
key.format("%04ld%04ld%s", codiva, codiva11, (const char *) key);
|
||||
TIVA_item * item = (TIVA_item *) _iva.objptr(key);
|
||||
|
||||
if (item == NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user