Bug 33863: Update values in data that will be saved
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 11 Jul 2023 08:21:09 +0000 (10:21 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jul 2023 11:36:04 +0000 (12:36 +0100)
commit06236c936fa0265c958cda84e11add8d6c5ec225
treec8ef70c8ba751c536b4e9da8f326affef0462a10
parentf12100856af6c9f86122131e0658c0158e8d8aa3
Bug 33863: Update values in data that will be saved

We are not saving the values of the input but a representation of the
form, contains in $("#order_edit").data('row');

To acchieve that it's preferable to reuse _update_unitprice and call it
when #change_currency is modified.

Some code cleaning slipped into the patch, for readability purpose.

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e3a7202363d0033a9c29b1143fc47c8c631f269f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt