Bug 40537

Summary: Sum total cost in ordered / foreign currency on invoice summary page
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: AcquisitionsAssignee: Aleisha Amohia <aleisha>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: bernard.scaife, clemens.tubach, katrin.fischer, michaela.sieber
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: Sponsored
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 32705    
Bug Blocks:    
Attachments: Bug 40537: WIP
Bug 40537: Show totals in invoice currencies after receiving orders
Before and after patch screenshot showing currency split-out in totals

Description Aleisha Amohia 2025-07-29 02:22:30 UTC
On the invoice summary, the individual prices in the foreign currency are now shown, however there is no total for the foreign currency prices.
Comment 1 Aleisha Amohia 2025-08-01 02:22:44 UTC
Created attachment 184968 [details] [review]
Bug 40537: WIP
Comment 2 Aleisha Amohia 2025-08-03 21:17:29 UTC
Created attachment 185077 [details] [review]
Bug 40537: Show totals in invoice currencies after receiving orders

This patch improves the invoice page to also display the total price for received orders in the currency of the invoice. This helps libraries to quickly confirm that invoices match up with what is expected and stored in Koha.

To test:

1. Go to Acquisitions and create a vendor and basket if you don't have one already
  In KTD, go to: http://localhost:8081/cgi-bin/koha/acqui/basket.pl?basketno=1
2. Add a few orders to the basket. Mix up the currencies of the order i.e. add a few orders in GPB, a few in CAD.
3. Close the basket
4. Click the button to Receive shipments
5. Receive your orders and use the invoice currency to receive
  a. Click Receive for your order
  b. Check the checkbox to include the order in the receipt
  c. On the right side of the pop-up, check the checkbox to Change currency
  d. Enter the invoice price in the foreign currency
  e. Submit
6. Once all orders are received, click the button to Finish receiving
7. Scroll down to the bottom of the invoice details. Confirm all invoices are totalled as normal, plus there is extra information under the Invoice Price column which shows the totals in the invoice currency.

Sponsored-by: Auckland University of Technology
Comment 3 Bernard 2025-08-15 09:28:38 UTC
This patch works as designed. See attached screenshot which shows results at step 7 from before and after patch applied.
Comment 4 Bernard 2025-08-15 09:29:26 UTC
Created attachment 185438 [details]
Before and after patch screenshot showing currency split-out in totals