Páginas filhas
  • MATA916 - RPS Printing (Temporary Service Receipt)

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

Índice

01.

...

Essa documentação tem como objetivo demonstrar a utilização da rotina MATA916 para impressão de Recibo Provisório de Serviço, utilizando um arquivo .DOT como modelo de layout.

02. Exemplo de Configuração

...

OVERVIEW

This documentation aims to show how to use the routine MATA916 for printing the Provisional Receipt for Services, using a .DOT file as a layout model.


02. CONFIGURATION EXAMPLE

Save an RPS model in Word format, renaming the file as RPS.DOT in the System folder, which is a subfolder of folder Protheus_Data (Local Frozen Base Structure

...

):

View file
namerps.dot
height400
Como o layout deve ser


How the layout must be:

Onde salvar


Where to save it:


03.

...

EXAMPLE

...

1st: Issue an outgoing invoice of RPS Type through routine MATA920:

Observação


Note

...

Use a product register in which the Type is "SV" and the ISS Rate and Service Code fields are filled out:

...


2nd: 

...

Access the routine MATA916: 

...

Environment:

...

Tax Records >

...

Reports >

...

Doc Printing >

...

RPS Printing

Parâmetros


Parameters:

...


.DOT

...

Directory? : Enter the directory where standard print file (.DOT)

...

is saved

...

Example: C:\TOTVS\P122210\Protheus_data\system

...


.DOT

...

File? : Enter the standard print file name with .DOT extension.
Example: RPS.DOT

Emissão inicial ? : Informe a data de emissão inicial dos RPSs que serão selecionados para impressão. Caso deseje todos os RPSs do período, deixar este campo em branco.

...


Initial Issue? : Enter the initial issue date of RPSs to be selected for printing. Leave this field blank for all RPSs of the period.


Final Issue? : Enter the final issue date of RPSs to be selected for printing. Enter ZZZZZZ for all RPSs of the period.


Initial Customer? : Enter the code of initial customer of RPSs to be selected for print. Leave this field blank for all RPSs of the period.


Final Customer? : Enter the code of final customer of RPSs to be selected for print. Enter ZZZZZZ for all RPSs of the period.


Concerning Automatic Option? Two options are available: 
Print: to automatically send the RPSs selected to the printer; or
Save: to save the RPSs selected for later printing.


Target Directory? : If the option Save was selected in the previous question, you must define in which directory the RPSs generated will be saved.
Example

...

: C:\TOTVS\ 


Initial RPS

...

? :

...

Enter the initial RPS number to select the documents to be printed. If you want to process all RPS, leave this question blank.


Final RPS? : Enter the final RPS number to select the documents to be printed. If you want to process all RPS, enter ZZZZZZ.


Print Canceled Documents? : Indicate whether canceled documents must be considered in the selection of RPSs for print.


Click Confirm.


3rd: On confirmation, a new window is displayed with the receipts selected in routine parameters.

In it, two printing options are available:

Manual: In which the file is created in Word format, which is editable:

Image Added



Automatic: In which the file is created in PDF format for later printing: 

Image Added


Either in the manual or the automatic option, RPSs are generated in accordance with the model defined by the .DOT file.


04. SOURCES OF VARIABLES


Data on the company issuing the RPS:

The variables below are found in table

...

Clique em Confirmar.

3º: Ao confirmar, é apresentada uma nova janela com os recibos selecionados nos parâmetros da rotina.

Nela, existem duas opções de impressão:

Manual: Onde o arquivo será gerado em formato Word, sendo possível manipulá-lo:

Image Removed

Automática: Onde o arquivo será gerado em formato PDF para posterior impressão: 

Image Removed

Tanto na opção manual, como na automática, os RPSs serão gerado de acordo com o modelo definido pelo arquivo .DOT .

04. Origens das variáveis

...

SM0:

"c_Empresa" - SM0→M0_NOMECOM ;
"c_EndEmp" - SM0→M0_ENDENT ;
"c_BairrEmp" - SM0→M0_BAIRENT ;
"c_CidEmp" - SM0→M0_CIDENT ;
"c_UFEmp" - SM0→M0_ESTENT ;
"c_CepEmp" - SM0→M0_CEPENT ;
"c_TelEmp" - SM0→M0_TEL ;
"c_CNPJEmp" - Transform(SM0→M0_CGC,"@R 99.999.999/9999-99") ;
"c_IEEmp" - SM0→M0_INSCM .  

Informações sobre a emissão do RPS:


Data on RPS issue:

The variables below are found in table

...

SF3:

"c_NumRps" - SF3→F3_NFISCAL ;
"d_EmiRPS" - SF3→F3_ENTRADA ;
"c_HorRPS" - Transform(cTime,"@R 99:99" ) .

Informações sobre o cliente (destinatário) do movimento:


Data on the customer (recipient) of transaction:

The variables below are found in table

...

SA2:

"c_CNPJCli" - Transform(SA2→A2_CGC,"@R 999.999.999-99") ;
"c_IMCli" - SA2→A2_INSCR ;
"c_EndCli" - SA2→A2_END ;
"c_BairrCli" - SA2→A2_BAIRRO ;
"c_CepCli" - SA2→A2_CEP ;
"c_MunCli" - SA2→A2_MUN ;
"c_UFCli" - SA2→A2_EST ;
"c_EmailCli" - SA2→A2_EMAIL .


05.

...

ADDITIONAL INFORMATION

None

...

.