]> git.koha-community.org Git - koha.git/commit
Bug 18471 - Receiving order with unitprice greater than 1000 processing incorrectly
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 21 Apr 2017 14:10:37 +0000 (10:10 -0400)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 16 May 2017 06:07:36 +0000 (08:07 +0200)
commit81ccdf686944747dca34d24e49f3505e5fcc17c7
treebd9fe9f5a8f9db4f677a36a8bffc29bc34df17ff
parentf56d5b01a37f3ef5db091f6ed6ef88ffd9ca6628
Bug 18471 - Receiving order with unitprice greater than 1000 processing incorrectly

Receiving orders process the comma as a decimal point
Invoices are displaying incorrectly when formatting total

Test Plan:
1. Open a basket
2. Place an order for an item with price > 1000, $4367.00 for example
3. Close basket
4. Receive order
5. Note on orderreceive.pl the price is populate as "4,367.00"
6. Receive/Save
7. Note the 'Actual Cost' is now $4.00, verify db contains 4 as well
8. Cancel receipt
9. Receive again, this time enter price as "4367"
10. Receive/save
11. Note actual cost is correct
12. Finish receiving
13. Note invoice reads total as $4.00
14. Check db. price in aqorders is correct but displaying incorrectly
15. Apply this patch
16. Repeat step2 1. 14, note errors are fixed

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
acqui/finishreceive.pl
acqui/invoice.pl