Workflow

How to Set a Line Accounting Classification on a Sales Invoice

Verified end to end. Demo run sales-invoice-line-accounting-classification-20260519T202853Z set the invoice line accounting classification to [1] Mercadorias, saved FT 9999/1691, and verified the final FT line retained id_classifcontab=1.

Evidence Summary

Create route
/vendas/ft/create
Final view
/vendas/ft/view/OTk5OTAxNjkx
Created invoice
999901691 / FT 9999/1691
Customer
[910] 100 Ouvidos Lda
Line accounting classification
1 / [1] Mercadorias
Evidence file
raw/playwright/workflows/latest-sales-invoice-line-accounting-classification.json

Verified sales invoice line accounting classification workflow

When to Use This

Use a line accounting classification when a specific invoice line must be assigned to an accounting class such as goods, subcontracts, specialized services, advertising, or other expense/revenue categories. This is a line-level field and is separate from both invoice header classification and line cost center.

Step-by-Step

  1. Open Sales / Invoice [FT], then click New document, or navigate directly to /vendas/ft/create.
  2. Select the customer and confirm the mandatory invoice fields. The verified run used customer 910, seller 1, and employee 1.
  3. Add the article line. The verified run inserted article AI-DEMO-20260519-021105, quantity 1, warehouse 1.
  4. In the document lines table, edit the accounting classification column for the line. The stored line field is id_classifcontab.
  5. Select the accounting classification. The verified run selected 1 / Mercadorias.
  6. Wait for the document-line grid to reload and confirm the line now holds id_classifcontab=1.
  7. Click Save and Finish, then confirm the Are you sure? dialog.
  8. Verify the saved invoice view still shows the accounting classification on the document line.

Observed Accounting Classifications

CodeLabel
1Mercadorias
2Subcontratos
36221 - Trabalhos Especializados
66222 - Publicidade e Propaganda
76223 - Vigilância e segurança
86224 - Honorários
96225 - Comissões
106226 - Conservação e Reparação
116227 - Serviços bancários e financeiros
126228 - Outros Serviços Especializados

Verified Behavior

CheckObserved result
Before editThe inserted line had id_classifcontab=null.
Classification editupdateEditableTabDoc returned {"success":true,"msg":""} for campo=id_classifcontab and value=1.
After grid reloadThe line returned id_classifcontab=1.
Final viewThe saved FT line retained id_classifcontab=1.
List stateThe FT list returned FT 9999/1691 as ABR / Open with total and pending value 1.97.

Backend Calls Observed

Action or endpointPurpose
NameEntidadesLoads customer billing data after customer selection.
loadArtigoReducido / insertLinhaTabDocLoads and inserts the invoice article line.
updateEditableTabDocUpdates the line field id_classifcontab.
DT_TabDocumentoReloads the document-line grid after the accounting-classification edit.
saveDocumentSaves the final FT invoice with the updated server-side line.
DT_List_DocumentosVerifies the invoice list row after save.

Raw evidence: raw/playwright/workflows/sales-invoice-line-accounting-classification-20260519T202853Z.json. Screenshots: assets/screenshots/sales-invoice-line-accounting-classification-20260519T202853Z-01-create-page.png through assets/screenshots/sales-invoice-line-accounting-classification-20260519T202853Z-04-final-view.png.