Evidence Summary
- Create route
/vendas/nd/create- List route
/vendas/nd- Final view
/vendas/nd/view/OTk5OTAwMDA1- Workflow run
debit-note-nd-20260520T001537Z- Created document
999900005 / ND 9999/5- Evidence file
raw/playwright/workflows/latest-debit-note-nd.json
When to Use This
Use Note debit [ND] when you need an amending sales document that increases a customer's receivable value and references a prior sales document. In the verified demo, ND used source association but did not move stock.
Step-by-Step
- Open Sales / Amending / Note debit [ND], then click Create Debit Note, or navigate directly to
/vendas/nd/create. - Select the customer. The verified run used customer
910, 100 Ouvidos Lda, VAT509031862. - Confirm document series, employee, commercial, and payment term. The verified run used series
9999, employeeDemo, commercialComercial 1, and payment termPP. - Optionally enter a Reference. The verified run used
AI-ND-20260520T001537Z. - In the source association menu, choose the source document type. The verified run used [FT] Invoice.
- Select the source document. The verified run selected
999901707 / FT 9999/1707, dated20/05/2026. - Choose the source line quantity. The verified run used line
1, articleAI-DEMO-20260519-021105, quantity1, unit price1.60, VAT23%. - Click the association modal Save. OfficeGest copies the selected source line into the ND draft and calculates gross
1.60, VAT0.37, and total1.97. - Click Save and Finish, then confirm the Are you sure? dialog if shown.
- OfficeGest posts
saveDocument, redirects to the ND view, and creates an open debit note. The verified save response was999900005%OK&=&OKDOC&=&. - Search the ND list for
999900005. The verified row showed statusABR/ Open, paid value0.00, pending value1.97, and total1.97.
Verified Debit Note Values
| Field | Value |
|---|---|
| Internal number | 999900005 |
| Visible document number | ND 9999/5 |
| Source document | 999901707 / FT 9999/1707 |
| Source line | Article AI-DEMO-20260519-021105, quantity 1, warehouse 1. |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862 |
| Status | ABR, visible as Open |
| Total | 1.97; paid 0.00; pending 1.97. |
| Source invoice result | FT 9999/1707 remained ABR / Open, paid 0.00, pending 1.97. |
| Source association result | After save, FT 9999/1707 was no longer returned by the ND source association list for customer 910. |
| Stock effect | Warehouse 1 stock for the demo article stayed -41 after the ND was saved. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
DT_List_Documentos&table=NDeb | Loads and verifies debit notes with typesaft=ND, tipoop=ND, and actualizacc=T. |
NameEntidades | Loads customer master data for customer 910. |
associar_documento&option=load_modal | Opens the source-document association modal for selected type FT. |
associar_documento&option=listar_documentos | Lists source documents available for ND association. Before save it returned FT 9999/1707; after save that source was no longer returned. |
associar_documento&option=listar_tabela | Loads source lines for the selected FT document. |
associar_documento&option=save_linhas | Copies the selected source line into the ND temporary document table. |
listaTabDocumento | Loads the ND draft line before save and on the final view. |
create_document&option=calcular_totais | Calculates gross, VAT, retention, and total. |
saveDocument | Creates the ND document. The verified response was {"return":"999900005%OK&=&OKDOC&=&","print_documents":[]}. |
DT_List_Documentos&table=Fact | Checks the source invoice remained open and unpaid. |
dt_list_recalc_stock_articles_lojas | Confirms stock stayed unchanged at -41 in warehouse 1. |
Raw evidence: raw/playwright/workflows/debit-note-nd-20260520T001537Z.json. Screenshots: assets/screenshots/debit-note-nd-20260520T001537Z-01-create-page.png through assets/screenshots/debit-note-nd-20260520T001537Z-05-nd-list.png.