Bug 12969: Add a subroutine to calculate VAT and prices
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 19 Sep 2014 15:09:15 +0000 (17:09 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 4 Jan 2015 15:45:18 +0000 (12:45 -0300)
commita19958ee2c2e76d0eb6033ed37900099eb7aa028
tree5f8ea8cc51de02239542f232c8f5df77f9dcd54a
parente525f510328a06ebaa64004357aaf75808c3d63f
Bug 12969: Add a subroutine to calculate VAT and prices

This patch adds a new subroutine populate_order_with_prices in the
C4::Acquisition module.

Its goal is to refactore the VAT and prices calculation into Koha.
All scripts will use this subroutine.

Test plan:
Verify that the prices in t/Prices.t are consistent with the values
listed in the file "Prices and VAT calculation - before" submit on bug
12964.
Verify that
  prove t/Prices.t
returns green

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Acquisition.pm
Koha/Number/Price.pm
t/Prices.t [new file with mode: 0644]