<report name="vd1300a" lpi="6"> <description>Riepilogo venduto per commessi</description> <font face="Courier New" size="8" /> <section type="Head"> <font face="Courier New" bold="1" size="8" /> <field x="1" type="Testo" width="6" pattern="1" text="Sc. N&#B0;" /> <field x="8" type="Testo" width="8" pattern="1" text="del" /> <field x="19" type="Testo" align="right" width="12" pattern="1" text="Importo" /> <field x="32" type="Testo" align="right" width="12" pattern="1" text="Base calc." /> <field x="46" type="Testo" align="right" width="10" pattern="1" text="% Provv." /> <field x="59" type="Testo" align="right" width="12" pattern="1" text="Provvigione" /> <field border="1" x="1" y="1" type="Linea" width="115" height="0" /> </section> <section type="Head" level="1"> <field type="Stringa" width="50"> <font italic="1" face="Courier New" bold="1" size="8" /> <source>#SYSTEM.RAGSOC</source> </field> <field x="1" y="1.5" type="Stringa" width="15" pattern="1" text="Operatore"> <font face="Courier New" bold="1" size="8" /> <source>#USERNAME</source> </field> <field x="16" y="1.5" type="Stringa" width="50" pattern="1"> <font face="Courier New" bold="1" size="8" /> <prescript description="H1.0 PRESCRIPT">MESSAGE TABLEREAD,OPD,#USERNAME,S0</prescript> </field> <field x="68" y="1.5" type="Data" width="20" pattern="1" text="Dalla data"> <font face="Courier New" bold="1" size="8" /> <groups>2</groups> <source>#DADATA</source> </field> <field x="92" y="1.5" type="Data" width="20" pattern="1" text="Alla data"> <font face="Courier New" bold="1" size="8" /> <groups>2</groups> <source>#ADATA</source> </field> <field x="1" y="2.75" type="Testo" valign="center" align="center" width="110" height="1.5" pattern="1" text="Riepilogo venduto per commesso"> <font face="Courier New" bold="1" size="14" /> </field> <field border="2" x="1" y="4.5" type="Linea" width="115" height="0" /> </section> <section type="Body" /> <section type="Body" level="1"> <field x="1" type="Numero" align="right" width="5" id="101" pattern="1"> <source>NDOC</source> </field> <field x="8" type="Data" width="10" id="102" pattern="1"> <source>DATADOC</source> </field> <field x="19" type="Valuta" align="right" width="12" id="103" pattern="1" text="###.###.###,@@"> <source>TOTDOC</source> <postscript description="B1.103 POSTSCRIPT">MESSAGE ADD,F1.103</postscript> </field> <field x="32" type="Valuta" align="right" width="12" id="104" pattern="1" text="###.###.###,@@"> <source>BASESCONTO</source> <postscript description="B1.104 POSTSCRIPT">MESSAGE ADD,F1.104</postscript> </field> <field x="50" type="Numero" align="right" width="6" id="105" pattern="1"> <source>101@.R3</source> </field> <field x="59" type="Valuta" align="right" width="12" id="106" pattern="1" text="###.###.###,@@"> <source>#104*#105F;100</source> <postscript description="B1.106 POSTSCRIPT">MESSAGE ADD,F1.106</postscript> </field> </section> <section type="Foot" height="3"> <field border="1" x="1" y="0.5" type="Linea" width="125" height="0" /> <field x="2" y="1" type="Testo" width="12" pattern="1" text="CONTANTI" /> <field x="14" y="1" type="Valuta" align="right" width="18" pattern="1" text="#########,@@" /> <field x="42.4" y="1" type="Testo" width="12" pattern="1" text="ABBUONO" /> <field x="54" y="1" type="Valuta" align="right" width="18" pattern="1" text="#########,@@" /> <field x="108" y="1" type="Data" width="10"> <source>#SYSTEM.DATE</source> </field> <field x="121" y="1" type="Numero" align="right" width="3"> <source>#PAGE</source> </field> <field border="1" x="1" y="2.5" type="Linea" width="125" height="0" /> </section> <section type="Foot" level="1"> <font face="Courier New" bold="1" size="8" /> <field border="1" x="1" y="0.25" type="Linea" width="115" height="0" pattern="1" /> <field x="1" y="0.5" type="Testo" width="10" pattern="1" text="TOTALI" /> <field x="19" y="0.5" type="Valuta" align="right" width="12" id="103" pattern="1" text="###.###.###,@@" /> <field x="32" y="0.5" type="Valuta" align="right" width="12" id="104" pattern="1" text="###.###.###,@@" /> <field x="59" y="0.5" type="Valuta" align="right" width="12" id="106" pattern="1" text="###.###.###,@@" /> </section> <sql>USE DOC SELECT (NUM(ANSI(DATADOC))E;=NUM(ANSI(#DADATA)))(NUM(ANSI(DATADOC))C;=NUM(ANSI(#ADATA)))(101@.R3!='') JOIN OPD ALIAS 101 INTO CODTAB=#USERNAME FROM PROVV='D' ANNO=#ANNO CODNUM=#CODNUM TO PROVV='D' ANNO=#ANNO CODNUM=#CODNUM </sql> </report>