Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 13346: OpacExportOptions becomes multiple 2015-01-04 12:36:45 -03:00
admin-home.tt Bug 11425: Add item search form in staff interface 2014-11-04 19:08:12 -03:00
aqbudget_user_search.tt
aqbudgetperiods.tt Bug 13055 - Show budget name when editing it 2014-11-19 21:42:30 -03:00
aqbudgets.tt Bug 12601: Add a foreign key for aqorders.budget_id 2015-02-05 15:16:32 -03:00
aqcontract.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
aqplan.tt Bug 12992: Fund planning should display actual values 2014-11-16 21:38:16 -03:00
auth_subfields_structure.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
auth_tag_structure.tt Bug 11812 - Add missing "required" indicator to fields which are required 2014-10-22 14:04:43 -03:00
authorised_values.tt Bug 13587: Fix Authorised Values Toolbar 2015-01-21 10:56:43 -03:00
authtypes.tt Bug 11812 - Add missing "required" indicator to fields which are required 2014-10-22 14:04:43 -03:00
biblio_framework.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
branch_transfer_limits.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
branches.tt Bug 13441 - Branchcodes should not be allowed to have spaces in them 2015-02-05 15:08:44 -03:00
categorie.tt Bug 11812 - Add missing "required" indicator to fields which are required 2014-10-22 14:04:43 -03:00
checkmarc.tt Bug 7817: (followup) add test on MARC bibliographic framework test 2014-09-08 12:29:38 -03:00
cities.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
classsources.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
clone-rules.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
columns_settings.tt Bug 10212: (qa followup) accordion collapsed by default 2014-08-26 10:26:50 -03:00
currency.tt Bug 13071: format_date should not be called in currency.pl 2014-10-24 09:46:05 -03:00
didyoumean.tt
fieldmapping.tt
item_circulation_alerts.tt Bug 12138 - Use placeholders in translatable Javascript strings 2014-04-27 21:24:04 +00:00
items_search_field.tt Bug 11425: Add item search form in staff interface 2014-11-04 19:08:12 -03:00
items_search_fields.tt Bug 11425: Add item search form in staff interface 2014-11-04 19:08:12 -03:00
itemtypes.tt Bug 11944: (follow-up) Remove all utf8 filter from templates 2015-01-13 13:07:35 -03:00
koha2marclinks.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
marc_subfields_structure.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
marctagstructure.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
matching-rules.tt
oai_set_mappings.tt Bug 12686: Make more selected option XHTML compliant 2014-08-07 10:58:39 -03:00
oai_sets.tt Bug 11806 - Use validation plugin when creating new OAI set 2014-03-26 19:21:14 +00:00
patron-attr-types.tt Bug 6254: make it possible to set default privacy setting for new patrons 2014-05-26 01:17:37 +00:00
preferences.tt Bug 13355: System preferences tab value wrong in templates 2014-12-17 19:49:36 -03:00
printers.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
smart-rules.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
sru_modmapping.tt Bug 6536: Add a form for SRU Field mapping 2014-09-01 10:08:50 -03:00
stopwords.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
systempreferences.tt Bug 2889 - templates should use [% IF ( loop.odd ) %] - Administration 2014-10-15 17:59:12 -03:00
transport-cost-matrix.tt Bug 8938: Transport cost matrix script and template contain untranslatable strings 2014-08-14 20:37:37 -03:00
z3950servers.tt Bug 12823: Alert about defining the SRU search field mappings 2014-12-31 14:13:44 -03:00