tabela    =\sistemas\vendas\rm_3100
report    =?
nome      =VendasC/Repr/It/Clie
pagewidth =132
pagelength=60

* Page Header

01,001|varprg              |CI_15CPP                                                                        |       |132|"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

02,001|caption             |                                                                                |       |130|"----------------------------------------------------------------------------------------------------------------------------------"

03,001|varprg              |NOMEMPRESA                                                                      |       |040|"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
03,094|caption             |                                                                                |       |009|"Emiss„o: "
03,103|varrpt              |today()                                                                         |       |010|"AAAAAAAAAA"
03,113|caption             |                                                                                |       |001|"-"
03,114|varrpt              |Current time                                                                    |       |008|"hh:mm:ss"
03,123|caption             |                                                                                |       |005|"Pag: "
03,128|varrpt              |Current page number                                                             |       |003|"999"

04,001|caption             |                                                                                |       |130|"----------------------------------------------------------------------------------------------------------------------------------"


06,045|caption             |                                                                                |       |020|"Resumo de Vendas de "
06,065|varprg              |VSDGDTINI                                                                       |       |010|"DD/MM/AAAA"
06,076|caption             |                                                                                |       |004|"at‚ "
06,080|varprg              |VSDGDTFIM                                                                       |       |010|"DD/MM/AAAA"

07,001|caption             |                                                                                |       |026|"Representante/Item/Cliente"

08,045|caption             |                                                                                |       |086|"_________________ Vendas _________________ ____ Devolucoes ____ ______ Liquido _______"

09,001|caption             |                                                                                |       |130|"Cliente                                          Qtde Un  Embalagem        Valor   %        Qtde      Valor      Qtde        Valor"

10,001|caption             |                                                                                |       |130|"------------------------------------------- --------- -- ---------- ------------ ----- --------- ---------- --------- ------------"

* Group Header for Codigo da Empresa

01,001|caption             |                                                                                |       |009|"Empresa: "
01,010|field               |Codigo da Empresa                                                               |texto  |004|"AAAA"
01,015|field               |Nome Fantasia Empresa                                                           |texto  |020|"AAAAAAAAAAAAAAAAAAAA"


* Group Header for Codigo do Representante

01,001|caption             |                                                                                |       |015|"Representante: "
01,016|field               |Codigo do Representante                                                         |texto  |004|"AAAA"
01,021|field               |Nome Fantasia Represent                                                         |texto  |020|"AAAAAAAAAAAAAAAAAAAA"


* Group Header for Codigo do Item

01,004|caption             |                                                                                |       |006|"Item: "
01,010|field               |Codigo do Item                                                                  |texto  |010|"AAAAAAAAAA"
01,021|field               |Descricao do Item                                                               |texto  |030|"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

* Group Header for Codigo

* Table Band

01,001|field               |Codigo                                                                          |texto  |004|"AAAA"
01,006|field               |Razao Social                                                                    |texto  |038|"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
01,045|field               |Vendas_Quantidade                                                               |decimal|009|"999.999,9"
01,055|field               |Unidade Fiscal                                                                  |texto  |002|"AA"
01,058|field               |Vendas_Embalagem                                                                |decimal|007|"999.999"
01,066|field               |Unidade Embalagem                                                               |texto  |002|"AA"
01,069|field               |Vendas_Preco Total                                                              |moeda  |012|"9.999.999,99"
01,081|calculado           |Format("W6.1,EIC",([Vendas_Preco Total]*100)/[Total_Vendas_Item])               |       |007|"AAAAAAA"
01,088|field               |Devolucoes_Quantidade                                                           |decimal|009|"999.999,9"
01,098|field               |Devolucoes_Preco Total                                                          |moeda  |010|"999.999,99"
01,109|varprg              |[Vendas_Quantidade]-[Devolucoes_Quantidade]                                     |       |009|"999.999,9"
01,119|varprg              |[Vendas_Preco Total]-[Devolucoes_Preco Total]                                   |       |012|"9.999.999,99"

* Group Footer for Codigo

* Group Footer for Codigo do Item

01,031|caption             |                                                                                |       |014|"Total Item... "
01,045|sum, per group      | Vendas_Quantidade                                                              |       |009|"999.999,9"
01,058|sum, per group      | Vendas_Embalagem                                                               |       |007|"999.999"
01,069|sum, per group      | Vendas_Preco Total                                                             |       |012|"9.999.999,99"
01,081|calculado           |Format("W6.1,EIC",(Sum([Vendas_Preco Total],group)*100)/[Total_Vendas_Represent]|       |007|"AAAAAAA"
01,088|sum, per group      | Devolucoes_Quantidade                                                          |       |009|"999.999,9"
01,098|sum, per group      | Devolucoes_Preco Total                                                         |       |010|"999.999,99"
01,109|sum, per group      | [Vendas_Quantidade]-[Devolucoes_Quantidade]                                    |       |009|"999.999,9"
01,119|sum, per group      | [Vendas_Preco Total]-[Devolucoes_Preco Total]                                  |       |012|"9.999.999,99"


* Group Footer for Codigo do Representante

01,022|caption             |                                                                                |       |023|"Total Representante... "
01,045|sum, per group      | Vendas_Quantidade                                                              |       |009|"999.999,9"
01,058|sum, per group      | Vendas_Embalagem                                                               |       |007|"999.999"
01,069|sum, per group      | Vendas_Preco Total                                                             |       |012|"9.999.999,99"
01,081|calculado           |Format("W6.1,EIC",(Sum([Vendas_Preco Total],group)*100)/[Total_Vendas_Empresa]) |       |007|"AAAAAAA"
01,088|sum, per group      | Devolucoes_Quantidade                                                          |       |009|"999.999,9"
01,098|sum, per group      | Devolucoes_Preco Total                                                         |       |010|"999.999,99"
01,109|sum, per group      | [Vendas_Quantidade]-[Devolucoes_Quantidade]                                    |       |009|"999.999,9"
01,119|sum, per group      | [Vendas_Preco Total]-[Devolucoes_Preco Total]                                  |       |012|"9.999.999,99"


* Group Footer for Codigo da Empresa

01,028|caption             |                                                                                |       |017|"Total Empresa... "
01,045|sum, per group      | Vendas_Quantidade                                                              |       |009|"999.999,9"
01,058|sum, per group      | Vendas_Embalagem                                                               |       |007|"999.999"
01,069|sum, per group      | Vendas_Preco Total                                                             |       |012|"9.999.999,99"
01,081|calculado           |Format("W6.1,EIC",(Sum([Vendas_Preco Total],group)*100)/[Total_Vendas_Empresa]) |       |007|"AAAAAAA"
01,088|sum, per group      | Devolucoes_Quantidade                                                          |       |009|"999.999,9"
01,098|sum, per group      | Devolucoes_Preco Total                                                         |       |010|"999.999,99"
01,109|sum, per group      | [Vendas_Quantidade]-[Devolucoes_Quantidade]                                    |       |009|"999.999,9"
01,119|sum, per group      | [Vendas_Preco Total]-[Devolucoes_Preco Total]                                  |       |012|"9.999.999,99"



* Page Footer

01,001|varprg              |CI_10CPP                                                                        |       |132|"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
