Koha/acqui
Nick Clemens 7c734c6903
Bug 14680: Always subtract discount from price to calculate estimated cost
This patch simply removes a discrepancty where when a discount is provided on the order form
we add the discount to the price, and when it comes form the vendor we subtract the discount.

Discounts should always descrease the estimated cost

To test:
 0 - Have a vendor with a discount of 10% specified
 1 - Export a record from your Koha
 2 - Stage the record for import and match on biblionumber
 3 - Add to a basket in acq from the staged file
 4 - Select the title, and set order price to $10 and do not fill the discount field
 5 - Add the order - note $10 RRP and $9 actual/budgeted cost
 6 - Repeat 2&3
 7 - Select the tile, set price $10 and discount 50%
 8 - Add the order - note $20 RRP and $10 actual/budgeted cost! FAIL
 9 - Apply patch, restart all
10 - Repeat 2-7
11 - Add the order, note $10 RRP and $5 actual.budgeted cost

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-07-18 11:17:50 -03:00
..
acqui-home.pl Bug 29287: Add child funds to display of parent funds on acqui home 2022-03-01 22:47:46 -10:00
addorder.pl
addorderiso2709.pl Bug 14680: Always subtract discount from price to calculate estimated cost 2022-07-18 11:17:50 -03:00
ajax-getauthvaluedropbox.pl
basket.pl Bug 31001: Fix "CGI::param called in list context" warning in basket.pl 2022-07-06 18:29:32 -03:00
basketgroup.pl Bug 16258: Add a syspref to govern EDIFACT functionality 2022-04-13 15:55:38 +02:00
basketheader.pl
booksellers.pl Bug 28082: Add acquisitions toolbar to vendors on vendor search page 2022-05-10 15:17:17 -10:00
cancelorder.pl Bug 29785: Rename Koha::Object->message with ->object_messages 2022-02-09 22:01:36 -10:00
check_budget_total.pl
check_uniqueness.pl
duplicate_orders.pl
edi_ean.pl
edifactmsgs.pl
edimsg.pl
finishreceive.pl Bug 29771: Remove trivial cases 2022-03-08 23:03:34 -10:00
histsearch.pl
invoice-files.pl
invoice.pl
invoices.pl
lateorders-export.pl
lateorders.pl
modordernotes.pl
neworderempty.pl
newordersubscription.pl
newordersuggestion.pl Bug 23991: Move SearchSuggestion to Koha::Suggestions 2022-06-27 12:30:28 -03:00
ordered.pl
orderreceive.pl
parcel.pl
parcels.pl
showorder.pl
spent.pl
supplier.pl Bug 28082: Add acquisitions toolbar to vendors on vendor search page 2022-05-10 15:17:17 -10:00
transferorder.pl
uncertainprice.pl
updatesupplier.pl
z3950_search.pl