<span name="claim_policy" class="hidden"> | [% l("claim policy:") %] <span name="claim_policy_name"></span></span>
<span name='pro' class='hidden'> | <a title='[% l('Provider') %]' name='pro_link' href='javascript:void(0);'>⍟ </a></span>
<span name='queue' class='hidden'> | <a title='[% l('Import Queue') %]' name='queue_link' href='javascript:void(0);'>[% l('➬ queue') %]</a></span>
+ <span name='paid' class='hidden'> | <span class="acq-existing-count-warn">[% l('Paid') %]</span></span>
</td>
</tr>
</tbody>
dojo.query('[name=expand_inline_copies]', row)[0].onclick =
function() {self.drawInlineCopies(li.id())};
+ var sum;
+ if (sum = li.order_summary()) { // assignment
+ // Only show the paid label if at least one copy is invoiced.
+ // In other words, a lineitem whose every copy is canceled
+ // is not "paid off"
+ if (sum.invoice_count() > 0) {
+ if (sum.item_count() == (
+ sum.invoice_count() + sum.cancel_count())) {
+ // Lineitem is fully paid. Display the paid-off label
+ openils.Util.show(nodeByName('paid', row), 'inline');
+ }
+ }
+ }
+
this.drawOrderIdentSelector(li, row);
if (!this.skipInitialEligibilityCheck)
params: [
openils.User.authtoken,
[{purchase_order:poId}, {"order_by": {"jub": "id ASC"}}],
- {flesh_attrs:true, flesh_notes:true, flesh_cancel_reason:true, clear_marc:true}
+ { flesh_attrs : true,
+ flesh_notes : true,
+ flesh_cancel_reason : true,
+ flesh_order_summary : true,
+ clear_marc:true
+ }
],
onresponse: function(r) {
liTable.show('list');