Koha/acqui
Jonathan Druart 7e89301ab2 Bug 13321: Fix the prices calculation method
Well, we have finally arrived here \o/

The method where the prices are calculated uses the equations listed on
the wiki page (http://wiki.koha-community.org/wiki/GST_Rewrite_RFC).

The ecost is calculated from the rrp (using the discount and the tax
rate). That's why we removed the ability to edit this value.

That's why we remove the ability to edit the ecost on ordering in a
previous commit (bug 12840).

The total is now calculated in the scripts. That's why this patch
removes lines in the test file.

In C4::Acquisition::populate_order_with_prices, the calculation on
receiving must depend on the 'invoiceincgst' supplier parameter, and not
listincgst (which is used on ordering).
It also removes the rounding errors, now we store "exact" values in DB
(10^-6).
The values will be displayed using the Price TT plugin it will round the
values for us.

Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>

Signed-off-by: Francois Charbonnier <francois.charbonnier@inlibro.com>

Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Sonia Bouis <koha@univ-lyon3.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-10-28 13:46:07 +00:00
..
pdfformat Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
acqui-home.pl Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
add_user_search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
addorder.pl Bug 13321: use the populate_with_prices where needed 2016-10-28 13:46:06 +00:00
addorderiso2709.pl Bug 13321: use the populate_with_prices where needed 2016-10-28 13:46:06 +00:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 13321: Fix the prices calculation method 2016-10-28 13:46:07 +00:00
basketgroup.pl Bug 13321: Fix the prices calculation method 2016-10-28 13:46:07 +00:00
basketheader.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
booksellers.pl
cancelorder.pl
check_budget_total.pl
check_duplicate_barcode_ajax.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
check_uniqueness.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
edi_ean.pl
edifactmsgs.pl Bug 17081 Incorrect comparison operator used in edifactmsgs.pl 2016-08-10 14:03:37 +00:00
edimsg.pl
finishreceive.pl Bug 13321: Fix the prices calculation method 2016-10-28 13:46:07 +00:00
histsearch.pl Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
invoice-files.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
invoice.pl Bug 13321: Fix the prices calculation method 2016-10-28 13:46:07 +00:00
invoices.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
lateorders-export.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
lateorders.pl Bug 5260 - Add option to send an order by e-mail to the acquisition module 2016-10-28 11:52:25 +00:00
modordernotes.pl
neworderbiblio.pl
neworderempty.pl Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
newordersubscription.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
newordersuggestion.pl
ordered.pl
orderreceive.pl Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
parcel.pl Bug 13321: Fix the prices calculation method 2016-10-28 13:46:07 +00:00
parcels.pl
spent.pl
supplier.pl Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
transferorder.pl
uncertainprice.pl
updatesupplier.pl Bug 13321: Rename variables 2016-10-28 13:45:59 +00:00
z3950_search.pl Bug 15801: Koha::BiblioFrameworks - Remove C4::Koha::getframeworks 2016-10-28 12:04:59 +00:00