Bug 4266: Hide Encumbrance and Expenditure in aqbudgets.tt
authorMathieu Saby <mathieu.saby@univ-rennes2.fr>
Fri, 22 Feb 2013 11:33:48 +0000 (12:33 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 15 Mar 2013 22:54:04 +0000 (18:54 -0400)
Encumbrance and Expenditure fields are not taken into account by Koha,
but the data are saved in database.
This patch hide these fields in aqbudgets.tt
To test : check if the 2 fields are hidden when creating a new fund.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
This could certainly be done in a few different ways both with CSS and
JS, but this is a simple change and can be easily overridden:

$("#budget_encumb,#budget_expend").closest("li").show();

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt

index 519c276..af0f086 100644 (file)
     <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount %]" size="8" />
     </li>
 
-    <li>
+    <li style="display:none;">
     <label for="budget_encumb">Encumbrance: </label>
     <input type="text" name="budget_encumb" id="budget_encumb" value="[% budget_encumb %]" size="8" />
     </li>
 
-    <li>
+    <li style="display:none;">
     <label for="budget_expend">Expenditure: </label>
     <input type="text" name="budget_expend" id="budget_expend" value="[% budget_expend %]" size="8" />
     </li>