...
Product | Produto: |
| ||||||||||||
| Linha de Produto: |
| |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Segmento: |
| |||||||||||||
Product Line: | Protheus line | |||||||||||||
Segment: | Services | |||||||||||||
Module: | TOTVS Backoffice (Protheus Line) - Managerial Accounting (SIGAFIS | Módulo: |
ModulosCrossSegmentos | TOTVS Backoffice (Linha Protheus) - Contabilidade Gerencial (SIGACTB)
| ||||||||||
Function: | CTBA102,CTBA103,CTBA105,CTBXVLD,CTBA104,CTBXMI | |||||||||||||
Country: | BrasilBrazil | |||||||||||||
Ticket: | InternoInternal | |||||||||||||
Requisite/ | StoryStory/Issue | DSERCTR1-46829 |
...
O ponto de entrada CT105TOK é utilizado para validar o lançamento contábil após a validação realizada pela função MSGETDB. Esse ponto de entrada permite customizar a validação contábil, verificando, por exemplo, se os valores de débito e crédito estão corretos ou se outras regras contábeis específicas precisam ser aplicadas. O retorno da função é um valor booleano, onde true indica que a validação foi bem-sucedida, e false sinaliza que o lançamento contém inconsistências e não pode ser processado.
Esse ponto de entrada oferece flexibilidade para os usuários ajustarem as regras de negócios, garantindo que as validações de conformidade específicas sejam atendidas.
...
The entry point CT105TOK is used to validate the accounting entry after the validation performed by the MSGETDB function. This entry point allows for the customization of the accounting validation, checking, for example, whether the debit and credit values are correct or if other specific accounting rules need to be applied. The function's return is a boolean value, where true indicates that the validation was successful, and false signals that the entry contains inconsistencies and cannot be processed.
This entry point offers flexibility for users to adjust business rules, ensuring that specific compliance validations are met.
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
lRet := ExecBlock("CT105TOK",.f.,.f.,{nValDeb,nValCrd,;
aTotRdpe[1][1],;
nTotInf }) |
| Bloco de código | ||||||
|---|---|---|---|---|---|---|
| ||||||
User Function CT105TOK() Local nValDeb := PARAMIXB[1] Local nValCrd := PARAMIXB[2] Local nTotRdpe := PARAMIXB[3] // valordebit a debitovalue Local nTotInf := PARAMIXB[4] // Local lRet := .T. // Checks if Verificathere seis háa divergênciadiscrepancy noin valorthe deentry lançamentovalue eand total de débitosdebits If nTotInf != nTotRdpe // ExemploExample deof verificaçãototal devalue valores totaisverification MsgAlert("Total dedebit débitodoes nãonot conferematch. VerifiqueCheck othe lançamentoentry.") Return .F. EndIf Return lRet |
| Aviso | ||
|---|---|---|
| ||
|
|