]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1981714: add settings to control owning library of auto-added LIDs
authorGalen Charlton <gmc@equinoxOLI.org>
Thu, 14 Jul 2022 16:14:36 +0000 (16:14 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 14 Jul 2022 16:14:36 +0000 (16:14 +0000)
commitef2202b174d7508b450993d03be31f52ff23ad4a
tree0f3994a023815e8d44915bf9d3acd741674276ec
parent39f04a6781f5add1c233a7309d98d84d0a7b99f6
LP#1981714: add settings to control owning library of auto-added LIDs

Previously, when line item copies/details/items where automatically created
because the provider's default copy count is non-zero, the owning library
of those line item copies was set to the workstation library. This patch
adds two new settings to tweak this behavior:

* How to set default owning library for auto-created line item items

Stategy to use to set default owning library to set when line item items
are auto-created because the provider's default copy count has been set.
Valid values are "workstation" to use the workstation library, "blank"
to leave it blank, and "use_setting" to use the "Default owning library
for auto-created line item items" setting. If not set, the workstation
library will be used.

* Default owning library for auto-created line item items

The default owning library to set when line item items are auto-created
because the provider's default copy count has been set. This applies if
the "How to set default owning library for auto-created line item
items" setting is set to "use_setting".

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Common.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1981714_default_lid_owning_library_setting.sql [new file with mode: 0644]