LP#1942220: add 'Disencumber' action for PO items
authorGalen Charlton <gmc@equinoxOLI.org>
Tue, 14 Dec 2021 02:01:26 +0000 (21:01 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 14 Dec 2021 02:01:26 +0000 (21:01 -0500)
commitf4552455a74cadf7fced1c2f89f273ef56bde4a2
treec318e92ccd31979015fb9d30a1543556ec006d72
parent9dd04cf543c6c9c7b5b19c0a5fb6523b8921554b
LP#1942220: add 'Disencumber' action for PO items

This adds a button to, upon user confirmation, change the
fund debit for a PO item to a zero-value encumbrance.

This button is available for a charge only if:

- the PO item is attached to a fund debit that has
  no invoice entries or items attached
- the PO is activated but not cancelled
- the fund debit is not an expenditure
- the debit amount is not already zero

The purpose of this button is to clean up encumbrances for
miscellaneous charges on invoiced POs that have not been
linked to invoice items.

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/acq/po/charges.component.html
Open-ILS/src/eg2/src/app/staff/acq/po/charges.component.ts
Open-ILS/src/eg2/src/app/staff/acq/po/disencumber-charge-dialog.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/po/disencumber-charge-dialog.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/acq/po/po.module.ts
Open-ILS/src/eg2/src/app/staff/acq/po/po.service.ts