this.realCopiesRow = this.realCopiesTbody.removeChild(dojo.byId('acq-lit-real-copies-row'));
this._copy_fields_for_acqdf = ['owning_lib', 'location'];
this.skipInitialEligibilityCheck = false;
- this.invoiceLinkDialogManager = new InvoiceLinkDialogManager("li");
this.claimDialog = new ClaimDialogManager(
liClaimDialog, finalClaimDialog, this.claimEligibleLidByLi,
function(li) { /* callback that fires when claims are made */
nodeByName("action_none", row).selected = true;
};
actLinkInvoice.onclick = function() {
+ if (!self.invoiceLinkDialogManager) {
+ self.invoiceLinkDialogManager =
+ new InvoiceLinkDialogManager("li");
+ }
self.invoiceLinkDialogManager.target = li;
acqLitLinkInvoiceDialog.show();
nodeByName("action_none", row).selected = true;
"/acq/invoice/view?create=1&attach_po=" + PO.id();
};
- if (!invoiceLinkDialogManager)
- invoiceLinkDialogManager = new InvoiceLinkDialogManager("po", PO);
-
openils.Util.show("acq-po-invoice-stuff", "table-cell");
}
<table class="acq-link-invoice-dialog">
<tr>
<th>
- <label for="acq-[% which %]-link-invoice-provider">Provider</label>
+ <label for="acq-[% which %]-link-invoice-inv_ident">
+ Invoice #
+ </label>
</th>
<td>
- <span id="acq-[% which %]-link-invoice-provider"></span>
+ <input id="acq-[% which %]-link-invoice-inv_ident"
+ dojoType="dijit.form.TextBox" />
</td>
</tr>
<tr>
<th>
- <label for="acq-[% which %]-link-invoice-inv_ident">
- Invoice #
- </label>
+ <label for="acq-[% which %]-link-invoice-provider">Provider</label>
</th>
<td>
- <input id="acq-[% which %]-link-invoice-inv_ident"
- dojoType="dijit.form.TextBox" />
+ <span id="acq-[% which %]-link-invoice-provider"></span>
</td>
</tr>
<tr>
<span>Link Invoice</span>
<div dojoType="dijit.TooltipDialog"
id="acq-po-link-invoice">
+ <script type="dojo/connect" event="onOpen">
+ if (!invoiceLinkDialogManager) {
+ invoiceLinkDialogManager =
+ new InvoiceLinkDialogManager(
+ "po", PO
+ );
+ }
+ </script>
[% INCLUDE "default/acq/common/inv_dialog.tt2"
which = "po" %]
</div>