Patch level :10.0 966
Files correlati : Ricompilazione Demo : [ ] Commento : aggiunta la trattazione degli occasionali git-svn-id: svn://10.65.10.50/branches/R_10_00@21858 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3c2672239a
commit
a812862374
@ -41,6 +41,8 @@ TPrint_x_imponibile_recordset::TPrint_x_imponibile_recordset()
|
||||
create_field("Tipo", -1, 1, _alfafld, true);
|
||||
create_field("Codcf", -1, 6, _longfld, true);
|
||||
create_field("Ragsoc", -1, 50, _alfafld, true);
|
||||
create_field("Piva", -1, 13, _alfafld, false);
|
||||
create_field("Cofi", -1, 16, _alfafld, false);
|
||||
create_field("Totdoc", -1, 18, _realfld, true);
|
||||
//campi da LF_RMOVIVA
|
||||
create_field("Imponibile", -1, 18, _realfld, true);
|
||||
@ -199,19 +201,28 @@ bool TPrint_x_imponibile_mask::aggiungi_movimento(const TRectype& rec, TPrint_x_
|
||||
output_recordset.set("Tipo", rec.get(MOV_TIPO));
|
||||
output_recordset.set("Codcf", codcf);
|
||||
TString80 ragsoc;
|
||||
TString16 piva, cofi;
|
||||
const TString16 ocfpi = rec.get(MOV_OCFPI); //è uno stupido cliente occasionale?
|
||||
if (ocfpi.full())
|
||||
{
|
||||
ragsoc = cache().get(LF_OCCAS, ocfpi, OCC_RAGSOC);
|
||||
const TRectype& rec_occas = cache().get(LF_OCCAS, ocfpi);
|
||||
ragsoc = rec_occas.get(OCC_RAGSOC);
|
||||
piva = rec_occas.get(OCC_PAIV);
|
||||
cofi = rec_occas.get(OCC_COFI);
|
||||
}
|
||||
else
|
||||
{
|
||||
TToken_string key_clifo;
|
||||
key_clifo.add(rec.get(MOV_TIPO));
|
||||
key_clifo.add(codcf);
|
||||
ragsoc = cache().get(LF_CLIFO, key_clifo, CLI_RAGSOC);
|
||||
const TRectype& rec_clifo = cache().get(LF_CLIFO, key_clifo);
|
||||
ragsoc = rec_clifo.get(CLI_RAGSOC);
|
||||
piva = rec_clifo.get(CLI_PAIV);
|
||||
cofi = rec_clifo.get(CLI_COFI);
|
||||
}
|
||||
output_recordset.set("Ragsoc", ragsoc);
|
||||
output_recordset.set("Piva", piva);
|
||||
output_recordset.set("Cofi", cofi);
|
||||
output_recordset.set("Totdoc", rec.get_real(MOV_TOTDOC));
|
||||
output_recordset.set("Imponibile", tot_imponibile);
|
||||
output_recordset.set("Imposta", tot_imposta);
|
||||
|
@ -117,10 +117,10 @@ THEN</prescript>
|
||||
<source>Ragsoc</source>
|
||||
</field>
|
||||
<field x="60" y="0.75" type="Stringa" width="11" pattern="1">
|
||||
<prescript description="H2.0 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=#H1.101!CODCF=#151,PAIV</prescript>
|
||||
<source>Piva</source>
|
||||
</field>
|
||||
<field x="73" y="0.75" type="Stringa" width="16" pattern="1">
|
||||
<prescript description="H2.0 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF=#H1.101!CODCF=#151,COFI</prescript>
|
||||
<source>Cofi</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Body" pattern="1" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user