Bug 12743: ACQ: default values for catalogue records
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 20 Aug 2014 15:05:19 +0000 (17:05 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 11 May 2015 13:10:41 +0000 (10:10 -0300)
commit88537974e339f5c576bcb5e32fe6e4fe6248d61c
treeaa023c9c3b4125a7d145db0355967692dcbee39f
parent164d1f9b8ebb2d1e112507a45a3ad71558bafaed
Bug 12743: ACQ: default values for catalogue records

At the moment, it is possible to create records in acquisitions, but the
ACQ framework is only used for items created in this module.

This patch allows to defined default values in the ACQ framework for
records created on the acquisition module.

Test plan:
1/ Make sure you have the ACQ framework created (otherwise create it
from the default framework).
2/ Define a default value for a field (for instance 099$z=1).
3/ Go in the acquisition module and create a new order from a new
record.
4/ Fill mandatory information and save.
5/ Go on the detail page of this record and verify the default value
exist.

Signed-off-by: Gaetan Boisson <gaetan.boisson@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Acquisition.pm
acqui/addorder.pl
t/db_dependent/Acquisition/FillWithDefaultValues.t [new file with mode: 0755]