63f88a5742
Test plan: 1. Go to Admin » Additional fields There are two new categories: "Account lines (credit)" and "Account lines (debit)" 2. Create fields for both categories, with and without an authorized value category 3. Go to a user's accounting page 4. Create a manual invoice. Verify that all "debit" fields are there, put a value in them and save 5. Create a manual credit. Verify that all "credit" fields are there, put a value in them and save 6. Make a payment. Verify that all "credit" fields are there, put a value in them and save 7. Go to the transactions tab, click on the "Details" button for the lines you just created and verify that the additional fields are there Signed-off-by: Emmanuel Bétemps <e.betemps@gmail.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
34 lines
1.9 KiB
HTML
34 lines
1.9 KiB
HTML
[% USE AuthorisedValues %]
|
|
[% IF wrap_fieldset != 0 %]
|
|
<fieldset class="rows">
|
|
<legend>Additional fields</legend>
|
|
<ol>
|
|
[% END %]
|
|
[% FOR field IN available %]
|
|
<li>
|
|
<label for="additional_field_[% field.id | html %]"> [% field.name | html %]: </label>
|
|
[% IF field.authorised_value_category %]
|
|
<select name="additional_field_[% field.id | html %]" id="additional_field_[% field.id | html %]">
|
|
<option value=""></option>
|
|
[% FOREACH av IN AuthorisedValues.GetAuthValueDropbox( field.authorised_value_category ) %]
|
|
[% IF av.authorised_value == values.${field.id} %]
|
|
<option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% av.authorised_value | html %]">[% av.lib | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select> <span>(Authorised values for [% field.authorised_value_category | html %])</span>
|
|
[% ELSE %]
|
|
[% IF field.marcfield %]
|
|
<input type="text" value="[% values.${field.id} | html %]" id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]" readonly="readonly" />
|
|
This value will be filled with the [% field.marcfield | html %] subfield of the selected biblio.
|
|
[% ELSE %]
|
|
<input type="text" value="[% values.${field.id} | html %]" id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]" />
|
|
[% END %]
|
|
[% END %]
|
|
</li>
|
|
[% END %]
|
|
[% IF wrap_fieldset != 0 %]
|
|
</ol>
|
|
</fieldset>
|
|
[% END %]
|