Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Jose-Mario Monteiro-Santos c7f47ea36a Bug 18723: Change dot into comma
This fixes the regression that multiplies the amount entered by 100
when CurrencyFormat is set to FR. It replaces the last dot with a
comma before dealing with the value of ActualCost and ReplacementCost.

Test Plan:
a)Replicate the issue:
    0- Set CurrencyFormat to FR
    1- Go to Acquisitions
    2- Search for a Vendor
    3- Click on "New basket"
    4- Give basket a name and click "Save"
    5- Click on "Add to basket"
    6- Add an order through preferred method
    7- In Accounting details, enter a vendor price with dot decimal (i.e. 19.44)
    8- Save your order line
    9- Click on "Close this basket"
    10- Confirm closing of basket by clicking on "Yes, close"
    11- Click on "Receive shipment"
    12- Enter an invoice number and click "Next"
    13- Click on "Receive" to the right of your order
    14- In Accounting details, notice the Actual cost is written with a decimal dot.
    15- Change the Actual cost, using a dot decimal (i.e 20.99)
    16- Receive the order
    17- Click on "Save"
    18- In "Already received" notice the price is multiplied by 100 (i.e. 2099,00)
    19- Click on "Cancel receipt"
    20- Click on "Receive" to the right of your order
    21- In Accounting details, change the Actual cost, using a comma decimal (i.e. 20,99)
    22- Receive the order
    23- Click on "Save"
    24- In "Already received", notice the price is correct.
b)Apply the patch
c)Test the patch:
    1- Click on "Cancel receipt"
    2- Click on "Receive to the right of your order
    3- Change the Actual cost/Replacement cost, using a dot decimal (21.99)
    4- Receive the order
    5- Click on "Save"
    6- Notice that the Actual cost and the Replacement cost use commas
    7- Change the Actual cost, using a comma decimal (21,99)
    8- Click on "Save"
    9- In "Already received", notice the price is still correct.

Signed-off-by: Victor Grousset <victor.grousset@biblibre.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-02-08 20:38:16 +00:00
..
csv
tables
acqui-home.tt
addorder.tt
addorderiso2709.tt Bug 21989: JS error in "Add orders from MARC file" - addorderiso2709.pl 2019-01-28 11:15:14 +00:00
ajax.tt
basket.tt Bug 21751: (follow-up) Correction to selectors 2019-02-04 14:13:35 +00:00
basketgroup.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
basketheader.tt
booksellers.tt
cancelorder.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
duplicate_orders.tt Bug 15184: Fix TT filter 2018-11-08 15:53:00 +00:00
edi_ean.tt
edifactmsgs.tt
edimsg.tt
histsearch.tt Bug 15184: Prepare the ground - Move order search filters 2018-11-08 15:52:56 +00:00
invoice-files.tt
invoice.tt
invoices.tt
lateorders.tt Bug 22007: Remove html filters when KohaDates called with a parameter 2019-01-02 20:42:18 +00:00
modordernotes.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
neworderbiblio.tt Bug 16939: Making all 'add to basket' actions buttons 2019-01-02 20:27:28 +00:00
neworderempty.tt Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5 2019-01-11 13:24:43 +00:00
neworderempty_duplicate.tt
newordersubscription.tt Bug 16939: Making all 'add to basket' actions buttons 2019-01-02 20:27:28 +00:00
newordersuggestion.tt
ordered.tt Bug 21282: Sync ordered and spent values with acqui home 2018-11-13 21:06:44 +00:00
orderreceive.tt Bug 18723: Change dot into comma 2019-02-08 20:38:16 +00:00
parcel.tt Bug 20865: Removed space before : on order receive filters 2019-01-17 02:23:28 +00:00
parcels.tt
showorder.tt
spent.tt Bug 21282: Sync ordered and spent values with acqui home 2018-11-13 21:06:44 +00:00
supplier.tt Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
transferorder.tt
uncertainprice.tt Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
z3950_search.tt Bug 22122: Rearranged inputs from a patrons basket in Acquisitions. 2019-01-18 20:44:19 +00:00