<div dojoType="dijit.layout.ContentPane" layoutAlign="client" class='oils-header-panel'>
<div> Invoice </div>
- <div id="acq-view-invoice-receive" class="hidden"><button id="acq-view-invoice-receive-link">Receive Items</button></div>
+ <div id="acq-view-invoice-receive" class="hidden">
+ <button id="acq-view-invoice-receive-link">Receive Items</button>
+ </div>
</div>
<div dojoType="dijit.layout.ContentPane" layoutAlign="client">
<div id='acq-invoice-summary'>
<div id='acq-view-invoice-div'></div>
- <button dojoType='dijit.form.Button' id='acq-invoice-summary-toggle-off'>[% l('Hide Summary') %]</button>
+ <button id='acq-invoice-summary-toggle-off'>[% l('Hide Details') %]</button>
</div>
<div id='acq-invoice-summary-small'>
<h3 id='acq-invoice-summary-name'></h3>
- <button dojoType='dijit.form.Button' id='acq-invoice-summary-toggle-on'>[% l('Show Summary') %]</button>
+ <div>[% l("Lineitems: " ) %]<span id='acq-invoice-summary-count'>0</span></div><br/>
+ <button id='acq-invoice-summary-toggle-on'>[% l('Show Details') %]</button>
</div>
<br/>
</div>
.search-results-content-td {
padding-left: 8px; border-left: 2px solid #888;
}
+ .search-results-already-invoiced {
+ background-color: #E99;
+ }
</style>
<table>
<tbody id='acq-invoice-search-results-tbody'>
checkbox.setAttribute('lineitem', li_id);
// this lineitem is already part of the invoice
- if (dojo.query('[entry_lineitem_row=' + li_id + ']')[0])
+ if (dojo.query('[entry_lineitem_row=' + li_id + ']')[0]) {
checkbox.disabled = true;
+ dojo.addClass(checkbox.parentNode, 'search-results-already-invoiced');
+ }
openils.acq.Lineitem.fetchAndRender(
li_id, {},
attachLi = checkbox.getAttribute('lineitem');
doAttachLi(true);
checkbox.disabled = true;
+ checkbox.checked = false;
+ dojo.addClass(checkbox.parentNode, 'search-results-already-invoiced');
}
}
);
openils.Util.removeCSSClass(dojo.byId('acq-invoice-entry-thead'), 'hidden');
openils.Util.removeCSSClass(dojo.byId('acq-invoice-entry-tbody'), 'hidden');
+ dojo.byId('acq-invoice-summary-count').innerHTML =
+ Number(dojo.byId('acq-invoice-summary-count').innerHTML) + 1;
+
entryTbody = dojo.byId('acq-invoice-entry-tbody');
if(entryTemplate == null) {
entryTemplate = entryTbody.removeChild(dojo.byId('acq-invoice-entry-template'));