Entry Point: CTA400CAL - Update of the accounting calendar
Ponto-de-Entrada: CTA400CAL - Atualização do calendario contábil
Abrangências: | Microsiga Protheus 10, Microsiga Protheus 11 |
VersõesVersions: | Microsiga Protheus 10, Microsiga Protheus 11 |
Compatível PaísesCompatible Countries: | TodosAll |
Sistemas OperacionaisOperating Systems: | Todos | All |
Compatible with the Databases | Compatível às Bases de Dados: | TodosAll | Idiomas
Languages: | Português Portuguese ( | BrasilBrazil) , | Português Portuguese (Portugal) , | Espanhol Spanish , | InglêsEnglish |
DescriçãoDescription:
O ponto de entrada CTA400CAL é utilizado para manipulação do calendário contábil na atualização.
The entry point CTA400CAL is used for manipulating the accounting calendar during the update.
Events
EventosSTATIC Function Ct400CTG(cCalend,cExerc,cFilCal)
Local aSaveArea := GetArea()
Local cFIlCTG := xFilial("CTG",cFilCal)
dbSelectArea("CTG")
dbSetOrder(1)
If MsSeek( cFIlCTG +cCalend+cExerc)
While CTG->CTG_FILIAL == cFIlCTG .And. CTG->CTG_CALEND == cCalend .And. ;
CTG->CTG_EXERC == cExerc .And. CTG->(!Eof())
Reclock("CTG",.F.)
CTG->CTG_STATUS := '2'
MsUnlock()
CTG->(dbSkip())
End
EndIf
RestArea(aSaveArea)
If ExistBlock("CTA400CAL")
ExecBlock("CTA400CAL",.F.,.F.,{cCalend, cExerc})
Endif
Return
Programa FonteSource Program
CTBA400.PRW
SintaxeSyntax
CTA400CAL -
Atualização do calendario contábil Update of the accounting calendar ( < cCalend> , < cExerc> )
ParâmetrosParameters:
| NomeName | Tipo
|
| Type | Descrição
|
| Description |
|
| Default | Obrigatório
|
| Mandatory | Referência
|
| Reference |
|
| cCalend | Caracter | Código do calendário
|
| Character |
|
| Calendar code. |
|
|
|
|
| X |
|
|
|
|
| cExerc |
|
| Array of Record | Código do exercicio
|
| Fiscal year code. |
|
|
|
|
| X |
RetornoExemplos cExerc 'O ponto de entrada recebe os parametros : cCalend : ' + cCalend + ' , cExerc : ' + cExerc ) Return 'The entry point receives the parameters : cCalend : ' + cCalend + ' , cExerc : ' + cExerc ) Return