Evidence Summary
- Create route
/vendas/ft/create- Final view
/vendas/ft/view/OTk5OTAxNjk0- Created invoice
999901694 / FT 9999/1694- Customer
[910] 100 Ouvidos Lda- Unit price
2.50- Evidence file
raw/playwright/workflows/latest-sales-invoice-line-unit-price.json
When to Use This
Use a line unit-price change when the invoice line should use a price different from the article's default price list value. This edit recalculates the line net value, VAT value, and invoice total.
Step-by-Step
- Open Sales / Invoice [FT], then click New document, or navigate directly to
/vendas/ft/create. - Select the customer and confirm the mandatory invoice fields. The verified run used customer
910, seller1, and employee1. - Add the article line. The verified run inserted article
AI-DEMO-20260519-021105, quantity1, warehouse1. - In the document lines table, edit the unit-price column. The stored line field is
PrecoUni. - Enter the new unit price. The verified run used
2.50. - Wait for the document-line grid to reload and confirm the line now holds
PrecoUni=2.5. - Review the recalculated line totals. In the verified run
TotalSIVAbecame2.5,ValorIVAbecame0.575, andTotalCIVAbecame3.075. - Click Save and Finish, then confirm Are you sure?.
- Verify the saved invoice view still shows
PrecoUni=2.5on the document line. - Verify the FT list total. The verified invoice list row displayed total and pending value
3.08.
Verified Behavior
| Check | Observed result |
|---|---|
| Before edit | The inserted line had PrecoUni=1.599, IVA=23, and TotalCIVA=1.96677. |
| Price edit | updateEditableTabDoc returned {"success":true,"msg":""} for campo=PrecoUni and value=2.50. |
| After grid reload | The line returned PrecoUni=2.5, TotalSIVA=2.5, ValorIVA=0.575, and TotalCIVA=3.075. |
| Final view | The saved FT line retained PrecoUni=2.5, IVA=23, ValorIVA=0.575, and TotalCIVA=3.075. |
| List state | The FT list returned FT 9999/1694 as ABR / Open with total and pending value 3.08. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades | Loads customer billing data after customer selection. |
loadArtigoReducido / insertLinhaTabDoc | Loads and inserts the invoice article line. |
updateEditableTabDoc | Updates the line field PrecoUni. |
DT_TabDocumento | Reloads the document-line grid after the unit-price edit. |
saveDocument | Saves the final FT invoice after confirmation. |
DT_List_Documentos | Verifies the invoice list row after save. |
Raw evidence: raw/playwright/workflows/sales-invoice-line-unit-price-20260519T204703Z.json. Screenshots: assets/screenshots/sales-invoice-line-unit-price-20260519T204703Z-01-create-page.png through assets/screenshots/sales-invoice-line-unit-price-20260519T204703Z-04-final-view.png.