Acq invoices - Use build_invoice_impl() instead of creating directly collab/senator/acq-edi-inv-disencumber
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 20 Feb 2013 17:36:10 +0000 (12:36 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 21 Feb 2013 14:27:47 +0000 (09:27 -0500)
commitcc2c2b6684e3ae3029b7a9fa3c5771c9de37e6cf
tree3fd6f7263ab6de537da05308d834559e3a1792f7
parenteb314122ce02c76134ca0a8ca646d9b68610f8d0
Acq invoices - Use build_invoice_impl() instead of creating directly

In this way we use the same logic in both creating EDI invoices and
creating them from user input to do two things in particular:

1) always disencumber fund debits (used to be done in manual process only
and not EDI)

2) automatically uncancel the necessary canceled copies if you're
invoicing them anyway, since they must have shown up after all
(especiallly important since "cancelled" [sic] in our schema includes
copies merely back-ordered) (used to be done in EDI only and
not the manual process)

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/EDI.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Invoice.pm