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.
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.
Galen Charlton [Mon, 13 Dec 2021 16:04:46 +0000 (11:04 -0500)]
LP#1942220: do client-side sorting for all attributes
This adds client-side sorting for title, author, and publisher
using Intl.Collator to achieve case-insenstive, punctuation-ignoring,
and numeral-sensitive sorting.
Galen Charlton [Thu, 9 Dec 2021 21:45:24 +0000 (16:45 -0500)]
LP#1942220: change how linking to Dojo interfaces is handled
This patch takes out the notion that the Angular acquisitions
interface is experimental in favor of a different setting that
controls whether or not the Angular PO summary links to the
legacy PO interface.
IOW, this change pushes the user towards using the new interfaces
and dipping into the old ones only one necessary.
Additional links (e.g., to the legacy LI worksheet page) could be
readily added as needed.
Galen Charlton [Thu, 9 Dec 2021 19:04:33 +0000 (14:04 -0500)]
LP#1942220: remove the 'Acquisitions (Experimental)' menu
Rather than treating Angular Acquisitions as a purely experimental
interface, treat it as the new default that has an option to
link back to the Dojo interfaces.
- OU selector now limited to locations where user has
CREATE_PICKLIST or CREATE_PURCHASE_ORDER
- distribution formula combobox now sorts by name
- circ modifier combobox now supports empty click
Galen Charlton [Tue, 7 Dec 2021 21:51:09 +0000 (16:51 -0500)]
LP#1942220: format fund labels correctly in the batch copy form
While caching the selected funds is good to reduce unnecessary
pcrud queries, doing so breaks formatting the fund label
in the comboboxes consistently without this patch.
- also tidy up when the action is avaialble
- also tidy up handling of selected LIs post-deletion
- also reload the page only once
- add TODO about decreasing parallelism
- TODO: toss up spinner?
- add recordType parameter so that wording can be adjusted
based on what is to be cancelled
- expand the wording to make it (hopefully) crystal clear
what to do
- show all cancel reasons upon combobox click
Galen Charlton [Tue, 30 Nov 2021 16:54:42 +0000 (11:54 -0500)]
LP#1942220: tweak LI actions around viewing/updating items
- Added "Update Barcodes" as a new LI action that opens the
item attributes editor
- Changed the "Holdings Maintenance" LI action to open the
record holdings view page rather than spawning the item
attributes editor, making it match the behavior of the
"Holdings Maint." LI action in the Dojo interface.
Galen Charlton [Tue, 30 Nov 2021 14:35:00 +0000 (09:35 -0500)]
LP#1942220: link to the Angular PO interface acq search results
Note that this does /not/ follow the setting to display
links to the "experimental" Angular acquisitions interfaces; my
intention is to replace that with a different setting that,
when enabled, provides links to the Dojo interfaces from the
corresponding Angular interfaces.
Bill Erickson [Wed, 14 Jul 2021 14:52:44 +0000 (10:52 -0400)]
LPLP1929741 Optional experimental Acq; seed data
Adds and org setting and a workstation setting to 1) enable display of
experimental Angular ACQ UI's and 2) enable display of links to the
experimental UI's from search results.
Display a new menu entry "Acquisitions (Experimental)" when the org
setting is enabled. This menu contains "Create Purchase Order" only for
now.
Copy seed data from upgrade file to seed data file.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Bill Erickson [Thu, 24 Jun 2021 15:30:24 +0000 (11:30 -0400)]
LP1929741 Welcome page navigates to staff w/ href
When a route failure occurs, etc. and the user is sent back to the
Welcom to Webby page, make the link to the staff page an href instead of
a routerLink, so Angular is forced to load new route data.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Bill Erickson [Tue, 22 Jun 2021 15:43:05 +0000 (11:43 -0400)]
LP1929741 Batch of PO fixes
* Avoid clearing the owning library during batch edit copy operations
* Leverage combobox startsWith for distribution formulas
* Disable the order ident selector so it cannot be modified after a PO
is activated
* Add some icons to the PO actions for more eye-grabbiness.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Bill Erickson [Mon, 14 Jun 2021 21:43:15 +0000 (17:43 -0400)]
LP1929741 ACQ order ident indicate multiples
When multiple order identifer values (e.g. ISBN's) exist on a lineitem,
the number of options is now displayed just to the left of the
identifier selector.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Bill Erickson [Mon, 14 Jun 2021 21:35:21 +0000 (17:35 -0400)]
LP1929741 Apply default lineitem order identifers
Apply a default order identifier to lineitems instead of leaving the
selector blank. Ensure the value that will display in the selector
matches what's in the database by setting the value on load when needed.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Bill Erickson [Fri, 11 Jun 2021 15:29:47 +0000 (11:29 -0400)]
LP1929741 Bundle of ACQ bug fixes
* Distribution formula combobox now displays entries on click
* Ditto Charge Type combobox
* Items now vanish when deleted
* Estimated amount, etc. update when items are added/deleted
* Lineitem action links match order of previous interface.
* PO dry run checks now fire after a brief record is added
* PO activation is blocked if an item has no owning lib.
Signed-off-by: Bill Erickson <berickxx@gmail.com> Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>