Patch level : 10.0 1054

Files correlati     : cg7.exe cg7200a.rep cg2.exe
Ricompilazione Demo : [ ]
Commento            :
0001887: lista movimenti per imponibile
Manca la colonna non soggetto

0001888: prima nota
Dopo l'installazione delle patch di ieri, sulla prima videata della prima nota è apparso un campo 'contabilità separata' non ho istruzioni su questa nuova funzionalità ma aprendo la tabella mi va in errore


git-svn-id: svn://10.65.10.50/branches/R_10_00@22390 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2011-07-11 10:26:12 +00:00
parent 3624682c0e
commit 4400800715
2 changed files with 68 additions and 64 deletions

View File

@ -48,12 +48,12 @@ TPrint_x_imponibile_recordset::TPrint_x_imponibile_recordset()
//campi da LF_RMOVIVA
create_field("Imponibile", -1, 18, _realfld, true);
create_field("Imposta", -1, 18, _realfld, false);
create_field("Imponibile_no", -1, 18, _realfld, false); //normale
create_field("Imponibile_ni", -1, 18, _realfld, false); //non imponibile
create_field("Imponibile_es", -1, 18, _realfld, false); //esente
create_field("Imponibile_ne", -1, 18, _realfld, false); //non esposta
create_field("Imponibile_ma", -1, 18, _realfld, false); //margine
create_field("Imponibile_no", -1, 18, _realfld, false); // normale
create_field("Imponibile_ni", -1, 18, _realfld, false); // non imponibile
create_field("Imponibile_es", -1, 18, _realfld, false); // esente
create_field("Imponibile_ne", -1, 18, _realfld, false); // non esposta
create_field("Imponibile_ns", -1, 18, _realfld, false); // non soggetto
create_field("Imponibile_ma", -1, 18, _realfld, false); // margine
}
///////////////////////////////////////////////////////////
// Report
@ -111,7 +111,7 @@ bool TPrint_x_imponibile_mask::aggiungi_movimento(const TRectype& rec, TPrint_x_
TRecord_array righe_iva(keytok, LF_RMOVIVA);
real tot_imponibile, tot_imposta;
real tot_impon_no, tot_impon_ni, tot_impon_es, tot_impon_ne, tot_impon_ma;
real tot_impon_no, tot_impon_ni, tot_impon_es, tot_impon_ne, tot_impon_ns, tot_impon_ma;
TString4 tipoiva; //dichiarata qui perchè serve nella scrittura dell' output_recordset
@ -125,6 +125,7 @@ bool TPrint_x_imponibile_mask::aggiungi_movimento(const TRectype& rec, TPrint_x_
TCodiceIVA ci(rmi.get(RMI_CODIVA));
switch(ci.allegato(tipocf))
{
case 0: tot_impon_ns += imponibile; break;
case 2: tot_impon_ni += imponibile; break;
case 3: tot_impon_es += imponibile; break;
case 4: tot_impon_ne += imponibile; break;
@ -184,6 +185,7 @@ bool TPrint_x_imponibile_mask::aggiungi_movimento(const TRectype& rec, TPrint_x_
output_recordset.set("Imponibile_ni", tot_impon_ni);
output_recordset.set("Imponibile_es", tot_impon_es);
output_recordset.set("Imponibile_ne", tot_impon_ne);
output_recordset.set("Imponibile_ns", tot_impon_ns);
output_recordset.set("Imponibile_ma", tot_impon_ma);
}
@ -285,9 +287,7 @@ bool TPrint_x_imponibile_mask::on_field_event(TOperable_field& o, TField_event e
}
TPrint_x_imponibile_mask::TPrint_x_imponibile_mask() : TAutomask("cg7200a")
{
}
{ }
///////////////////////////////////////////////////////////
// Applicazione
@ -305,11 +305,8 @@ public:
void TPrint_x_imponibile::main_loop()
{
TPrint_x_imponibile_mask mask;
while (mask.run() == K_ENTER)
{
mask.elabora();
}
}
int cg7200(int argc, char* argv[])

View File

@ -19,10 +19,10 @@
<field x="73" y="0.5" type="Testo" width="10" pattern="1" text="Cod. Fisc.">
<font italic="1" face="Arial" bold="1" size="8" />
</field>
<field x="90" y="0.5" type="Testo" width="15" pattern="1" text="Stato di residenza">
<font italic="1" face="Arial" bold="1" size="8" />
</field>
<field x="132" y="0.5" type="Testo" align="center" width="11" pattern="1" text="Imponibili" />
<field x="90" y="0.5" type="Testo" width="15" pattern="1" text="Stato di residenza">
<font italic="1" face="Arial" bold="1" size="8" />
</field>
<field x="130" y="0.5" type="Testo" align="center" width="11" pattern="1" text="Imponibili" />
<field x="2" y="1.5" type="Testo" align="right" width="7" pattern="1" text="N.Reg." />
<field x="10.5" y="1.5" type="Testo" align="center" width="10" pattern="1" text="Data Reg." />
<field x="21" y="1.5" type="Testo" width="4" pattern="1" text="Reg." />
@ -31,15 +31,16 @@
<field x="41" y="1.5" type="Testo" align="center" width="10" pattern="1" text="Data Doc." />
<field x="52" y="1.5" type="Testo" width="4" pattern="1" text="Caus." />
<field x="57" y="1.5" type="Testo" width="12" pattern="1" text="Descrizione" />
<field x="79" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Tot. Doc." />
<field x="91" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Imponibile" />
<field x="101" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Imposta" />
<field x="112" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Normale" />
<field border="2" x="111.5" y="1.5" type="Linea" pattern="1" />
<field x="122" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Non Impon." />
<field x="132" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Esente" />
<field x="142" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Non esp." />
<field x="152" y="1.5" type="Testo" align="right" width="10" pattern="1" text="A margine" />
<field x="78" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Tot. Doc." />
<field x="88" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Imponibile" />
<field x="98" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Imposta" />
<field x="108" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Normale" />
<field border="2" x="108.5" y="1.5" type="Linea" pattern="1" />
<field x="118" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Non Impon." />
<field x="128" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Esente" />
<field x="138" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Non esp." />
<field x="148" y="1.5" type="Testo" align="right" width="10" pattern="1" text="Non sogg." />
<field x="158" y="1.5" type="Testo" align="right" width="10" pattern="1" text="A margine" />
<field border="1" x="1" y="2.5" type="Linea" width="168" height="0" pattern="1" />
</section>
<section type="Head" level="1" pattern="1">
@ -118,69 +119,73 @@ THEN</prescript>
<field x="73" y="0.75" type="Stringa" width="16" pattern="1">
<source>Cofi</source>
</field>
<field x="90" y="0.75" type="Stringa" width="40" pattern="1">
<source>Stato</source>
</field>
<field x="90" y="0.75" type="Stringa" width="40" pattern="1">
<source>Stato</source>
</field>
</section>
<section type="Body" pattern="1" />
<section type="Body" level="1" pattern="1">
<field x="1" type="Numero" align="right" link="MOV.NUMREG" width="7" pattern="1">
<source>Numreg</source>
</field>
<field x="9.5" type="Data" width="10" pattern="1">
<field x="9" type="Data" width="10" pattern="1">
<source>Datareg</source>
</field>
<field x="20.5" type="Stringa" width="3.5" pattern="1">
<field x="20" type="Stringa" width="3.5" pattern="1">
<source>Reg</source>
</field>
<field x="24.5" type="Numero" align="right" width="6" pattern="1">
<field x="24" type="Numero" align="right" width="6" pattern="1">
<source>Protiva</source>
</field>
<field x="31.5" type="Stringa" align="right" width="7" pattern="1">
<field x="31" type="Stringa" align="right" width="7" pattern="1">
<source>Numdoc</source>
</field>
<field x="40" type="Data" width="10" pattern="1">
<field x="39" type="Data" width="10" pattern="1">
<source>Datadoc</source>
</field>
<field x="51.5" type="Stringa" width="3.5" pattern="1">
<field x="50" type="Stringa" width="3" pattern="1">
<source>Codcaus</source>
</field>
<field x="55.5" type="Stringa" width="21" pattern="1">
<field x="54" type="Stringa" width="23" pattern="1">
<font face="Arial Narrow" size="7" />
<source>Descr</source>
</field>
<field x="77" type="Valuta" align="right" width="12" pattern="1" text="#########,@@">
<field x="78" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Totdoc</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.201</prescript>
</field>
<field x="89" type="Valuta" align="right" width="12" pattern="1" text="#########,@@">
<field x="88" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.202</prescript>
</field>
<field x="101" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<field x="98" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imposta</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.203</prescript>
</field>
<field x="112" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<field x="108" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile_no</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.204</prescript>
</field>
<field x="122" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<field x="118" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile_ni</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.205</prescript>
</field>
<field x="132" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<field x="128" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile_es</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.206</prescript>
</field>
<field x="142" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<field x="138" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile_ne</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.207</prescript>
</field>
<field x="152" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile_ma</source>
<field x="148" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile_ns</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.208</prescript>
</field>
<field x="158" type="Valuta" align="right" width="10" pattern="1" text="#########,@@">
<source>Imponibile_ma</source>
<prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F1.209</prescript>
</field>
</section>
<section type="Foot" pattern="1">
<field border="1" x="1" y="0.25" type="Linea" width="168" height="0" pattern="1" />
@ -196,26 +201,28 @@ THEN</prescript>
<section type="Foot" level="1" pattern="1">
<font face="Arial" bold="1" size="8" />
<field border="2" x="1" y="1" type="Linea" width="168" height="0" pattern="1" />
<field border="2" x="111.5" y="1" type="Linea" height="2.5" pattern="1" />
<field border="2" x="108.5" y="1" type="Linea" height="2.5" pattern="1" />
<field x="65" y="1.5" type="Testo" width="10" pattern="1" text="TOTALI" />
<field x="132" y="1.5" type="Testo" align="center" bg_color="#000000" width="12" pattern="1" text="Imponibili" />
<field x="74.5" y="2.5" type="Testo" align="right" bg_color="#000000" width="14" pattern="1" text="Tot. Documento" />
<field x="88.5" y="2.5" type="Testo" align="right" bg_color="#000000" width="12" pattern="1" text="Imponibile" />
<field x="100.5" y="2.5" type="Testo" align="right" bg_color="#000000" width="10" pattern="1" text="Imposta" />
<field x="112" y="2.5" type="Testo" align="right" bg_color="#C0C0C0" width="10" pattern="1" text="Normale" />
<field x="122" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Non Imp." />
<field x="132" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Esente" />
<field x="142" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Non esp." />
<field x="152" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Margine" />
<field border="2" x="1" y="3.5" type="Linea" width="168" height="0" pattern="1" />
<field x="75" y="3.75" type="Valuta" align="right" width="14" id="201" pattern="1" text="#########,@@" />
<field x="89" y="3.75" type="Valuta" align="right" width="12" id="202" pattern="1" text="#########,@@" />
<field x="101" y="3.75" type="Valuta" align="right" width="10" id="203" pattern="1" text="#########,@@" />
<field x="112" y="3.75" type="Valuta" align="right" width="10" id="204" pattern="1" text="#########,@@" />
<field x="122" y="3.75" type="Valuta" align="right" width="10" id="205" pattern="1" text="#########,@@" />
<field x="132" y="3.75" type="Valuta" align="right" width="10" id="206" pattern="1" text="#########,@@" />
<field x="142" y="3.75" type="Valuta" align="right" width="10" id="207" pattern="1" text="#########,@@" />
<field x="152" y="3.75" type="Valuta" align="right" width="10" id="208" pattern="1" text="#########,@@" />
<field x="129" y="1.5" type="Testo" align="center" bg_color="#000000" width="12" pattern="1" text="Imponibili" />
<field x="74" y="2.5" type="Testo" align="right" bg_color="#000000" width="14" pattern="1" text="Tot. Doc." />
<field x="88" y="2.5" type="Testo" align="right" bg_color="#000000" width="10" pattern="1" text="Imponibile" />
<field x="98" y="2.5" type="Testo" align="right" bg_color="#000000" width="10" pattern="1" text="Imposta" />
<field x="108" y="2.5" type="Testo" align="right" bg_color="#C0C0C0" width="10" pattern="1" text="Normale" />
<field x="118" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Non Impon." />
<field x="128" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Esente" />
<field x="138" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Non esp." />
<field x="148" y="2.5" type="Testo" align="right" width="10" pattern="1" text="Non. sogg." />
<field x="158" y="2.5" type="Testo" align="right" width="10" pattern="1" text="A margine" />
<field border="2" y="3.5" type="Linea" width="168" height="0" pattern="1" />
<field x="78" y="3.75" type="Valuta" align="right" width="10" id="201" pattern="1" text="#########,@@" />
<field x="88" y="3.75" type="Valuta" align="right" width="10" id="202" pattern="1" text="#########,@@" />
<field x="98" y="3.75" type="Valuta" align="right" width="10" id="203" pattern="1" text="#########,@@" />
<field x="108" y="3.75" type="Valuta" align="right" width="10" id="204" pattern="1" text="#########,@@" />
<field x="118" y="3.75" type="Valuta" align="right" width="10" id="205" pattern="1" text="#########,@@" />
<field x="128" y="3.75" type="Valuta" align="right" width="10" id="206" pattern="1" text="#########,@@" />
<field x="138" y="3.75" type="Valuta" align="right" width="10" id="207" pattern="1" text="#########,@@" />
<field x="148" y="3.75" type="Valuta" align="right" width="10" id="208" pattern="1" text="#########,@@" />
<field x="158" y="3.75" type="Valuta" align="right" width="10" id="209" pattern="1" text="#########,@@" />
</section>
<section type="Foot" level="2" pattern="1" />
<sql>USE MOV KEY 3</sql>