Bug 40537 - Sum total cost in ordered / foreign currency on invoice summary page
Summary: Sum total cost in ordered / foreign currency on invoice summary page
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Aleisha Amohia
QA Contact: Testopia
URL:
Keywords:
Depends on: 32705
Blocks:
  Show dependency treegraph
 
Reported: 2025-07-29 02:22 UTC by Aleisha Amohia
Modified: 2025-08-15 09:29 UTC (History)
4 users (show)

See Also:
GIT URL:
Change sponsored?: Sponsored
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40537: WIP (1.90 KB, patch)
2025-08-01 02:22 UTC, Aleisha Amohia
Details | Diff | Splinter Review
Bug 40537: Show totals in invoice currencies after receiving orders (3.67 KB, patch)
2025-08-03 21:17 UTC, Aleisha Amohia
Details | Diff | Splinter Review
Before and after patch screenshot showing currency split-out in totals (302.81 KB, application/pdf)
2025-08-15 09:29 UTC, Bernard
Details

Note You need to log in before you can comment on or make changes to this bug.
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