]> git.koha-community.org Git - koha.git/commit
Bug 15531: Add support for standing orders
authorJesse Weaver <jweaver@bywatersolutions.com>
Mon, 11 Jan 2016 23:07:33 +0000 (16:07 -0700)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 13:07:17 +0000 (13:07 +0000)
commit9501ac2feffa8aca965fd24156560870df4065c3
tree7f6d6e0a7a4cefa5efe388dbe020cda05e1ecfa4
parent764fa320de24f3099712ad5cc5cf451ffb966e34
Bug 15531: Add support for standing orders

This allows creation of special baskets that include standing orders.
These orders do not have a known quantity (and may not have a known
price in advance). Upon receipt, the received items are split into a new
completed order.

Test plan:
  1) Run updatedatabase.pl.
  2) Run prove t/db_dependent/Acquisition/StandingOrders.t . (and the
     other Acquisition tests).
  3) Create a new basket, mark it as a standing order basket.
  4) Add an order to this basket, and notice that the quantity field is
     missing (and thus not required).
  5) Receive items for this order, and notice that the original order is
     unchanged. The new child order line should have the correct price
     and quantity information.

(Note: the QA tools output what seems to be a spurious spelling error
for Test::More's "isnt" in StandingOrders.t.)

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
14 files changed:
C4/Acquisition.pm
Koha/Acquisition/Order.pm
Koha/Schema/Result/Aqbasket.pm
acqui/addorder.pl
acqui/basket.pl
acqui/basketheader.pl
acqui/neworderempty.pl
installer/data/mysql/atomicupdate/bug_15531-add_is_standing_to_aqbasket.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketheader.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt
t/db_dependent/Acquisition/NewOrder.t
t/db_dependent/Acquisition/StandingOrders.t [new file with mode: 0644]