Koha/koha-tmpl/intranet-tmpl/prog/en
Jonathan Druart 135f98ee62 Bug 12601: Add a foreign key for aqorders.budget_id
When creating an order, the fund value is mandatory but the DB structure
does not show this constraint.

The aqorders.budget_id field should be linked to aqbudgets.budget_id.

The updatedatabase.pl (entry 3.01.00.077) commented this constraint,
certainly for a retro compatibility reason.

Actually I found some cases (in production) where aqorders.budget_id is
set to "0". To add this constraint, we should add a temporary fund to
linked orphan orders.

Test plan:
0/ Verify it is not possible to create an order not linked to a fund via
the Koha interface.
1/ Using your SQL CLI (or equivalent), create or update 1+ orders and set
"0" in the budget_id field.
2/ Execute the updatedabase script.
3/ Verify that your order is linked to a new fund (which is linked to a
new budget).
4/ Verify the constraint has correctly been added (show create table
aqorders).

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2015-02-05 15:16:32 -03:00
..
css Bug 13040 [CSS follow-up] Improve exporter to allow multiple branch selections 2015-01-26 16:27:05 -03:00
data
includes Bug 10241 - Easy analyticals creates two 773 fields. Search/link from host to children is broken 2015-02-05 14:48:10 -03:00
js Bug 13537 - Focus should move to barcode after renewing via checkouts table 2015-01-14 21:30:02 -03:00
lib/yui Bug 13139 - Move treeview jQuery plugin outside of language-specific directory 2014-10-27 12:36:53 -03:00
modules Bug 12601: Add a foreign key for aqorders.budget_id 2015-02-05 15:16:32 -03:00
xslt Bug 13151 - staff marc preview not wrapping 2014-11-21 15:04:00 -03:00
columns.def Bug 11673: columns.def has swapped last and first name of alt contact 2014-08-07 16:17:21 -03:00