Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Julian Maurice b997250026 Bug 11844: Use additional fields for order lines
This patch allows to create additional fields for order lines.
Once created, these fields can be filled during order line creation or
modification.

If additional field is linked to a MARC field, there are two possible
scenario:
- MARC field mode = get: The field cannot be modified and its value is
  retrieved from the bibliographic record (current behaviour)
- MARC field mode = set: The field can be modified and its value is
  saved to the bibliographic record (new behaviour)

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 an 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, MARC field
      mode = get
   b/ no AV category, a MARC field not linked to AV category, MARC field
      mode = set
   c/ no AV category, a MARC field linked to AV category, MARC field
      mode = get
   d/ no AV category, a MARC field linked to AV category, MARC field
      mode = set
   e/ an AV category, no 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). Fields (a) and (c) should be disabled.
9/ Fill these fields with some data and save order line
10/ check that data was correctly saved into biblio for fields (b) and
    (d), but not for (a) and (c)
11/ modify the same order line, check that values you've filled are
    correctly retrieved and that values for (a) and (c) were correctly
    retrieved from the bibliographic record
12/ modify all values, save, and check biblio once again

Signed-off-by: Harold Dramer <harold.dramer@nyls.edu>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2023-05-16 12:58:38 +02:00
..
csv Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
acqui-home.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
addorder.tt
addorderiso2709.tt Bug 33154: Tab WRAPPER follow-up: label text must be translatable 2023-04-13 11:47:54 -03:00
ajax.tt
basket.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
basketgroup.tt Bug 31722: Fixed EDIFACT message to only display if EDIFACT is turned on 2023-04-14 11:35:26 -03:00
basketheader.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
booksellers.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
cancelorder.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
duplicate_orders.tt Bug 33082: Add yellow buttons and page sections to 'copy order' pages 2023-03-17 09:59:04 -03:00
edi_ean.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
edifactmsgs.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
edimsg.tt Bug 33000: (follow-up) Add spans for translatability 2023-03-06 14:45:20 -03:00
histsearch.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
invoice-files.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
invoice.tt Bug 33001: Use template wrapper for breadcrumbs: Acquisitions part 2 2023-04-12 11:43:20 -03:00
invoices.tt Bug 33154: Tab WRAPPER follow-up: label text must be translatable 2023-04-13 11:47:54 -03:00
lateorders.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
moddeliverydate.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
modordernotes.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
neworderempty.tt Bug 11844: Use additional fields for order lines 2023-05-16 12:58:38 +02:00
neworderempty_duplicate.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
newordersubscription.tt Bug 33001: (follow-up) Add spans for translatability 2023-04-12 11:43:21 -03:00
newordersuggestion.tt Bug 33005: (follow-up) Add spans for translatability 2023-04-12 11:43:18 -03:00
ordered.tt Bug 33005: (follow-up) Add spans for translatability 2023-04-12 11:43:18 -03:00
orderreceive.tt Bug 8179: (follow-up) Fix currency change and remove datatables select 2023-05-15 08:53:52 -03:00
parcel.tt Bug 8179: (follow-up) Fix currency change and remove datatables select 2023-05-15 08:53:52 -03:00
parcels.tt Bug 33005: (follow-up) Add spans for translatability 2023-04-12 11:43:18 -03:00
showorder.tt Bug 27631: acqui folder 2022-04-20 09:03:38 -10:00
spent.tt Bug 33005: (follow-up) Add spans for translatability 2023-04-12 11:43:18 -03:00
supplier.tt Bug 33104: Remove fieldset 2023-05-05 10:18:51 -03:00
transferorder.tt Bug 32070: Consistent classes for primary buttons: Acquisitions 2022-11-02 19:37:37 -03:00
uncertainprice.tt Bug 33005: (follow-up) Add spans for translatability 2023-04-12 11:43:18 -03:00
z3950_search.tt Bug 33655: z39.50 search no longer shows search in progress 2023-05-12 11:22:37 -03:00