[Koha-bugs] [Bug 13324] The fund values must be based on tax included values

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 12 19:39:31 CET 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13324

Francois Charbonnier <francois.charbonnier at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |francois.charbonnier at inlibr
                   |                            |o.com

--- Comment #3 from Francois Charbonnier <francois.charbonnier at inlibro.com> ---
I tested this patch on BibLibre's sanbox 17.

I used 4 different setups for the vendors :

Set up 1 = List prices INCLUDE TAX + Invoice prices INCLUDE TAX
Set up 2 = List prices EXCLUDE TAX + Invoice prices EXCLUDE TAX
Set up 3 = List prices INCLUDE TAX + Invoice prices EXCLUDE TAX
Set up 4 = List prices EXCLUDE TAX + Invoice prices INCLUDE TAX

Then I set up 8 different funds to test the calculation on the fund level and
on the child fund level.

Under each vendor, I added two baskets. Each with 1 order which would use one
of the 8 funds I created.

Vendor 1 = List prices INCLUDE TAX + Invoice prices INCLUDE TAX
- basket 1 with order on a level 1 fund
- basket 2 with order on a level 2 fund

Vendor 2 = List prices EXCLUDE TAX + Invoice prices EXCLUDE TAX
- basket 1 with order on a level 1 fund
- basket 2 with order on a level 2 fund

Vendor 3 = List prices INCLUDE TAX + Invoice prices EXCLUDE TAX
- basket 1 with order on a level 1 fund
- basket 2 with order on a level 2 fund

Vendor 4 = List prices EXCLUDE TAX + Invoice prices INCLUDE TAX
- basket 1 with order on a level 1 fund
- basket 2 with order on a level 2 fund


After ordering and receiving each order, I checked the funds levels on two
pages :
* aqbudgets.pl (admnistration)
* acqui-home.pl (acquisition's home page)

Each time, the calculation were good. Except for one, which is not linked to
the calculation itself but on the approxination.

For the vendor 3 (List prices INCLUDE TAX + Invoice prices EXCLUDE TAX) :
I ordered two 10euros book. The price is taxe included. So I should paid
20euros

When I received the books, the price is taxe excluded. The approximation is on
two numbers which, in the end, lead the total cost to be 19.99 euros tax
included where I expected 20 euros.

For sure, it's not much, probably acceptable but I would like to know if there
is an easy fix. What about managing more digits after the coma in the database
and display just two?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list