Workflow

How to Create a Supplier Credit Note NCF

Verified end to end. Demo run supplier-credit-note-ncf-20260519T075930Z created supplier credit note NCF 9999/25 / 999900025 for supplier [100] AI Demo Supplier 20260519T030323Z, verified the NCF list row, and confirmed the stock decrease.

Evidence Summary

Create route
/compras/ncf/create
List route
/compras/ncf
Final view
/compras/ncf/view/OTk5OTAwMDI1
Workflow run
supplier-credit-note-ncf-20260519T075930Z
Created document
999900025 / NCF 9999/25
Evidence file
raw/playwright/workflows/latest-supplier-credit-note-ncf.json

Verified supplier credit note NCF workflow

When to Use This

Use Note forn credit. [NCF] to register a supplier credit note. In the verified path the document stayed open and unpaid, updated the supplier current-account side, and reduced the physical stock for the returned/credited article line.

Step-by-Step

  1. Open Purchases / Note forn credit. [NCF], then click Create Credit Note Supplier, or navigate directly to /compras/ncf/create.
  2. Confirm the form is using TipoOp=NCF.
  3. Select the Supplier. The verified run used supplier 100, AI Demo Supplier 20260519T030323Z, VAT 590303236.
  4. Enter a traceable value in Supplier`s N.. The verified run used AI-NCF-20260519T075930Z, checked by findNumNoForn against table NCredF.
  5. Review dates and defaults. The verified run used emission date 19/05/2026, due date 20/05/2026, series 9999, employee Demo, payment condition PP, currency EUR, and warehouse 1.
  6. Add the article line. The verified line used article AI-DEMO-20260519-021105, quantity 1, unit cost 1.23, VAT 23%, and total 1.51.
  7. Click Save and Finish.
  8. Confirm the Are you sure? dialog with OK.
  9. OfficeGest posts saveDocument, redirects to the NCF view, and keeps the document in Open status. The verified save response was 999900025%&=&OKDOC&=&.
  10. Search the NCF list for 999900025 or the supplier reference. The verified list row had status ABR / Open, total 1.51, and paid value 0.
  11. Verify stock if the note includes stock-moving articles. The verified run changed warehouse 1 stock from 5 to 4.

Verified NCF Values

FieldValue
Internal number999900025
Visible document numberNCF 9999/25
Supplier referenceAI-NCF-20260519T075930Z
Supplier[100] AI Demo Supplier 20260519T030323Z, VAT 590303236
Route/list identity/compras/ncf, table NCredF, tipoop=NCF, tipoterc=F, actualizacc=T, recibo=F.
StatusABR / Open, validation N/D.
PaymentNo payment line; ValorPago=0.
Total1.51
Stock/order effectPhysical stock in warehouse 1 changed from 5 to 4; customer-order quantity stayed 4; supplier-order quantity stayed 2.

Backend Calls Observed

Action or endpointPurpose
NameEntidades&tabla=FornLoads supplier master data after selecting supplier 100.
findNumNoFornChecks duplicate supplier reference using tabela=NCredF, supplier 100, and numnoforn=AI-NCF-20260519T075930Z.
loadArtigoReducido&compras=TLoads purchase article metadata, including physical stock 5, cost 1.23, VAT 23, and supplier-order quantity 2.
insertLinhaTabDocInserts the article into temporary NCF table 48047 with id_tipoop=NCF, cliente=100, isforn=T, quantity 1, and warehouse 1.
price_variation_articleChecks supplier/article price variation for supplier 100.
create_document&option=calcular_totaisCalculates net, VAT, and total for the NCF note.
saveDocumentCreates the open NCF document. The verified payload used TipoOp=NCF, CodTipoLanc=AccNCredFMerc, NumNoForn=AI-NCF-20260519T075930Z, MovimentaStock=on, id=48047, isedit=F, and israsc=0.
DT_List_DocumentosFVerifies the note in the NCF list using table NCredF, actualizacc=T, and tipoop=NCF.
dt_list_recalc_stock_articles_lojasVerifies warehouse stock after saving the NCF.

Raw evidence: raw/playwright/workflows/supplier-credit-note-ncf-20260519T075930Z.json. Screenshots: assets/screenshots/supplier-credit-note-ncf-20260519T075930Z-01-create-page.png through assets/screenshots/supplier-credit-note-ncf-20260519T075930Z-04-ncf-list.png.

Validation Notes