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
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
- Open Purchases / Receipt chargeback sup. [REF], then click Create chargeback receipt sup., or navigate directly to
/compras/ref/create. - Confirm the page title is OG - Receipt chargeback sup. [REF], the route is
/compras/ref/create, and the form hasTipoOp=REF. - Select the Supplier. The verified run used supplier
100, AI Demo Supplier 20260519T030323Z, VAT590303236. - OfficeGest loads pending credit documents through
loadTabDocumentoReciboFandlistaTabDocumentoRecibo. The verified pending row wasNCF 9999/25, internal999900025, supplier referenceAI-NCF-20260519T075930Z, pending value1.51. - Select the pending document and click Liquidar. OfficeGest calls
changeEstadoReciboand moves the row from pending stateFto selected stateT. - Confirm the selected total. The verified REF showed total/value to pay
1.51. - Add the payment method. The verified run used [NUM] Numerario; the payment modal labeled the cash destination as Outbox and used total
1.51. - Click End.
- Confirm the Are you sure? dialog with OK.
- OfficeGest posts
saveDocumentRecibo. The verified response was999900005&=&OKDOC&=&. - Verify the REF list. Search
999900005on/compras/ref; the verified row showedREF 9999/5, supplier100, total1.51, validationN/D, and statusF/ Closed. - Verify the source credit note. Search
999900025on/compras/ncf; the verified source NCF changed toLIQ/ Finished withValorPago=1.51.
Verified REF Values
| Field | Value |
|---|---|
| REF internal number | 999900005 |
| Visible REF number | REF 9999/5 |
| Source document | 999900025 / 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 status | F, visible as Closed, validation N/D. |
| REF total | 1.51. The REF list reports ValorPago=0 for the REF itself. |
| Source result | Source NCF changed from open/unpaid to LIQ / Finished with ValorPago=1.51. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
DT_List_DocumentosF&table=recibosestf | Lists supplier receipt chargebacks with recibo=T, actualizacc=T, tipoop=REF, and tipoterc=F. |
DT_List_DocumentosF&table=NCredF | Checks the source supplier NCF before and after chargeback. |
loadTabDocumentoReciboF | Initializes 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=F | Loads pending supplier credit documents. The verified row was NCF 9999/25, total 1.51, paid 0, pending 1.51, due date 2026-05-20. |
changeEstadoRecibo | Moves the NCF row into the selected documents table. The verified response was {"success":true}. |
listaTabDocumentoRecibo&estado=T | Loads selected supplier documents to charge back. The selected row changed to state T with valorapagar=1.51. |
payment&option=add | Adds 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=validate | Validates the payment total before save. The verified payment total was 1.51, troco=0, and can_save=true. |
saveDocumentRecibo | Saves the REF. The verified payload included TipoOp=REF, CodTipoLanc=AccReciboEstF, CodTerc=100, id=48104, totAPagar=1.51, and isedit=F. |
payment&option=get_payment | Loads 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
- REF works from pending supplier credit documents: the verified source was a pending NCF row, not an article line.
- Direction differs from RF: REF loaded the receipt table with
debita=Fandcredita=T; RF used the opposite direction for supplier invoice payment. - Payment must match selected total: OfficeGest called
payment&option=validatebefore saving; the verified payment total and REF total were both1.51. - The source document is the key proof: verify both the REF row and the original NCF row. In the verified run, the NCF settlement state changed to
LIQwith paid value equal to the credit-note total.