Technology

A TOTVS environment has five layers, from screen to database. We master all of them, which lets us solve a problem in the right place instead of working around it in the wrong one.

Interface

Where users work. Screens that load fast, work on mobile and follow the TOTVS visual standard.

Angular
Foundation of our enterprise web applications.
PO-UI
TOTVS component library: tables, dynamic forms, page templates and charts.
TypeScript
End-to-end typing of API contracts.
Widgets Fluig
Panels and portals inside the Fluig platform.

Workflows

Where work moves between people. Approvals, requests and deadlines taken out of email.

Fluig BPM
Workflow modelling with approval levels, deadlines and notifications.
Formulários Fluig
Forms with rules, validation and fields fed by the ERP.
Datasets
Data bridge between Fluig, Protheus and external systems.

Services and APIs

Where systems talk. Clear contracts, authentication and a record of what is exchanged.

REST em TLPP
Services with annotations, typing and namespaces.
REST em ADVPL
Maintenance and evolution of existing WSRESTFUL services.
JSON e web services
Consuming third-party APIs: banks, e-commerce, CRM, tax.

Business rules

Where company rules live. Customization that respects the standard and survives updates.

ADVPL
Routines, user exits, triggers and validations.
TLPP
New code with object orientation, typing and namespaces.
MVC
Registrations and routines in the current Protheus architecture model.
ExecAuto
Automation of standard routines with every ERP validation applied.

Data

Where everything is stored. Efficient queries and reports leadership can trust.

SQL
Optimized queries over the Protheus dictionary, with index and execution-plan analysis.
TReport e FWMsPrinter
Operational reports and graphical documents.
Power BI
ERP data prepared for management analysis.

One sales order, across three layers

pedidos.tlpp
#include "totvs.ch"
#include "tlpp-core.th"
#include "tlpp-rest.th"

namespace ntcode.vendas

@Get("/api/v1/pedidos/:numero")
User Function getPedido()
  Local jPath   := oRest:getPathParamsRequest()
  Local jPedido := JsonObject():New()
  Local cQry    := GetNextAlias()

  BeginSql Alias cQry
    SELECT C5_NUM, C5_CLIENTE, C5_EMISSAO
      FROM %Table:SC5% SC5
     WHERE C5_FILIAL = %Exp:FWxFilial("SC5")%
       AND C5_NUM    = %Exp:jPath["numero"]%
       AND SC5.%NotDel%
  EndSql

  jPedido["numero"]  := (cQry)->C5_NUM
  jPedido["cliente"] := (cQry)->C5_CLIENTE
  jPedido["emissao"] := (cQry)->C5_EMISSAO
  (cQry)->(DbCloseArea())

Return oRest:setResponse(jPedido:toJson())

API response

GET /api/v1/pedidos/000482 200 OK

{
  "numero":  "000482",
  "cliente": "000137",
  "emissao": "20261103"
}

Simplified example with illustrative data.

ADVPL, TLPP, Angular and PO-UI in one team

It is rare to find people who write a solid tax routine in ADVPL and also an Angular application. They are usually different vendors, and the client ends up mediating between them.

At NTCode, whoever designs the PO-UI screen knows the table, the user exit and the rule behind the data. The API contract is born together with the interface, and the project moves without depending on third parties.

See the solutions

Have a project or a problem in your TOTVS environment?

Tell us the scenario. We assess it and reply with an initial diagnosis within 24 hours.