]> git.koha-community.org Git - koha.git/commit
Bug 24446: Update StockRotationItem to use daterequested
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 24 Mar 2020 07:46:10 +0000 (07:46 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Mar 2021 14:36:13 +0000 (15:36 +0100)
commitaca8b71364f549d939fdde6a234419d7ba86fe25
treeb9cfa30f689cd58531261406fc07c88b5086e197
parentcf8ce2aa13ba2c136e9871465bb9d0f087d41ec4
Bug 24446: Update StockRotationItem to use daterequested

This patch updates the stockrotation functionality to utilise the new
branchtransfers.daterequested field to more accurately track the state
of stockrotation transfers.

We also opt to start using the new Koha::Item and Koha::Item::Transfer
methods to achieve this goal.

Test plan
0/ Setup stockrotation and configure some rotas and assign items to
them.
1/ Run the stockrotation cronscript
2/ Check the database for branchtransfers initiated by stockrotation and
confirm that that now populate the daterequested field and not the
datesent.
3/ Run the stockrotation tests and verify they pass
4/ Signoff

Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/StockRotationItem.pm