Workflow

How to Create a Supplier Receipt Chargeback REF

Verified end to end. Demo run supplier-receipt-chargeback-ref-20260519T081501Z created supplier receipt chargeback REF 9999/5 / 999900005 for supplier [100] AI Demo Supplier 20260519T030323Z and settled source credit note NCF 9999/25.

Evidence Summary

Create route
/compras/ref/create
List route
/compras/ref
Final view
/compras/ref/view/OTk5OTAwMDA1
Workflow run
supplier-receipt-chargeback-ref-20260519T081501Z
Created chargeback
999900005 / REF 9999/5
Evidence file
raw/playwright/workflows/latest-supplier-receipt-chargeback-ref.json

Verified supplier receipt chargeback REF workflow

When to Use This

Use Receipt chargeback sup. [REF] to liquidate a pending supplier credit-note type document. In the verified path OfficeGest loaded a pending supplier NCF, moved it into the selected documents table, added an outbox payment line, saved the REF as closed, and marked the source NCF as finished/paid.

Step-by-Step

  1. Open Purchases / Receipt chargeback sup. [REF], then click Create chargeback receipt sup., or navigate directly to /compras/ref/create.
  2. Confirm the page title is OG - Receipt chargeback sup. [REF], the route is /compras/ref/create, and the form has TipoOp=REF.
  3. Select the Supplier. The verified run used supplier 100, AI Demo Supplier 20260519T030323Z, VAT 590303236.
  4. OfficeGest loads pending credit documents through loadTabDocumentoReciboF and listaTabDocumentoRecibo. The verified pending row was NCF 9999/25, internal 999900025, supplier reference AI-NCF-20260519T075930Z, pending value 1.51.
  5. Select the pending document and click Liquidar. OfficeGest calls changeEstadoRecibo and moves the row from pending state F to selected state T.
  6. Confirm the selected total. The verified REF showed total/value to pay 1.51.
  7. Add the payment method. The verified run used [NUM] Numerario; the payment modal labeled the cash destination as Outbox and used total 1.51.
  8. Click End.
  9. Confirm the Are you sure? dialog with OK.
  10. OfficeGest posts saveDocumentRecibo. The verified response was 999900005&=&OKDOC&=&.
  11. Verify the REF list. Search 999900005 on /compras/ref; the verified row showed REF 9999/5, supplier 100, total 1.51, validation N/D, and status F / Closed.
  12. Verify the source credit note. Search 999900025 on /compras/ncf; the verified source NCF changed to LIQ / Finished with ValorPago=1.51.

Verified REF Values

FieldValue
REF internal number999900005
Visible REF numberREF 9999/5
Source document999900025 / NCF 9999/25, supplier reference AI-NCF-20260519T075930Z.
Supplier[100] AI Demo Supplier 20260519T030323Z, VAT 590303236
Route/list identity/compras/ref, table recibosestf, recibo=T, actualizacc=T, tipoop=REF, tipoterc=F.
REF statusF, visible as Closed, validation N/D.
REF total1.51. The REF list reports ValorPago=0 for the REF itself.
Source resultSource NCF changed from open/unpaid to LIQ / Finished with ValorPago=1.51.

Backend Calls Observed

Action or endpointPurpose
DT_List_DocumentosF&table=recibosestfLists supplier receipt chargebacks with recibo=T, actualizacc=T, tipoop=REF, and tipoterc=F.
DT_List_DocumentosF&table=NCredFChecks the source supplier NCF before and after chargeback.
loadTabDocumentoReciboFInitializes the supplier receipt temporary table. REF used supplier 100, date 19/05/2026, temp id 48104, tipoop=REF, debita=F, and credita=T.
listaTabDocumentoRecibo&estado=FLoads pending supplier credit documents. The verified row was NCF 9999/25, total 1.51, paid 0, pending 1.51, due date 2026-05-20.
changeEstadoReciboMoves the NCF row into the selected documents table. The verified response was {"success":true}.
listaTabDocumentoRecibo&estado=TLoads selected supplier documents to charge back. The selected row changed to state T with valorapagar=1.51.
payment&option=addAdds the REF payment row. The verified request used compras=T, entidade=100, modopagamento=NUM, modobase=N, total=1.51, edit=F, and tipoop=REF.
payment&option=validateValidates the payment total before save. The verified payment total was 1.51, troco=0, and can_save=true.
saveDocumentReciboSaves the REF. The verified payload included TipoOp=REF, CodTipoLanc=AccReciboEstF, CodTerc=100, id=48104, totAPagar=1.51, and isedit=F.
payment&option=get_paymentLoads saved payment details on the REF view with num=999900005, tipoop=REF, compras=T, and editable=T.

Raw evidence: raw/playwright/workflows/supplier-receipt-chargeback-ref-20260519T081501Z.json. Probe evidence: raw/playwright/workflows/supplier-receipt-chargeback-ref-probe-20260519T081205Z.json and raw/playwright/workflows/supplier-receipt-chargeback-ref-supplier-probe-20260519T081309Z.json. Screenshots: assets/screenshots/supplier-receipt-chargeback-ref-20260519T081501Z-01-create-page.png through assets/screenshots/supplier-receipt-chargeback-ref-20260519T081501Z-05-ref-list.png.

Validation Notes