Entry Point: CTA400CAL - Update of the accounting calendar
Scope: | Microsiga Protheus 10, Microsiga Protheus 11 |
Versions: | Microsiga Protheus 10, Microsiga Protheus 11 |
Compatible Countries: | All |
Operating Systems: | All |
Compatible with the Databases: | All |
Languages: | Portuguese (Brazil) , Portuguese (Portugal) , Spanish , English |
Description:
The entry point CTA400CAL is used for manipulating the accounting calendar during the update.
Events
STATIC 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
Source Program
CTBA400.PRW
Syntax
CTA400CAL - Update of the accounting calendar ( < cCalend> , < cExerc> )
Parameters:
Name | Type | Description | Default | Mandatory | Reference | ||||||||||||
cCalend | Character | Calendar code. | X | ||||||||||||||
cExerc | Array of Record | Fiscal year code. | X |
Return
()
Examples
#include "Protheus.ch"User Function CTA400CAL()Local cCalend := paramixb[1]Local cExerc := paramixb[2] msgalert( 'The entry point receives the parameters : cCalend : ' + cCalend + ' , cExerc : ' + cExerc ) Return