01.
...
GENERAL DATA
Product | Produto: | | Solucoes_totvs_cross |
|---|
| SolucaoCross | TOTVS Backoffice |
|---|
|
| Solucoes_totvs_parceirosexptotvs |
|---|
|
|
| Linha de Produto: | |
|---|
|
Product line: | Protheus line |
Segment | Segmento: | |
Module: | Módulo: | | Modulos_cross_segmentos |
|---|
ModulosCrossSegmentos | TOTVS Backoffice (Linha Protheus Line) - Contabilidade Gerencial Management Accounting (SIGACTB)| Modulos_totvs_prestadores_de_servicos |
|---|
|
|---|
FunçãoFunction: | CTBA270 |
PaísCountry: | BrasilBrazil |
Ticket: | InternoInternal |
RequisitoRequirement/ | StoryStory/Issue | DSERCTR1-46829 |
02.
...
O ponto de entrada CT101VLENT permite a validação das entidades contábeis no momento da gravação de lançamentos contábeis manuais, especificamente na rotina CTBA101. Dessa forma, pode-se garantir que regras contábeis personalizadas sejam aplicadas antes da finalização do lançamento permitindo ou não a gravação.
...
DESCRIPTION
The CT101VLENT entry point allows for the validation of accounting entities when recording manual accounting entries, specifically in the CTBA101 routine. This way, it can be ensured that custom accounting rules are applied before the entry is finalized, either allowing or preventing the recording (saving).
03. OTHER INFORMATION
| Bloco de código |
|---|
| language | cpp |
|---|
| theme | RDark |
|---|
| title | Manipulação de PE no sistemaEntry Point (EP) manipulation in the system |
|---|
|
lRet := ExecBlock("CT101VLENT",.F.,.F.,{cTipo,cDebito,cCredito, cCustoDeb,cCustoCrd, cItemDeb,cItemCrd, cCLVLDeb,cCLVLCrd}) |
| Bloco de código |
|---|
| language | cpp |
|---|
| theme | RDark |
|---|
| title | Exemplo de PEExample of EP |
|---|
|
User Function CT101VLENT()
Local lRet := .T.
Local cTipo := Paramixb[1] // TipoAccounting deentry lanc.type contabil1 1-> DebitoDebit, 2 -> CreditoCredit, 3 -> Partida DobradaDouble-entry
Local cDebito := Paramixb[2] // ContaDebit DebitoAccount
Local cCredito := Paramixb[3] // ContaCredit CreditoAccount
Local cCustoDeb := Paramixb[4] // Debit C.CustoCost DebitoCenter
Local cCustoCrd := Paramixb[5] // C.Custo CreditoCredit Cost Center
Local cItemDeb := Paramixb[6] // ItemDebit ContabilAccounting DebitoItem
Local cItemCrd := Paramixb[7] // ItemCredit ContabilAccounting CreditoItem
Local cCLVLDeb := Paramixb[8] // ClDebit ValorValue DebitoClass
Local cCLVLCrd := Paramixb[9] // ClCredit ValorValue CreditoClass
If cDebito == cCredito // exemploExample deof condicaoa quecondition podethat sercan feitabe paracreated validacaofor dasentity entidadesvalidation
lRet := .F.
Endif
Return lRet // seIf lRet = .F., the osystem sistema emitedisplays a message mensagemstating informandothat quethe as // entidadesentities nãocannot podembe serthe iguaissame eand cancelacancels athe operacaooperation |
| Aviso |
|---|
|
- Observa-se que a utilização do PE e os impactos dele no sistema são de responsabilidade do cliente.
- Os exemplos utilizados nessa documentação são apenas para fins de demonstração, cada cliente deve verificar qual comportamento deseja realizar de acordo com o escopo do ponto de entrada.
|
04. ASSUNTOS RELACIONADOS
|
- It should be noted that the use of the Entry Point (PE) and its impacts on the system are the customer's responsibility.
- The examples used in this documentation are for demonstration purposes only; each customer must determine the behavior they wish to implement according to the scope of the entry point.
|
04. RELATED ISSUES
- It does not applyNão se aplica.