Evidence Summary
- Create route
/vendas/ft/create- Final view
/vendas/ft/view/OTk5OTAxNjg5- Created invoice
999901689 / FT 9999/1689- Customer
[910] 100 Ouvidos Lda- Currency
CodMoeda=DOL,Cambio=1.1- Evidence file
raw/playwright/workflows/latest-sales-invoice-currency.json
When to Use This
Use currency and exchange rate when the invoice needs a non-default currency context. In the verified demo, the selected currency and exchange rate persisted, while the visible totals and FT list total still displayed in euros.
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. - Open the invoice details area and locate Currency
#doc_CodMoedaand Exchange#doc_Cambio. - Choose the currency. The verified run selected
DOL/ DOLLAR T. - Enter the exchange rate. The verified run used
1.1. - Add at least one document line. The verified run inserted article
AI-DEMO-20260519-021105, quantity1, warehouse1. - Click Save and Finish, then confirm the Are you sure? dialog.
- Verify the saved invoice view still shows the selected currency and exchange rate.
Observed Currency Options
| Code | Label |
|---|---|
DOL | DOLLAR T |
EGP | Egipto |
EUR | Euros |
KZ | Kwanza |
MT | Meticais |
Pes | Peso Mexicano |
USD | Dollar |
Verified Behavior
| Check | Observed result |
|---|---|
| Default | The create form started with CodMoeda=EUR and Cambio=1. |
| Before save | The form held #doc_CodMoeda=DOL, label [DOL] DOLLAR T, and #doc_Cambio=1.1. |
| Final save payload | The nested saveDocument form payload submitted CodMoeda=DOL and Cambio=1.1. |
| Final view | The saved FT view retained DOL and exchange 1.1. |
| Visible totals nuance | The final view and FT list still displayed total 1.97 with euro formatting in the verified demo run. |
| List state | The FT list returned FT 9999/1689 as ABR / Open with total and pending value 1.97. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades | Loads customer billing data after customer selection. |
loadArtigoReducido / insertLinhaTabDoc | Loads and inserts the invoice article line. |
saveDocument | Saves the final FT invoice with CodMoeda=DOL and Cambio=1.1. |
DT_List_Documentos | Verifies the invoice list row after save. |
Raw evidence: raw/playwright/workflows/sales-invoice-currency-20260519T201838Z.json. Screenshots: assets/screenshots/sales-invoice-currency-20260519T201838Z-01-create-page.png through assets/screenshots/sales-invoice-currency-20260519T201838Z-03-final-view.png.