.oils-acq-li-state-pending-order td { background-color: #EEEEDD; }
.oils-acq-li-state-on-order td { background-color: #EEDDDD; }
.oils-acq-li-state-received td { background-color: #DDDDDD; }
+.oils-acq-li-state-delayed td { background-color: #99CCFF; }
/* po display */
#oils-acq-po-table thead tr { border: 1px solid #A1A1A1; }
dojo.forEach(tds, function(td) {self.setRowAttr(td, liWrapper, td.getAttribute('attr'), td.getAttribute('attr_type'));});
dojo.query('[name=source_label]', row)[0].appendChild(document.createTextNode(li.source_label()));
+ if (li.cancel_reason() && typeof li.cancel_reason() == 'object') {
+ dojo.query('[name=cancel_reason]', row)[0].appendChild(
+ document.createTextNode(li.cancel_reason().label()));
+ }
+
// so we can scroll to it later
dojo.query('[name=bib-info-cell]', row)[0].id = 'li-title-ref-' + li.id();
"connectId": [holds_state]
}, dojo.create("span", null, state_cell, "last")
);
+
+ if (li.cancel_reason().keep_debits() == 't') {
+ openils.Util.removeCSSClass(row, /^oils-acq-li-state-/);
+ openils.Util.addCSSClass(row, "oils-acq-li-state-delayed");
+ }
}
return; // all done