LP#1942220: various updates to business logic
authorGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Dec 2021 23:40:21 +0000 (18:40 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 29 Aug 2022 22:43:58 +0000 (22:43 +0000)
commit18a191b328cf654f316c48bcba74a8aed8785606
treed659c3650aeae6859db7299b601a4ae00140bc89
parentb81c426b9eabfb64cdd639f2420ddd8d88fad90e
LP#1942220: various updates to business logic

* set 024 ind1 correctly (i.e., to '1') when applying UPC as order
  identifier

* add flesh_po_items_further option to PO retrieval

  This fleshes in any fund debits and debit invoice items associated
  with PO direct charges

* add open-ils.acq.po_item.disencumber method

  This method disencumbers a PO item by setting its fund debit's amount
  to zero. Note that this can be done only for encumbrances; if the
  debit is an expenditure, it cannot be changed.

* add flesh_li_details_receiver to LI retrieval

* add two additional fleshing options to LI retrieval

  Specifically, flesh_copy_location and flesh_call_number. These take
  effect only when flesh_copies is also true and are used to further
  flesh values of items attached to line item details.

* remove cancel reason if last LID of LI is received

  Otherwise, a sequence where a line item was cancelled but one of
  its items was received would have the LI end up in a received
  state but with a cancel reason.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Financials.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Lineitem.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm