function addSelectedToInvoice() {
var inputs = dojo.query('[name=search-results-checkbox]');
+ attachLi = [];
dojo.forEach(inputs,
function(checkbox) {
if (checkbox.checked) {
- attachLi = checkbox.getAttribute('lineitem');
- doAttachLi(true);
+ attachLi.push(checkbox.getAttribute('lineitem'));
checkbox.disabled = true;
checkbox.checked = false;
dojo.addClass(checkbox.parentNode, 'search-results-already-invoiced');
}
}
);
+ doAttachLi(true);
}
function clearSearchResTable() {
}
function addInvoiceEntry(entry) {
+ console.log('Adding new entry for lineitem ' + entry.lineitem());
openils.Util.removeCSSClass(dojo.byId('acq-invoice-entry-header'), 'hidden');
openils.Util.removeCSSClass(dojo.byId('acq-invoice-entry-thead'), 'hidden');