Bug 41708 - Actual costs on Receiving isn't honoring OrderPriceRounding
Summary: Actual costs on Receiving isn't honoring OrderPriceRounding
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-26 09:14 UTC by Christian Stelzenmüller
Modified: 2026-01-26 09:14 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Stelzenmüller 2026-01-26 09:14:13 UTC
1. Create a Test Vendor with the following settings:
- Vendor is active
- List prices include tax
- Tax rate 7%
- Discount 5%

2. New basket with the test vendor (not a standing order), create items when placing an order. 

3. Add order, add from an existing record.

4. Select an item type, add item.

5. Select a fund.

6. Vendor price in the accounting details: 27.90

7. Save. Close basket.

8. Receive shipments
- Receive a new shipment, add a vendor invoice

9. Receive the placed order
a) no shipping costs
b) click on Receive at the item
c) The actual cost is 26.505. This is correct so far.
d) The imaginary invoice shows 26.50. So we delete the last 5 in 26.505.

10. click "Confirm."

11. In the now displayed overview "Already Received," the actual costs are shown as 26.51 instead of the 26.50 that the vendor charged.
(The same result is obtained if you explicitly overwrite the last 5 in step 9d with a 0, i.e., enter 26.500.)

12. Finish receiving.

13. Change the system preference “OrderPriceRounding“ to „Round“ or „Don’t round“, depending on what it was before.
Repeat all steps. The (faulty) result for the Actual cost should be the same (which shouldn’t be the case).