Fix LP1177916, Cannot activate PO which contains only direct charges user/kmlussier/lp1177916
authorSteven Chan <schan@sitka.bclibraries.ca>
Sat, 15 Jun 2013 17:06:43 +0000 (13:06 -0400)
committerKathy Lussier <klussier@masslnc.org>
Thu, 11 Jul 2013 14:04:40 +0000 (10:04 -0400)
commit435e4d9275adcc53db99765f0936315bc97ac5fa
treed6607163e4413428ccf95c83b0b05445e3b95866
parentaac2c3dec4b0d5f780e2bfc8533f685f18836dff
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm