]> git.koha-community.org Git - koha.git/commit
Bug 9822: Alert on adding an order to a basket if budget s exceeded
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 15 Mar 2013 10:20:45 +0000 (11:20 +0100)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 30 Oct 2013 15:10:11 +0000 (15:10 +0000)
commitea3b5aad217fa38d6f35738e9d049597bf1faa8a
tree6f2294b7d7efe0265c76655a5f8cdcca7e49ca70
parent5d7aa7e4356e0d014a31c43d4784c2a8d14d843f
Bug 9822: Alert on adding an order to a basket if budget s exceeded

2 DB fields are not used: aqbudgets.encumb and aqbudgets.expend.

This patch uses these fields in order to show a warning message if the
budget selected for an order has exceeded.

Test plan:
- Create a new active fund with at least 1 of both warning fields
  ('Warning at (%)' and 'Warning at (amount)').
- Create a new order for a basket with this new fund and a cost >
  warning amount defined for the fund (or using %).
- Save and check that a warning message appears
- Retry playing with all combinations of warning fields

Signed-off-by: Koha Team Lyon 3 <koha@univ-lyon3.fr>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
acqui/addorder.pl
admin/aqbudgets.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorder.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt