]> git.koha-community.org Git - koha.git/commit
Bug 27203: Calculate tax based on ecost if unitprice not set
authorNick Clemens <nick@bywatersolutions.com>
Thu, 17 Dec 2020 12:21:32 +0000 (12:21 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 12 May 2021 15:09:55 +0000 (17:09 +0200)
commita103cdbf1fddc41597ef8b0632fbdd475bad439a
tree62962356db5c34fe940315580aacb05cc18c84f4
parent6eb3790ff489bd9a012960d5abdd5d1fe6e2b20d
Bug 27203: Calculate tax based on ecost if unitprice not set

There is code in populate_order_with_prices that is intended to use ecost over unitprice,
it just doens't seem to be working.

Making it more explicit seems to take care of the issue.

To test:
1 - Create a basket
2 - Add an order line, don't set 'Actual cost: ', but use vendor price
and a discount.
3 - Save
4 - Display all columns, 'Actual cost tax inc.' are GST columns aren't set.
5 - Apply batch
6 - Redo 1,2, 3
7 - Display all columns, GST is calculated correctly, unitprice remains 0.

Signed-off-by: Marjorie <marjorie.barry-vila@collecto.ca>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 66d26fa301a8e5375998da513a0a18d21974ce94)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Acquisition.pm