Workflow

How to Delete a Payment Row from a Simplified Invoice

Verified up to the save boundary. Demo run simplified-invoice-delete-payment-row-20260519T230007Z opened an FS payment modal, added a [NUM] Numerario payment row, deleted it with the row trash button, and confirmed no final simplified invoice was saved.

Evidence Summary

Route
/vendas/fs/create
Customer
[910] 100 Ouvidos Lda
Article
AI-DEMO-20260519-021105
Temporary document
55591
Evidence file
raw/playwright/workflows/latest-simplified-invoice-delete-payment-row.json

Verified simplified invoice payment row deletion workflow

When to Use This

Use this when the Payment modal has a wrong payment method, wrong amount, wrong inbox/cash box, or duplicate payment row before the simplified invoice is saved. Deleting the row returns the payment modal to an unpaid state.

Step-by-Step

  1. Create the Simplified Invoice [FS] and add the customer and document lines.
  2. Click End to open the Payment modal.
  3. Add a payment method if one is not already present. The verified run added [NUM] Numerario for 1.97.
  4. Find the payment row you want to remove.
  5. Click the red trash button on that payment row.
  6. Confirm that the payment row disappears from the modal.
  7. Confirm that the modal Total returns to 0 when no payment rows remain.
  8. Add the correct payment row, or cancel the payment modal if you are not ready to save.

Verified Behavior

CheckObserved result
Payment row before deletepayment&option=add created a NUM row with value 1.97, inbox [0] Caixa 0, estimated date 19/05/2026, and one red delete_payment button.
Delete actionClicking the row trash button submitted payment&option=delete with temporary document id 55591, nseq=1, and total 1.97.
Payment modal after delete#payment_form became empty, no .payment_form inputs remained, no .delete_payment buttons remained, and #payment_total became 0.
Save boundaryNo saveDocument request and no OKDOC response were captured.
Stock boundaryWarehouse 1 stock stayed at -30 because the FS was not finalized.

Backend Calls Observed

Action or endpointPurpose
payment&option=validateOpens or validates the payment modal before final save.
payment&option=addAdds a payment method row to the modal.
payment&option=deleteDeletes one payment row by sequence number and refreshes the modal HTML.

Raw evidence: raw/playwright/workflows/simplified-invoice-delete-payment-row-20260519T230007Z.json. Screenshots: assets/screenshots/simplified-invoice-delete-payment-row-20260519T230007Z-01-fs-line-before-payment.png through assets/screenshots/simplified-invoice-delete-payment-row-20260519T230007Z-03-payment-row-deleted.png.