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:20:28 +0000 (10:20 -0400)
commitce774bd40ce04bea96c14c9d4a2d4fc9fdc26aa3
treec7fc7a71f06633e5a99f9da54a3e493cc8fa55af
parent59944d6c45a44a98d2ef07ad3494d464c6e7d512
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