Patch level : 10.0 patcg 591
Files correlati : lv1 lv2 lv1200c.rep Ricompilazione Demo : [ ] Commento : Aggiunto il report raggruppato per cliente Corretto l'utilizzo dei campi virtuali nelle query Corretto l'estrazione dell'unità di misura nella fatturazione a Kg git-svn-id: svn://10.65.10.50/trunk@19991 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f5fe526fce
commit
5be093d48a
@ -176,10 +176,10 @@ void TStampa_a_kg_app::prepara_recordset(TStampa_a_kg_rep & rep) const
|
||||
query << "&&(TIPORIGA==\"21\")&&(33.TIPOCF=\"C\")";
|
||||
switch(raggruppa)
|
||||
{
|
||||
case 1: query << "&&(BETWEEN(33.CODCF,#DACODCF,#ACODCF))\nBY 33.CODCF CODART\n"; break;
|
||||
case 2: query << "&&(BETWEEN(33.G1:CODITI,#DAITI,#AITI)\nBY 33.G1:CODITI CODART\n"; break;
|
||||
case 3: query << "&&(BETWEEN(33.CODAG,#DAAUT,#AAUT)\nBY 33.CODAG CODART\n"; break;
|
||||
default: query << "\nBY CODART\n"; break;
|
||||
case 1: query << "&&(BETWEEN(33.CODCF,#DACODCF,#ACODCF))\nBY 33.CODCF CODART\n"; break;
|
||||
case 2: query << "&&(BETWEEN(33.CODITI,#DAITI,#AITI))\nBY 33.CODITI CODART\n"; break;
|
||||
case 3: query << "&&(BETWEEN(33.CODAG,#DAAUT,#AAUT))\nBY 33.CODAG CODART\n"; break;
|
||||
default: query << "\nBY CODART\n"; break;
|
||||
}
|
||||
query << "JOIN DOC INTO CODNUM==CODNUM ANNO==ANNO PROVV==PROVV NDOC==NDOC\n"
|
||||
<< "JOIN ANAMAG INTO CODART==CODART\n"
|
||||
|
132
lv/lv1200c.rep
Executable file
132
lv/lv1200c.rep
Executable file
@ -0,0 +1,132 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<report name="lv1200c" lpi="6">
|
||||
<description>Stampa a kg per autista</description>
|
||||
<font face="Courier New" size="10" />
|
||||
<section type="Head" height="2" />
|
||||
<section type="Head" level="1">
|
||||
<field x="23.5" y="0.5" type="Testo" align="center" width="55" height="2" pattern="1" text="Stampa Consegnato per articolo">
|
||||
<font face="Courier New" bold="1" size="14" />
|
||||
</field>
|
||||
<field y="1" type="Testo" width="12" height="1.5" pattern="1" text="Data elab. :" />
|
||||
<field x="12.5" y="1" type="Stringa" width="12" height="1.5" pattern="1">
|
||||
<prescript>MESSAGE _TODAY</prescript>
|
||||
</field>
|
||||
<field x="78.5" y="1" type="Testo" width="5" height="1.5" pattern="1" text="Pag." />
|
||||
<field x="83.63" y="1" type="Stringa" width="10" height="1.5" pattern="1">
|
||||
<prescript>MESSAGE _PAGENO</prescript>
|
||||
</field>
|
||||
<field x="29" y="2" type="Testo" width="4" height="1.5" pattern="1" text="Dal" />
|
||||
<field x="34" y="2" type="Data" width="12" height="1.5" pattern="1">
|
||||
<source>#DADATA</source>
|
||||
<prescript description="H1.0 PRESCRIPT">MESSAGE _TODAY</prescript>
|
||||
</field>
|
||||
<field x="56" y="2" type="Testo" width="4" height="1.5" pattern="1" text="Al" />
|
||||
<field x="61" y="2" type="Data" width="12" height="1.5" pattern="1">
|
||||
<source>#ADATA</source>
|
||||
<prescript description="H1.0 PRESCRIPT">MESSAGE _TODAY</prescript>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Head" level="2" height="6">
|
||||
<groupby>DOC.CODCF</groupby>
|
||||
<prescript description="H2 PRESCRIPT">0 #F2.101 !
|
||||
0 #F2.102 !
|
||||
0 #F2.103 !</prescript>
|
||||
<field y="2" type="Testo" width="10" pattern="1" text="Autista:" />
|
||||
<field x="17" y="2" type="Stringa" width="50" pattern="1">
|
||||
<prescript description="H2.0 PRESCRIPT">MESSAGE ISAMREAD,TABMOD,COD='AUT'!CODTAB=#99,S0</prescript>
|
||||
</field>
|
||||
<field x="17" y="2" type="Stringa" width="50" height="0" pattern="1">
|
||||
<prescript description="H2.0 PRESCRIPT">MESSAGE ISAMREAD,20,TIPOCF='C'!CODCF=#99,RAGSOC</prescript>
|
||||
<postscript description="H2.0 POSTSCRIPT">MESSAGE RESET,F3.101
|
||||
MESSAGE RESET,F2.101
|
||||
MESSAGE RESET,F3.102
|
||||
MESSAGE RESET,F2.102
|
||||
MESSAGE RESET,F3.103
|
||||
MESSAGE RESET,F2.103
|
||||
|
||||
</postscript>
|
||||
</field>
|
||||
<field y="4" type="Testo" width="20" pattern="1" text="Codice">
|
||||
<source>RDOC.CODART</source>
|
||||
</field>
|
||||
<field x="21" y="4" type="Testo" width="50" pattern="1" text="Descrizione articolo">
|
||||
<source>ANAMAG.DESCR</source>
|
||||
</field>
|
||||
<field border="2" y="5" type="Linea" width="105" height="0" pattern="1" />
|
||||
<field x="10" y="2" type="Numero" align="right" width="6" id="99" pattern="1">
|
||||
<source>DOC.CODAG</source>
|
||||
</field>
|
||||
<field x="72" y="4" type="Testo" align="right" width="15" id="101" pattern="1" text="Quantita">
|
||||
<source>RDOC.QTA</source>
|
||||
</field>
|
||||
<field x="88" y="4" type="Testo" align="right" width="10" id="102" pattern="1" text="Importo">
|
||||
<source>RDOC.IMPORTO</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Head" level="3">
|
||||
<groupby>CODART</groupby>
|
||||
<prescript description="H3 PRESCRIPT">MESSAGE RESET,F3.101
|
||||
MESSAGE RESET,F3.102
|
||||
MESSAGE RESET,F3.103</prescript>
|
||||
</section>
|
||||
<section type="Body" />
|
||||
<section type="Body" level="1">
|
||||
<field x="71" type="Numero" hidden="1" align="right" width="8" id="101" pattern="1">
|
||||
<source>RDOC.QTA</source>
|
||||
<postscript description="B1.101 POSTSCRIPT">MESSAGE ADD,F3.101
|
||||
MESSAGE ADD,F2.101
|
||||
MESSAGE ADD,F1.101</postscript>
|
||||
</field>
|
||||
<field x="80" type="Valuta" hidden="1" align="right" width="10" id="102" pattern="1" text="#########,@@">
|
||||
<source>RDOC.IMPNS</source>
|
||||
<postscript description="B1.102 POSTSCRIPT">MESSAGE ADD,F3.102
|
||||
MESSAGE ADD,F2.102
|
||||
MESSAGE ADD,F1.102</postscript>
|
||||
</field>
|
||||
<field x="90" type="Numero" hidden="1" align="right" width="10" id="103" pattern="1" text="#####,@@@">
|
||||
<source>#PESO</source>
|
||||
<postscript description="B1.103 POSTSCRIPT">MESSAGE ADD,F3.103
|
||||
MESSAGE ADD,F2.103
|
||||
MESSAGE ADD,F1.103</postscript>
|
||||
</field>
|
||||
<field type="Stringa" hidden="1" width="20" id="201" pattern="1">
|
||||
<source>RDOC.CODART</source>
|
||||
</field>
|
||||
<field x="21" type="Stringa" hidden="1" width="50" id="202" pattern="1">
|
||||
<source>ANAMAG.DESCR</source>
|
||||
</field>
|
||||
</section>
|
||||
<section type="Foot" />
|
||||
<section type="Foot" level="1">
|
||||
<field border="2" y="1" type="Linea" width="105" height="0" pattern="1" />
|
||||
<field x="60" y="2" type="Testo" hidden="1" width="10" pattern="1" text="Totali" />
|
||||
<field y="3" type="Testo" width="20" pattern="1" text="** Peso totale **" />
|
||||
<field x="71" y="2" type="Numero" hidden="1" align="right" width="15" id="101" pattern="1" />
|
||||
<field x="86.5" y="2" type="Valuta" hidden="1" align="right" width="10" id="102" pattern="1" text="#########,@@" />
|
||||
<field x="26" y="3" type="Numero" align="right" width="15" id="103" pattern="1" />
|
||||
</section>
|
||||
<section type="Foot" level="2">
|
||||
<field border="2" type="Linea" width="105" height="0" pattern="1" />
|
||||
<field x="60" y="1" type="Testo" width="10" pattern="1" text="Totali" />
|
||||
<field y="2" type="Testo" width="10" pattern="1" text="** Peso **" />
|
||||
<field x="71" y="1" type="Numero" align="right" width="15" id="101" pattern="1" />
|
||||
<field x="86.5" y="1" type="Valuta" align="right" width="10" id="102" pattern="1" text="#########,@@" />
|
||||
<field x="13" y="2" type="Numero" align="right" width="15" id="103" pattern="1" />
|
||||
</section>
|
||||
<section type="Foot" level="3">
|
||||
<postscript description="F3 POSTSCRIPT">MESSAGE RESET,F3.101
|
||||
MESSAGE RESET,F3.102
|
||||
MESSAGE RESET,F3.103</postscript>
|
||||
<field type="Stringa" width="20" pattern="1">
|
||||
<source>B1.201</source>
|
||||
</field>
|
||||
<field x="20.5" type="Stringa" width="50" pattern="1">
|
||||
<source>B1.202</source>
|
||||
</field>
|
||||
<field x="70.5" type="Numero" align="right" width="15" id="101" pattern="1" />
|
||||
<field x="86" type="Valuta" align="right" width="10" id="102" pattern="1" text="#########,@@" />
|
||||
<field x="96.5" type="Numero" hidden="1" align="right" width="15" id="103" pattern="1" />
|
||||
</section>
|
||||
<sql>USE RDOC
|
||||
JOIN DOC INTO CODNUM==CODNUM ANNO==ANNO PROVV==PROVV NDOC==NDOC</sql>
|
||||
</report>
|
@ -525,7 +525,7 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
|
||||
}
|
||||
|
||||
//leggo l'unità di misura dell'articolo e la quantità convertita all'unità di misura dell'articolo
|
||||
const TString4 umart = artlav.um()[0].get(UMART_UM);
|
||||
const TString4 umart = artlav.um()[1].get(UMART_UM);
|
||||
const real qta = artlav.convert_to_um(rout.get_real(RDOC_QTA), umart, umri, false);
|
||||
|
||||
//se l'articolo non è espresso in kg, allora:
|
||||
|
Loading…
x
Reference in New Issue
Block a user