TOTVS Protheus at aFill
Four years developing aFill's foreign-trade add-on for TOTVS Protheus, Brazil's most used ERP: the import, export and DUIMP processes its client companies run every day.
- My role
- ADVPL developer
- Period
- since April 2022
- Stack
- ADVPL, TL++, Protheus MVC, SQL Server, Oracle, TOTVS Protheus
What it does
- Routines, screens, reports and integrations in ADVPL and TL++ with the MVC framework, with 200+ commits of mine since 2022.
- Integrated DUIMP and the product catalogue with Portal Único, Brazil's government trade portal, including digital-certificate authentication and clear error messages.
- Fixed import tax calculations (II, IPI, PIS/COFINS, ICMS, Siscomex fee) for DUIMP and drawback processes, and support clients on SQL Server and Oracle.
How it works
RoutinesADVPL/TL++ sources on MVC models and views for import, export and DUIMP processes.
Government portalIntegrations with Portal Único for DUIMP, product catalogue and foreign operators, authenticated with the client's digital certificate.
TaxesImport duties and taxes are calculated per declaration item, including drawback and special regimes.
ReleasesEach release ships with its parameters and is applied per client environment, on SQL Server or Oracle.
More projects
- SmileIAManagement platform for dental clinics with an AI assistant that answers patients 24/7 on WhatsApp, Instagram, Messenger and the clinic's website.
- AppMultiOne connector between Meta (WhatsApp Cloud API and Instagram Graph API) and any company's system. Its WhatsApp permissions passed Meta's App Review in July 2026.
- ProtocolosA system for clinics that sell follow-up programs of 3 to 12 months: the program, not the appointment, is the centre, from the first WhatsApp message to the renewal.
- TempWhatsA WhatsApp-only panel and connector split from AppMulti, built for a new Meta App Review: companies connect their number with Embedded Signup and answer customers from one inbox.
- TempSocialAn Instagram-only panel and connector split from AppMulti: companies connect their professional account with Instagram Login to answer DMs, moderate comments, publish and see insights. Submitted to Meta's App Review, waiting for approval.
- Temp.IA AdsA panel where agencies follow and manage their clients' Meta ad accounts, connected through Facebook Login for Business.
- HospedIAThe same AI-first approach for hospitality: an assistant and back office for small accommodation businesses.
- Garimpeiro de OfertasA Python bot that hunts deals on Mercado Livre and Amazon and posts them, with affiliate links, to Telegram and WhatsApp channels on a schedule.