Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Jonathan Druart eed14b080d Bug 13001: Refactor VAT and price calculation - parcel page
Bug 12969 introduces a subroutine to centralize VAT and prices
calculation.
It should be use in the acqui/parcel.pl script.

Test plan:
1/ Create 4 suppliers with the different configurations
2/ Create a basket and create several orders
3/ Go on the parcel page
4/ You should see, on the "pending orders" table, the same prices as
before this patch.
Note that the prices are now correctly formated.

You could see one change for the supplier configuration 3 (1 0):
If the cost of the item is 82, discount 10% and vat 5%:
The "Order cost" = 140.58 instead of 140.57.
Indeed, before this patch, the order cost was wrong, now you should have
70.29*2 = 140.58

( before: 140.58 + 7.03 = 147.61
  now:    140.58 + 7.02 = 147.60 )

5/ Receive the items and return on the parcel page
Now the "Already received" table with the same prices as before this
patch.
Note some differences too:
- There was a td tag missing, the table was badly formated, it's now
fixed (column below the "Cancel receipt" link).
- The prices are now correctly formated.
- For the configuration 2 (1 1), if the cost of the item is 82, discount
  10% and vat 5%:

( before: 140.57 + 7.03 = 147.60
  now:    140.58 + 7.02 = 147.60 )

Note that 7.03 is the "correct" value, but on all other pages, 7.02 is
displayed.
To be consistent, we should display the same prices everywhere.

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>
2015-01-21 11:25:59 -03:00
..
csv
acqui-home.tt Bug 12989: Fix JS error 2014-11-11 14:16:10 -03:00
addorder.tt
addorderiso2709.tt Bug 12927: Problems with item information tab on acq order from staged page 2014-10-16 12:51:13 -03:00
ajax.tt
aqbasketuser_search.tt Bug 2889: template aqbasketusersearch add loop.odd 2014-10-15 17:59:05 -03:00
basket.tt Bug 13207: "Branch" on basket summary page should be "Library" 2014-11-14 11:44:08 -03:00
basketgroup.tt Bug 13487: Fix pagination for basketgroup 2015-01-07 20:12:56 -03:00
basketheader.tt
booksellers.tt Bug 13039 - Vendor search: sorting of "item count" and "biblio count" columns can be incorrect 2014-11-19 13:27:00 -03:00
cancelorder.tt Bug 7162: Remove "(Y)" and "(N)" from buttons text 2014-10-30 00:44:18 -03:00
histsearch.tt
invoice-files.tt
invoice.tt Bug 12059: Publisher column on invoice page always empty 2014-12-17 20:17:10 -03:00
invoices.tt Bug 12646: Display all invoices on the same page 2014-10-16 12:52:15 -03:00
lateorders.tt Bug 12505 - Acq claim: Show error message when no order is selected 2014-11-19 21:43:23 -03:00
modordernotes.tt
neworderbiblio.tt Bug 12565: Acq: Fix broken link in breadcrumbs 2014-12-19 15:12:14 -03:00
neworderempty.tt Bug 12839: aqbooksellers.gstreg is never used 2014-12-03 11:34:48 -03:00
neworderempty_duplicate.tt
newordersubscription.tt
newordersuggestion.tt Bug 12775: Suggestions should be ordered by anyone 2014-11-21 16:13:27 -03:00
ordered.tt
orderreceive.tt
parcel.tt Bug 13001: Refactor VAT and price calculation - parcel page 2015-01-21 11:25:59 -03:00
parcels.tt Bug 13220 - Shipment date not saved when creating an invoice which has a duplicated number 2014-11-14 11:02:36 -03:00
spent.tt
supplier.tt Bug 10402 follow-up: choose contacts for claims 2014-08-26 11:45:59 -03:00
transferorder.tt
uncertainprice.tt
z3950_search.tt Bug 13218: (RM followup) only scroll on actually variable stuff 2014-12-19 14:06:08 -03:00