Workflow

How to Cancel a Quotation

Verified end to end. Demo run cancel-quotation-orc-20260520T004120Z cancelled quotation ORC 9999/95, verified it in the ORC list as canceled, and checked that stock and order quantities stayed unchanged.

Evidence Summary

Quotation route
/vendas/orc/view/OTk5OTAwMDk1
List route
/vendas/orc
Workflow run
cancel-quotation-orc-20260520T004120Z
Cancelled quotation
999900095 / ORC 9999/95
Evidence file
raw/playwright/workflows/latest-cancel-quotation-orc.json

Verified quotation cancellation workflow

When to Use This

Use Cancel on a Quotation [ORC] when the proposal should no longer be active or convertible. In the verified run, OfficeGest kept the quotation searchable, changed it from ABR / Open to ANU / Canceled, and did not change physical stock or order quantities.

Cancellation is irreversible in the OfficeGest confirmation dialog. The verified ORC run did not show a cancellation-reason selector; the view script called btnDelete('Anular') and opened the irreversible confirmation directly.

Step-by-Step

  1. Open Sales / Quotation [ORC] and open the quotation view. The verified run used ORC 9999/95.
  2. Confirm the values before cancellation. Before cancellation, ORC 9999/95 was ABR / Open, total 1.97, ValorPago=0, pending value 1.97, and reference AI-ORC-20260520T004056Z.
  3. Click the Cancel action in the quotation action area.
  4. Confirm the warning dialog: Are you sure you want to cancel? This irreversible operation.
  5. Search the ORC list for the quotation number. The verified row returned estado=ANU, visible state Canceled, total 1.97, ValorPago=0, and pending value 1.97.
  6. Check stock/order quantities when the ORC includes article lines. Warehouse 1 stock stayed -41, qtd_enc_cliente stayed 5, and qtd_enc_forn stayed 2.

Verified Cancellation Values

FieldValue
Quotation internal number999900095
Visible quotation numberORC 9999/95
Customer[910] 100 Ouvidos Lda, VAT 509031862
Cancellation reasonNo reason selector was used in the verified run; the serialized form posted anulacao= empty.
ORC before cancellationABR / Open, total 1.97, ValorPago=0, pending value 1.97.
ORC after cancellationANU / Canceled, total 1.97, ValorPago=0, pending value 1.97.
Stock/order effectWarehouse 1 stock stayed -41; qtd_enc_cliente stayed 5; qtd_enc_forn stayed 2.

Backend Calls Observed

Action or endpointPurpose
deleteDocumentSubmits the ORC cancellation with num=999900095, tipoop=ORC, serialized form data including empty anulacao=, and tot_fin=1.97.
DT_List_Documentos&table=OrcamentoVerifies the ORC list before and after cancellation.
dt_list_recalc_stock_articles_lojasVerifies that stock and order quantities stayed unchanged after cancellation.

No podeAnularDoc permission check or Sel2_Select_v2&table=motivos_docs reason lookup was captured for the verified ORC cancellation.

Raw evidence: raw/playwright/workflows/cancel-quotation-orc-20260520T004120Z.json. Screenshots: assets/screenshots/cancel-quotation-orc-20260520T004120Z-01-orc-view-before-cancel.png through assets/screenshots/cancel-quotation-orc-20260520T004120Z-04-orc-list.png.