<report name="vd1600a" lpi="6"> <description>Riepilogo dettaglio scontrini giorn.F;period.</description> <font face="Courier New" size="8" /> <section type="Head"> <font face="Courier New" bold="1" size="8" /> <field x="1" y="0.5" type="Testo" width="6" pattern="1" text="Sc. N&#B0;" /> <field x="8" y="0.5" type="Testo" width="8" pattern="1" text="del" /> <field x="18" y="0.5" type="Testo" width="20" pattern="1" text="Cod. Articolo" /> <field x="38" y="0.5" type="Testo" width="25" pattern="1" text="Descrizione" /> <field x="64" y="0.5" type="Testo" align="right" width="5" pattern="1" text="Qta" /> <field x="69" y="0.5" type="Testo" align="right" width="10" pattern="1" text="Prezzo" /> <field x="81" y="0.5" type="Testo" width="10" pattern="1" text="%Sconto" /> <field border="1" x="1" y="1.75" 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="20" pattern="1" text="Cassa"> <font face="Courier New" bold="1" size="8" /> <source>#CODCASSA</source> </field> <field x="23" 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="45" 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.25" type="Testo" valign="center" align="center" width="110" height="2" pattern="1" text="Riepilogo dettaglio scontrini"> <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="Head" level="2" hidden="1"> <groupby>NDOC</groupby> <prescript description="H2 PRESCRIPT">MESSAGE RESET,B1.100</prescript> <field type="Numero" align="right" width="7" id="101" pattern="1"> <source>NDOC</source> </field> </section> <section type="Body" /> <section type="Body" level="1"> <field x="18" type="Stringa" width="20" pattern="1"> <source>CODART</source> </field> <field x="38" type="Stringa" dynamic_height="1" width="25" height="2" pattern="1"> <source>DESCR</source> </field> <field x="64" type="Numero" align="right" width="5" pattern="1" text="##,@@"> <source>QTA</source> <prescript description="B1.0 PRESCRIPT">MESSAGE ADD,F2.102 </prescript> </field> <field x="69" type="Valuta" align="right" width="10" pattern="1" text="#########,@@"> <source>PREZZO</source> </field> <field x="81" type="Stringa" width="10" pattern="1"> <source>SCONTO</source> </field> <field type="Numero" hidden="1" align="right" width="1" id="100" pattern="1"> <prescript description="B1.100 PRESCRIPT">#THIS @ 0 E; IF #101 DISABLE #102 DISABLE ELSE #101 ENABLE #102 ENABLE THEN #THIS @ 1 + #THIS !</prescript> </field> <field x="1" type="Numero" align="right" width="5" id="101" pattern="1"> <source>NDOC</source> </field> <field x="7" type="Data" width="10" id="102" pattern="1"> <source>33.DATADOC</source> </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.5" type="Linea" width="115" height="0" pattern="1" /> <field x="1" y="1" type="Testo" width="40" pattern="1" text="RIEPILOGO PAGAMENTI" /> <field x="1" y="2" type="Testo" width="15" pattern="1" text="CONTANTI" /> <field x="20" y="2" type="Valuta" align="right" width="13" pattern="1" hide_zero="1" text="###.###.###,@@" /> </section> <section type="Foot" level="2" /> <sql>USE RDOC SELECT (NUM(ANSI(33.DATADOC))E;=NUM(ANSI(#DADATA)))(NUM(ANSI(33.DATADOC))C;=NUM(ANSI(#ADATA))) JOIN DOC INTO PROVV=PROVV ANNO=ANNO CODNUM=CODNUM NDOC=NDOC FROM CODNUM=#CODNUM ANNO=#ANNO PROVV='D' TO CODNUM=#CODNUM ANNO=#ANNO PROVV='D' </sql> </report>