Workflow

How to Handle the Receipt No Lines Error

Verified end to end. Demo run receipt-no-documents-validation-20260519T191736Z selected customer 910 on a Receipt [R], left the Documents grid empty, clicked End, captured the visible ErrorNo lines toast, and confirmed no saveDocumentRecibo request was submitted.

Evidence Summary

Route
/vendas/r/create
Customer
[910] 100 Ouvidos Lda
Receipt state
No documents selected in the Documents / DocsAPagar grid
Evidence file
raw/playwright/workflows/latest-receipt-no-documents-validation.json

Verified receipt no-documents validation flow

What It Means

A receipt is not created from article lines. It must contain at least one pending customer document moved into the Documents grid. If the customer is selected but no document is selected for settlement, OfficeGest blocks the save with ErrorNo lines.

How to Fix It

  1. Stay on the receipt create page after the error.
  2. Confirm the correct customer is selected in Customer.
  3. Look at Outstanding documents for unpaid invoices or other pending documents.
  4. Select the source document to settle. In verified receipt flows, this calls changeEstadoRecibo and moves the row into Documents.
  5. Confirm Documents contains the expected document and the value to pay is correct.
  6. Add the payment method and amount.
  7. Click End again and confirm the save dialog.

Verified Behavior

CheckObserved result
Before saveCustomer 910 selected; Documents grid had zero rows.
Visible validationToast showed ErrorNo lines.
NavigationOfficeGest stayed on /vendas/r/create.
Final save requestNo saveDocumentRecibo request was submitted.
Correct next actionMove at least one pending document into Documents, then add payment and save.

Raw evidence: raw/playwright/workflows/receipt-no-documents-validation-20260519T191736Z.json. Screenshots: assets/screenshots/receipt-no-documents-validation-20260519T191736Z-01-customer-no-documents-selected.png and assets/screenshots/receipt-no-documents-validation-20260519T191736Z-02-no-documents-validation.png.