]> git.evergreen-ils.org Git - Evergreen.git/commit
Fix LP1177916, Cannot activate PO which contains only direct charges
authorSteven Chan <schan@sitka.bclibraries.ca>
Sat, 15 Jun 2013 17:06:43 +0000 (13:06 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Fri, 12 Jul 2013 14:19:25 +0000 (10:19 -0400)
commit3f0d3f8edffbdd323f23c7a8b86b7689b43435a6
tree592220d815571e7952c5f8e51ca5338a5f5d388d
parenteb0b61fc74a27035237250e8b758ed2d33903d57
Fix LP1177916, Cannot activate PO which contains only direct charges
We add a safety check in the function
Application/Acq/Order.pm/create_lineitem_list_assets(), which is called
by create_po_assets(), which is the service call initiated by the user
trying to activate a PO.

The safety check prevents the function from processing if there are no
line items specified in the arguments.

P.S. It would be better to stop the sequence of events earlier in the
client, but that will need more coding, which can been done in another
fix.

Signed-off-by: Steven Chan <schan@sitka.bclibraries.ca>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm