Índice |
---|
...
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.
...
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.
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 | ||||
---|---|---|---|---|
|
How the layout must be:
Onde salvar
Where to save it:
...
...
Observação
Note:
...
Use a product register in which the Type is "SV" and the ISS Rate and Service Code fields are filled out:
...
...
...
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.
In it, two printing options are available:
Manual: In which the file is created in Word format, which is editable:
Automatic: In which the file is created in PDF format for later printing:
Either in the manual or the automatic option, RPSs are generated in accordance with the model defined by the .DOT file.
The variables below are found in table
...
Clique em Confirmar.
Nela, existem duas opções de impressão:
Manual: Onde o arquivo será gerado em formato Word, sendo possível manipulá-lo:
Automática: Onde o arquivo será gerado em formato PDF para posterior impressão:
Tanto na opção manual, como na automática, os RPSs serão gerado de acordo com o modelo definido pelo arquivo .DOT .
...
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 .
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" ) .
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 .
...
None
...
.