[Koha-bugs] [Bug 11844] Additional fields for order lines

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 26 10:43:10 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11844

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 25632
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=25632&action=edit
Bug 11844: Use additional fields for order lines

This patch makes use of new module Koha::AdditionalField to provide
additional fields to order lines.
Once created, these fields can be filled during order line creation or
modification.

If additional field is linked to a MARC field, then
value from biblio record is retrieved at order line creation. When
saving order line (at creation or modification), values in additional
fields are saved into biblio record.
If additional field is linked to an authorised value category, then
authorised values are used. If not directly linked to an authorised
value category, but linked to a MARC field, a search for a AV category
is made on MARC default framework.

This patch doesn't display additional fields value anywhere (except in
order line creation/modification). Future patches will do that.

Test plan:
1/ Go to Acquisitions home
2/ In the left menu, click on "Add order line fields"
3/ Click on "New field" button
4/ Give the field a name (unique), no AV category and no MARC field.
5/ Save.
6/ Create 5 other fields:
   a/ no AV category, a MARC field not linked to AV category
   b/ no AV category, a MARC field linked to AV category
   c/ a AV category, no MARC field
   d/ a AV category, a MARC field not linked to AV category
   e/ a AV category, a MARC field linked to another AV category
   In case of (e), the additional AV category should be used, not the AV
   category linked to MARC field
7/ Create everything you need to be able to create order lines
   (supplier, basket, ...)
8/ Create an order line. At bottom of the page, you should see your
   additional fields, with authorised values dropdrown list for fields
   (c), (d) and (e) (check this is the right AV category for (e))
9/ Fill these fields with some data and save order line
10/ check that data was correctly saved into biblio for fields (a), (b),
    (d) and (e)
11/ modify the same order line, check that values you've filled is
    correctly retrieved.
12/ modify all values, save, and check biblio once again
13/ create a new order line on the same biblio used for previous order
    line. check that values are correctly retrieved from biblio

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list