Evidence Summary
- Create route
/compras/ndf/create- List route
/compras/ndf- Final view
/compras/ndf/view/OTk5OTAwMDA1- Workflow run
supplier-debit-note-ndf-20260519T075402Z- Created document
999900005 / 9999/5- Evidence file
raw/playwright/workflows/latest-supplier-debit-note-ndf.json
When to Use This
Use Note debit forn. [NDF] to register a debit note from or against a supplier. The verified path creates an open supplier debit note, updates the supplier current-account side, does not require a payment row at creation, and did not change stock or order quantities for the tested article.
Step-by-Step
- Open Purchases / Note debit forn. [NDF], then click Create Debit Note Supplier, or navigate directly to
/compras/ndf/create. - Confirm the page route is
/compras/ndf/createand the form is usingTipoOp=NDF. - Select the Supplier. The verified run used supplier
100, AI Demo Supplier 20260519T030323Z, VAT590303236. - Enter a traceable value in Supplier`s N.. The verified run used
AI-NDF-20260519T075402Z, checked byfindNumNoFornagainst tableNDebF. - Review dates and defaults. The verified run used emission date
19/05/2026, due date20/05/2026, series9999, employeeDemo, payment conditionPP, currencyEUR, and warehouse1. - Add the article line. The verified line used article
AI-DEMO-20260519-021105, quantity1, unit cost1.23, VAT23%, and total1.51. - Click Save and Finish.
- Confirm the Are you sure? dialog with OK.
- OfficeGest posts
saveDocument, redirects to the NDF view, and keeps the document in Open status. The verified save response was999900005%&=&OKDOC&=&. - Search the NDF list for
999900005or the supplier reference. The verified list row had statusABR/ Open, total1.51, and paid value0.
Verified NDF Values
| Field | Value |
|---|---|
| Internal number | 999900005 |
| Visible document number | 9999/5. The list row did not display an NDF prefix, but the route and list table identify it as tipoop=NDF. |
| Supplier reference | AI-NDF-20260519T075402Z |
| Supplier | [100] AI Demo Supplier 20260519T030323Z, VAT 590303236 |
| Route/list identity | /compras/ndf, table NDebF, tipoop=NDF, tipoterc=F, actualizacc=T, recibo=F. |
| Status | ABR / Open, validation N/D. |
| Payment | No payment line; ValorPago=0. |
| Total | 1.51 |
| Stock/order effect | Physical stock in warehouse 1 stayed 5; customer-order quantity stayed 4; supplier-order quantity stayed 2. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades&tabla=Forn | Loads supplier master data after selecting supplier 100. |
findNumNoForn | Checks duplicate supplier reference using tabela=NDebF, supplier 100, and numnoforn=AI-NDF-20260519T075402Z. |
loadArtigoReducido&compras=T | Loads purchase article metadata, including physical stock 5, cost 1.23, VAT 23, and supplier-order quantity 2. |
insertLinhaTabDoc | Inserts the article into temporary NDF table 47957 with id_tipoop=NDF, cliente=100, isforn=T, quantity 1, and warehouse 1. |
price_variation_article | Checks supplier/article price variation for supplier 100. |
create_document&option=calcular_totais | Calculates net, VAT, and total for the NDF note. |
saveDocument | Creates the open NDF document. The verified payload used TipoOp=NDF, CodTipoLanc=AccNDebFMerc, NumNoForn=AI-NDF-20260519T075402Z, MovimentaStock=1, id=47957, isedit=F, and israsc=0. |
DT_List_DocumentosF | Verifies the note in the NDF list using table NDebF, actualizacc=T, and tipoop=NDF. |
dt_list_recalc_stock_articles_lojas | Verifies that physical stock and order quantities did not change after saving the NDF. |
Raw evidence: raw/playwright/workflows/supplier-debit-note-ndf-20260519T075402Z.json. Screenshots: assets/screenshots/supplier-debit-note-ndf-20260519T075402Z-01-create-page.png through assets/screenshots/supplier-debit-note-ndf-20260519T075402Z-04-ndf-list.png.
Validation Notes
- No payment modal: NDF Save and Finish did not require supplier payment.
- Open state: the verified debit note saved as
ABR/ Open withValorPago=0. - Document number display: the final title and list row displayed
9999/5instead ofNDF 9999/5; use route/compras/ndf, tableNDebF, andtipoop=NDFas the reliable document identity. - Stock distinction: NDF kept physical stock and order quantities unchanged in the verified run.