Bug 37938

Summary: Budgeted cost in new order form isn't honoring OrderPriceRounding
Product: Koha Reporter: Victor Grousset/tuxayo <victor>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36049
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Victor Grousset/tuxayo 2024-09-17 02:26:29 UTC
To test:
1) Enable syspref OrderPriceRounding
2) in acquisitions, search vendors, pick one, look for an existing basket
3) Start creating an order line with vendor price 18.90 and a discount of 5 %.
   (don't submit)
4) "Budgeted cost" is 17.95. => this is wrong, it should be 17.96
Comment 1 Victor Grousset/tuxayo 2024-09-17 02:44:06 UTC
This is calculated in JS so the fix is different from bug 36049 which is why it's better to do it separately.

See bug 36049 comment 0 and bug 36049 comment 6 for leads.