]> git.evergreen-ils.org Git - working/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:24:38 +0000 (10:24 -0400)
commit81ce189f4623e62109bdc5bbcbcc9ba8c48e4dd5
tree33ea149969680de186b6ada09aaed90e5e4b49c9
parent65693ac32e4ccb82eee8aa7fc94f77668a912e81
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