2015-01-23 12:18:54 +00:00
[% USE raw %]
2018-04-06 15:02:55 +00:00
[% USE Asset %]
2013-05-29 03:03:59 +00:00
[% USE KohaDates %]
2023-07-27 15:12:12 +00:00
[% PROCESS 'i18n.inc' %]
Bug 19755: Move template JavaScript to the footer: Acquisitions, part 3
This patch modifies even more staff client acquisitions templates so
that JavaScript is included in the footer instead of the header.
To test, apply the patch and test the JavaScript-driven features of the
modified templates: All button controls, DataTables functionality, tabs,
etc.
- Acquisitions -> Vendor -> Vendor details
- Contracts datatable
- Edit vendor
- Add contacts, form validation
- Acquisitions -> Vendor -> Invoices -> Invoice -> "Go to receipt"
- Datatables, MARC and Card previews
- Transfer
- Confirmation of transfer, window closes
- Acquisitions -> Vendor -> Receive shipments
- Datatables, date pickers
- Acquisitions -> Available funds table -> Spent report
- Datatables
- Acquisitions -> Vendor -> Uncertain prices
- Datatables, form validation
- Acquisitions -> Vendor -> Basket -> Add to basket from external source
- Select and clear all on search form
- Search results
- Datatables, MARC and Card previews, in-table pop-up controls
(click any table cell)
Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-05 18:30:08 +00:00
[% SET footerjs = 1 %]
2023-06-06 14:59:36 +00:00
[% PROCESS 'i18n.inc' %]
2011-03-21 07:02:15 +00:00
[% INCLUDE 'doc-head-open.inc' %]
2023-06-06 14:59:36 +00:00
<title>[% FILTER collapse %]
[% tx("Receive shipment from vendor {vendor}", { vendor = name }) | html %] ›
[% t("Acquisitions") | html %] ›
[% t("Koha") | html %]
[% END %]</title>
2011-03-21 07:02:15 +00:00
[% INCLUDE 'doc-head-close.inc' %]
</head>
Bug 19755: Move template JavaScript to the footer: Acquisitions, part 3
This patch modifies even more staff client acquisitions templates so
that JavaScript is included in the footer instead of the header.
To test, apply the patch and test the JavaScript-driven features of the
modified templates: All button controls, DataTables functionality, tabs,
etc.
- Acquisitions -> Vendor -> Vendor details
- Contracts datatable
- Edit vendor
- Add contacts, form validation
- Acquisitions -> Vendor -> Invoices -> Invoice -> "Go to receipt"
- Datatables, MARC and Card previews
- Transfer
- Confirmation of transfer, window closes
- Acquisitions -> Vendor -> Receive shipments
- Datatables, date pickers
- Acquisitions -> Available funds table -> Spent report
- Datatables
- Acquisitions -> Vendor -> Uncertain prices
- Datatables, form validation
- Acquisitions -> Vendor -> Basket -> Add to basket from external source
- Select and clear all on search form
- Search results
- Datatables, MARC and Card previews, in-table pop-up controls
(click any table cell)
Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-05 18:30:08 +00:00
2012-03-20 15:41:17 +00:00
<body id="acq_parcels" class="acq">
2022-07-25 14:37:41 +00:00
[% WRAPPER 'header.inc' %]
[% INCLUDE 'acquisitions-search.inc' %]
[% END %]
2011-03-21 07:02:15 +00:00
2022-07-25 14:37:41 +00:00
[% WRAPPER 'sub-header.inc' %]
2023-01-06 11:50:00 +00:00
[% WRAPPER breadcrumbs %]
[% WRAPPER breadcrumb_item %]
2021-03-11 02:40:25 +00:00
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
2023-01-06 11:50:00 +00:00
[% END %]
[% WRAPPER breadcrumb_item %]
2021-03-11 02:40:25 +00:00
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
2023-01-06 11:50:00 +00:00
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
2023-02-24 12:44:31 +00:00
<span>Receive shipment from vendor [% name | html %]</span>
2023-01-06 11:50:00 +00:00
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]
2011-03-21 07:02:15 +00:00
2018-05-01 15:49:26 +00:00
<div class="main container-fluid">
<div class="row">
[% IF ( count ) %]
<div class="col-sm-10 col-sm-push-2">
[% ELSE %]
<div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
[% END %]
<main>
2023-09-21 13:10:48 +00:00
[% INCLUDE 'messages.inc' %]
2021-04-05 21:50:20 +00:00
<h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a></h1>
2012-01-06 15:51:57 +00:00
[% IF ( error_failed_to_create_invoice ) %]
2014-10-10 13:04:27 +00:00
<div id="error" class="dialog alert">
2013-12-16 10:58:32 +00:00
<p>An error has occurred. Invoice cannot be created.</p>
2012-01-06 15:51:57 +00:00
</div>
[% END %]
2011-03-21 07:02:15 +00:00
2013-05-29 03:03:59 +00:00
[% IF duplicate_invoices %]
<div id="parcels_duplicate_invoice" class="dialog alert">
<p>This invoice number has already been used. Would you like to receive on an existing invoice?</p>
<table>
2021-06-09 10:59:31 +00:00
<thead><tr><th>Invoice number</th><th>Shipment date</th><th></th></tr></thead>
2013-05-29 03:03:59 +00:00
<tbody>
[% FOREACH invoice IN duplicate_invoices %]
<tr>
2015-01-23 12:18:54 +00:00
<td>[% invoice.invoicenumber | html %]</td>
2013-05-29 03:03:59 +00:00
<td>[% invoice.shipmentdate | $KohaDates %]</td>
2018-10-15 22:44:51 +00:00
<td><a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoice.invoiceid | uri %]">Receive</a></td>
2013-05-29 03:03:59 +00:00
</tr>
[% END %]
</tbody>
</table>
2024-01-19 17:00:44 +00:00
<form method="post" action="parcels.pl">
[% INCLUDE 'csrf-token.inc' %]
2015-01-23 12:18:54 +00:00
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
2024-01-19 17:00:44 +00:00
<input type="hidden" name="op" value="cud-confirm" />
2015-01-23 12:18:54 +00:00
<input type="hidden" name="invoice" value="[% invoicenumber | html %]" />
2022-08-19 09:04:49 +00:00
<input type="hidden" name="shipmentdate" value="[% shipmentdate | $KohaDates dateformat => 'iso' %]" />
2015-01-23 12:18:54 +00:00
<input type="hidden" name="shipmentcost" value="[% shipmentcost | html %]" />
<input type="hidden" name="shipmentcost_budgetid" value="[% shipmentcost_budgetid | html %]" />
2022-11-02 11:43:32 +00:00
<input type="submit" class="btn btn-primary" value="Create new invoice anyway" />
2013-05-29 03:03:59 +00:00
</form>
</div>
[% END %]
2011-03-21 07:02:15 +00:00
[% IF ( count ) %]
2015-01-23 12:18:54 +00:00
<p> [% count | html %] shipments</p>
2022-11-09 16:24:06 +00:00
<div id="resultlist" class="page-section">
2011-03-21 07:02:15 +00:00
<!-- Search Results Table -->
2012-02-17 14:58:54 +00:00
<table class="small" id="parcelst">
<thead>
2011-03-21 07:02:15 +00:00
<tr>
<th>Line</th>
2021-03-18 15:38:14 +00:00
<th>Date received</th>
2012-04-03 18:22:42 +00:00
<th>Invoice number</th>
<th>Item count</th>
2023-07-27 15:12:12 +00:00
<th>[% tp("Bibliographic record", "Record count") | html %]</th>
2011-03-21 07:02:15 +00:00
<th>Items expected</th>
</tr>
2012-02-17 14:58:54 +00:00
</thead>
<tbody>
<!-- Actual Search Results -->
[% FOREACH searchresult IN searchresults %]
<tr>
<td>
2015-01-23 12:18:54 +00:00
[% searchresult.number | html %]
2012-02-17 14:58:54 +00:00
</td>
2021-03-18 15:38:14 +00:00
<td data-order="[% searchresult.datereceived | html %]">
[% searchresult.datereceived | $KohaDates %]
2012-02-17 14:58:54 +00:00
</td>
<td>
2012-01-06 15:51:57 +00:00
[% IF ( searchresult.code ) %]
2018-10-15 22:44:51 +00:00
<a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid | uri %]">[% searchresult.code | html %]</a>
2012-01-06 15:51:57 +00:00
[% ELSE %]
2015-03-05 12:27:08 +00:00
<abbr title="not available">n/a</abbr>
2012-01-06 15:51:57 +00:00
[% END %]
2012-02-17 14:58:54 +00:00
</td>
<td>
2015-01-23 12:18:54 +00:00
[% searchresult.reccount | html %]
2012-02-17 14:58:54 +00:00
</td>
<td>
2015-01-23 12:18:54 +00:00
[% searchresult.bibcount | html %]
2012-02-17 14:58:54 +00:00
</td>
<td>
2015-01-23 12:18:54 +00:00
[% searchresult.itemcount | html %]
2012-02-17 14:58:54 +00:00
</td>
</tr>
2011-03-21 07:02:15 +00:00
[% END %]
2012-02-17 14:58:54 +00:00
</tbody>
2011-03-21 07:02:15 +00:00
</table>
<div id="resultnumber">
<!-- Row of numbers corresponding to search result pages -->
[% IF ( displayprev ) %]
2018-10-15 22:44:51 +00:00
<a href="parcels.pl?booksellerid=[% booksellerid | uri %]&startfrom=[% prevstartfrom | uri %][% IF ( datefrom ) %]&datefrom=[% datefrom | uri %][% END %][% IF ( dateto ) %]&dateto=[% dateto | uri %][% END %][% IF ( code ) %]&filter=[% code | uri %][% END %][% IF ( orderby ) %]&orderby=[% orderby | uri %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage | uri %][% END %]&type=intra"><< Previous</a>
2011-03-21 07:02:15 +00:00
[% END %]
[% FOREACH number IN numbers %]
[% IF ( number.highlight ) %]
2015-01-23 12:18:54 +00:00
<span class="current">[% number.number | html %]</span>
2011-03-21 07:02:15 +00:00
[% ELSE %]
2018-10-15 22:44:51 +00:00
<a href="parcels.pl?booksellerid=[% booksellerid | uri %]&startfrom=[% number.startfrom | uri %][% IF ( number.datefrom ) %]&datefrom=[% number.datefrom | uri %][% END %][% IF ( number.dateto ) %]&dateto=[% number.dateto | uri %][% END %][% IF ( number.code ) %]&filter=[% number.code | uri %][% END %][% IF ( number.orderby ) %]&orderby=[% number.orderby | uri %][% END %][% IF ( number.resultsperpage ) %]&resultsperpage=[% number.resultsperpage | uri %][% END %]&type=intra">[% number.number | html %]</a>
2011-03-21 07:02:15 +00:00
[% END %]
[% END %]
[% IF ( displaynext ) %]
2018-10-15 22:44:51 +00:00
<a href="parcels.pl?booksellerid=[% booksellerid | uri %]&startfrom=[% nextstartfrom | uri %][% IF ( datefrom ) %]&datefrom=[% datefrom | uri %][% END %][% IF ( dateto ) %]&dateto=[% dateto | uri %][% END %][% IF ( code ) %]&filter=[% code | uri %][% END %][% IF ( orderby ) %]&orderby=[% orderby | uri %][% END %][% IF ( resultsperpage ) %]&resultsperpage=[% resultsperpage | uri %][% END %]&type=intra">Next >></a>
2011-03-21 07:02:15 +00:00
[% END %]
</div>
</div>
[% END %]
<div id="parcels_new_parcel">
2024-01-19 17:00:44 +00:00
<form method="post" action="parcels.pl" class="validated">
[% INCLUDE 'csrf-token.inc' %]
2011-03-21 07:02:15 +00:00
<fieldset class="rows">
<legend>Receive a new shipment</legend>
<ol> <li>
2016-04-26 01:27:19 +00:00
<label for="invoice" class="required">Vendor invoice:</label>
2015-01-23 12:18:54 +00:00
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
2024-01-19 17:00:44 +00:00
<input type="hidden" name="op" value="cud-new" />
2016-04-26 01:27:19 +00:00
<input type="text" size="20" id="invoice" name="invoice" class="focus required" required="required" />
2011-03-21 07:02:15 +00:00
</li>
[% IF ( gst ) %]
<li>
<label for="gst">GST:</label>
<input type="text" size="20" id="gst" name="gst" />
</li>
[% END %]
<!-- // Removing freight input until shipping can be proplerly handled .
<li>
<label for="freight">Shipping:</label>
<input type="text" size="20" id="freight" name="freight" />
</li> -->
2012-01-06 15:51:57 +00:00
<li>
<label for="shipmentdate">Shipment date: </label>
2022-07-11 14:14:38 +00:00
<input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today | html %]" class="flatpickr" />
2012-01-06 15:51:57 +00:00
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
<li>
2013-09-30 02:12:17 +00:00
<label for="shipmentcost">Shipping cost: </label>
Bug 34169: Add decimal class to all relevant input fields in the acquisitions module
This is a first step towards more consistency and possibly supporting
multiple input formats as well in the future. It marks all input fields
for monetary values, such as prices, replacement prices etc. with a class
that is linked to a check for number format with the jQuery Validator plugin.
To test:
For any input field to test, try adding various false entries, like "abc" or "1,00".
It should only accept inputs with decimal dot, like: "1.00"
0) Apply patch, restart_all
1) Suggestion
* Add a new suggestion in the staff interface
* Test: price input field at the bottom of the form.
* Accept the suggestion
2) Order form
* Create a new basket
* Create an order line from an existing record
* Test: list price, replacement price, and actual price.
* Check the checkbox for uncertain price before you save
3) Uncertain prices
* Go to the uncertain prices page for this vendor
* Test: price field
Note: this form does its own validation, but the change should not change behaviour for now
* Resolve the uncertain price
* Close order
4) Receive shipment
* Test: Shipping cost
5) Receive the order
* Test: replacement price, actual price
* Check checkbox for price in foreign currency
* Test: price in foreign currency
* Receive order line
6) Invoice summary
* Finish receiving
* Test: shipping cost
* Test: invoice adjustments: amount in the form for the first entry, amount in the table after adding it
7) Merging invoices
* Receive another shipment and create and invoice
* Go to invoices and search all
* Check the 2 entries for merging
* Test: shipping cost
8) Adding orders from a staged/new file
* Export some records using the cart or list
* Create a new basket
* Order from new file
* Import your file, ignore item records
* Test: price and replacement price
+ Bonus: also test with items, test plan and file from bug 22802 are really helpful here
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-07-17 16:01:25 +00:00
<input class="decimal" type="text" id="shipmentcost" name="shipmentcost" size="10" />
2012-01-06 15:51:57 +00:00
</li>
<li>
2015-11-22 01:52:02 +00:00
<label for="shipmentcost_budgetid">Shipping fund: </label>
2012-01-06 15:51:57 +00:00
<select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
2013-04-14 15:29:20 +00:00
<option value="">No fund</option>
2012-01-06 15:51:57 +00:00
[% FOREACH budget IN budgets %]
2013-07-19 13:07:52 +00:00
[% IF ( budget.b_active ) %]
2015-01-23 12:18:54 +00:00
<option value="[% budget.b_id | html %]">[% budget.b_txt | html %]</option>
2013-07-19 13:07:52 +00:00
[% ELSE %]
2015-01-23 12:18:54 +00:00
<option value="[% budget.b_id | html %]" class="b_inactive">[% budget.b_txt | html %] (inactive)</option>
2013-07-19 13:07:52 +00:00
[% END %]
2012-01-06 15:51:57 +00:00
[% END %]
</select>
2015-05-31 13:52:26 +00:00
<label for="showallfunds" style="float:none;width:auto;"> Show inactive:</label>
2013-07-19 13:07:52 +00:00
<input type="checkbox" id="showallfunds" />
2012-01-06 15:51:57 +00:00
</li>
2011-03-21 07:02:15 +00:00
</ol>
</fieldset>
2022-11-09 16:24:06 +00:00
[% IF available_additional_fields %]
[% INCLUDE 'additional-fields-entry.inc' available=available_additional_fields values=additional_field_values %]
[% END %]
2022-11-02 11:43:32 +00:00
<fieldset class="action"><input type="submit" class="btn btn-default" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | html %]">Cancel</a></fieldset>
2011-03-21 07:02:15 +00:00
</form>
</div>
2018-05-01 15:49:26 +00:00
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->
[% IF ( count ) %]
<div class="col-sm-2 col-sm-pull-10">
<aside>
<form method="get" action="parcels.pl">
2011-03-21 07:02:15 +00:00
<fieldset class="brief">
<h4>Filter</h4>
<ol>
2015-01-23 12:18:54 +00:00
<li> <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" /></li>
<li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter | html %]" id="filter" /></li>
2021-09-02 14:36:07 +00:00
<li>
<label for="datefrom">From:</label>
<input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom | html %]" class="flatpickr" />
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
<li>
<label for="dateto">To:</label>
<input type="text" size="9" id="dateto" name="dateto" value="[% dateto | html %]" class="flatpickr" />
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
</li>
2011-03-21 07:02:15 +00:00
<li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
2012-01-06 15:51:57 +00:00
<option value="invoicenumber">Invoice number</option>
<option value="shipmentdate">Shipment date</option>
<option value="shipmentdate desc">Shipment date reverse</option>
<option value="invoicenumber desc">Invoice number reverse</option>
2011-03-21 07:02:15 +00:00
</select><br />
<label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
<option value="20">20</option>
<option value="30">30</option>
<option value="50">50</option>
<option value="100">100</option>
</select></li>
</ol>
2022-11-02 11:43:32 +00:00
<fieldset class="action"><input type="submit" class="btn btn-default" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid | uri %]">Clear</a></fieldset>
</fieldset>
2018-05-01 15:49:26 +00:00
</form>
</aside>
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
[% END %]
</div> <!-- /.row -->
Bug 19755: Move template JavaScript to the footer: Acquisitions, part 3
This patch modifies even more staff client acquisitions templates so
that JavaScript is included in the footer instead of the header.
To test, apply the patch and test the JavaScript-driven features of the
modified templates: All button controls, DataTables functionality, tabs,
etc.
- Acquisitions -> Vendor -> Vendor details
- Contracts datatable
- Edit vendor
- Add contacts, form validation
- Acquisitions -> Vendor -> Invoices -> Invoice -> "Go to receipt"
- Datatables, MARC and Card previews
- Transfer
- Confirmation of transfer, window closes
- Acquisitions -> Vendor -> Receive shipments
- Datatables, date pickers
- Acquisitions -> Available funds table -> Spent report
- Datatables
- Acquisitions -> Vendor -> Uncertain prices
- Datatables, form validation
- Acquisitions -> Vendor -> Basket -> Add to basket from external source
- Select and clear all on search form
- Search results
- Datatables, MARC and Card previews, in-table pop-up controls
(click any table cell)
Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-05 18:30:08 +00:00
[% MACRO jsinclude BLOCK %]
2015-01-23 12:18:54 +00:00
[% Asset.js("js/acquisitions-menu.js") | $raw %]
Bug 19755: Move template JavaScript to the footer: Acquisitions, part 3
This patch modifies even more staff client acquisitions templates so
that JavaScript is included in the footer instead of the header.
To test, apply the patch and test the JavaScript-driven features of the
modified templates: All button controls, DataTables functionality, tabs,
etc.
- Acquisitions -> Vendor -> Vendor details
- Contracts datatable
- Edit vendor
- Add contacts, form validation
- Acquisitions -> Vendor -> Invoices -> Invoice -> "Go to receipt"
- Datatables, MARC and Card previews
- Transfer
- Confirmation of transfer, window closes
- Acquisitions -> Vendor -> Receive shipments
- Datatables, date pickers
- Acquisitions -> Available funds table -> Spent report
- Datatables
- Acquisitions -> Vendor -> Uncertain prices
- Datatables, form validation
- Acquisitions -> Vendor -> Basket -> Add to basket from external source
- Select and clear all on search form
- Search results
- Datatables, MARC and Card previews, in-table pop-up controls
(click any table cell)
Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-05 18:30:08 +00:00
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
2019-05-23 13:50:07 +00:00
<script>
Bug 19755: Move template JavaScript to the footer: Acquisitions, part 3
This patch modifies even more staff client acquisitions templates so
that JavaScript is included in the footer instead of the header.
To test, apply the patch and test the JavaScript-driven features of the
modified templates: All button controls, DataTables functionality, tabs,
etc.
- Acquisitions -> Vendor -> Vendor details
- Contracts datatable
- Edit vendor
- Add contacts, form validation
- Acquisitions -> Vendor -> Invoices -> Invoice -> "Go to receipt"
- Datatables, MARC and Card previews
- Transfer
- Confirmation of transfer, window closes
- Acquisitions -> Vendor -> Receive shipments
- Datatables, date pickers
- Acquisitions -> Available funds table -> Spent report
- Datatables
- Acquisitions -> Vendor -> Uncertain prices
- Datatables, form validation
- Acquisitions -> Vendor -> Basket -> Add to basket from external source
- Select and clear all on search form
- Search results
- Datatables, MARC and Card previews, in-table pop-up controls
(click any table cell)
Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-05 18:30:08 +00:00
$(document).ready(function() {
var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
2023-09-28 17:43:32 +00:00
"paginate": false
Bug 19755: Move template JavaScript to the footer: Acquisitions, part 3
This patch modifies even more staff client acquisitions templates so
that JavaScript is included in the footer instead of the header.
To test, apply the patch and test the JavaScript-driven features of the
modified templates: All button controls, DataTables functionality, tabs,
etc.
- Acquisitions -> Vendor -> Vendor details
- Contracts datatable
- Edit vendor
- Add contacts, form validation
- Acquisitions -> Vendor -> Invoices -> Invoice -> "Go to receipt"
- Datatables, MARC and Card previews
- Transfer
- Confirmation of transfer, window closes
- Acquisitions -> Vendor -> Receive shipments
- Datatables, date pickers
- Acquisitions -> Available funds table -> Spent report
- Datatables
- Acquisitions -> Vendor -> Uncertain prices
- Datatables, form validation
- Acquisitions -> Vendor -> Basket -> Add to basket from external source
- Select and clear all on search form
- Search results
- Datatables, MARC and Card previews, in-table pop-up controls
(click any table cell)
Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-12-05 18:30:08 +00:00
}));
//keep a copy of all budgets before removing the inactives
var budgetId = $("#shipmentcost_budgetid");
var disabledBudgetsCopy = budgetId.html();
$('.b_inactive').remove();
$('#showallfunds').click(function() {
if ($(this).is(":checked")) {
budgetId.html(disabledBudgetsCopy); //Puts back all the funds
}
else {
$('.b_inactive').remove();
}
});
});
</script>
[% END %]
2011-03-21 07:02:15 +00:00
[% INCLUDE 'intranet-bottom.inc' %]