<script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/common/li_table.js'> </script>
<script type="text/javascript" src='[% ctx.media_prefix %]/js/ui/default/acq/financial/claim_voucher.js'> </script>
<div id='acq-lit-table-container'>
- <div id='acq-lit-table-div' class='hidden'>
- <!-- Line Item (bib record) list -->
+ <div> <!-- Container for actions selector and paging controls.
+ This container and the actions selector are always visible -->
<div style="float: left;">
<span>
<select id="acq-lit-li-actions-selector">
</div>
</div>
<div style="clear: both;"> </div><!-- XXX better way to end effects of float: left/right ? -->
-
+ </div>
+ <div id='acq-lit-table-div' class='hidden'>
<table id="acq-batch-update" class="hidden"><!-- XXX freeze in place w/ CSS? -->
<tr>
<th>
</script>
[% INCLUDE 'acq/common/li_table.tt2' %]
[% INCLUDE "acq/common/notes.tt2" which = "Po" %]
- <div class='hidden' id='acq-po-no-lineitems'>
- <button type='dijit.form.Button' onclick='location.href = oilsBasePath + "/acq/picklist/brief_record?po=" + poId'>
- [% l('Add Brief Record') %]
- </button>
- </div>
[% INCLUDE "acq/po/item_table.tt2" %]
</div>
[% END %]
function init2() {
- var zeroLi = true;
fieldmapper.standardRequest(
['open-ils.acq', 'open-ils.acq.lineitem.search'],
{ async: true,
{flesh_attrs:true, flesh_notes:true, flesh_cancel_reason:true, clear_marc:true}
],
onresponse: function(r) {
- zeroLi = false;
liTable.show('list');
var li = openils.Util.readResponse(r);
liTable.addLineitem(li);
oncomplete : function() {
if (liFocus) liTable.drawCopies(liFocus);
- if(zeroLi) openils.Util.show('acq-po-no-lineitems');
}
}
);