]> git.koha-community.org Git - koha.git/commit
Bug 33783: (bug 8179 follow-up) Populate actual cost with ecost during receiving...
authorNick Clemens <nick@bywatersolutions.com>
Fri, 26 May 2023 12:50:41 +0000 (12:50 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 31 May 2023 08:17:58 +0000 (10:17 +0200)
commitde31d916388647ca1ba30711a047c8eadf1e744f
tree2489e8399471945c3e918c1af66969c487777c4f
parent9c565eff1357c2fdf900f006a17fa62fd4f2f9ee
Bug 33783: (bug 8179 follow-up) Populate actual cost with ecost during receiving if not set

This restores behavior prior to 8179 to use the estimated cost when receiving if the
actual cost is not set.

We set the unitprice in the table row so that it will be used when editing and will be saved even if not adjusted

To test:
1 - Add some orders to a basket, do not set actual cost field
2 - Close basket, receive orders
3 - Note actual cost field is blank
4 - Cancel receipt
5 - Apply patch
6 - Receive again
7 - Note actual cost is populated
8 - Complete receipt and confirm actual cost correctly saved

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt