Evidence Summary
- Debit note route
/vendas/nd/view/OTk5OTAwMDA1- List route
/vendas/nd- Workflow run
cancel-debit-note-nd-20260520T001612Z- Cancelled debit note
999900005 / ND 9999/5- Source invoice
999901707 / FT 9999/1707- Evidence file
raw/playwright/workflows/latest-cancel-debit-note-nd.json
When to Use This
Use Cancel on a debit note when the ND adjustment itself was issued incorrectly and should be annulled. In the verified run, OfficeGest kept the ND searchable, changed it from ABR / Open to ANU / Canceled, left the source invoice unchanged, and did not move stock.
Cancellation is irreversible in the OfficeGest confirmation dialog. The verified cancellation did not change the source invoice settlement state; FT 9999/1707 stayed ABR / Open with paid value 0.00.
Step-by-Step
- Open Sales / Debit Note [ND] and open the debit note view. The verified run used
ND 9999/5. - Confirm the source and values before cancellation. Before cancellation,
ND 9999/5wasABR/ Open, total1.97,ValorPago=0, pending value1.97, and sourceFT 9999/1707. - Click the red Cancel action in the debit note action bar.
- In Reason for Cancellation, select a cancellation reason. The verified run used reason id
1, visible as Erro de faturacao. - Click the red Cancel button inside the reason modal.
- Confirm the warning dialog: Are you sure you want to cancel? This irreversible operation.
- Search the ND list for the debit note number. The verified row returned
estado=ANU, visible state Canceled, total1.97,ValorPago=0, and pending value1.97. - Search the source FT list for
FT 9999/1707. The verified row stayedABR/ Open,ValorPago=0, and pending value1.97. - Check stock when the adjustment includes article lines. Warehouse
1stayed at-41, matching the verified ND behavior that did not move physical stock.
Verified Cancellation Values
| Field | Value |
|---|---|
| Debit note internal number | 999900005 |
| Visible debit note number | ND 9999/5 |
| Customer | [910] 100 Ouvidos Lda, VAT 509031862 |
| Source document | 999901707 / FT 9999/1707 |
| Cancellation reason | id_motivo_anulacao=1, Erro de faturacao |
| ND before cancellation | ABR / Open, total 1.97, ValorPago=0, pending value 1.97. |
| ND after cancellation | ANU / Canceled, total 1.97, ValorPago=0, pending value 1.97. |
| Source FT after cancellation | ABR / Open, ValorPago=0, pending value 1.97. |
| Stock effect | Warehouse 1 stock for AI-DEMO-20260519-021105 stayed -41. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
podeAnularDoc | Checks whether the ND can be cancelled. The verified call used num=999900005, tipoop=ND, and returned succeeded:true. |
Sel2_Select_v2&table=motivos_docs | Loads active cancellation reasons with where[is_anulacao]=1 and where[activo]=1. |
deleteDocument | Submits the ND cancellation with tipoop=ND, id_motivo_anulacao=1, and tot_fin=1.97. |
DT_List_Documentos&table=NDeb | Verifies the ND list before and after cancellation. |
DT_List_Documentos&table=Fact | Verifies the source invoice after cancellation. |
dt_list_recalc_stock_articles_lojas | Verifies that article stock stayed unchanged after the cancellation. |
Raw evidence: raw/playwright/workflows/cancel-debit-note-nd-20260520T001612Z.json. Screenshots: assets/screenshots/cancel-debit-note-nd-20260520T001612Z-01-nd-view-before-cancel.png through assets/screenshots/cancel-debit-note-nd-20260520T001612Z-04-nd-list.png.