1 function InvoiceLinkDialogManager(which, target) {
5 this.linkFoundInvoice = function(r) {
6 self.inv = openils.Util.readResponse(r);
7 location.href = oilsBasePath + "/acq/invoice/view/" + self.inv.id() +
8 "?attach_" + self.which + "=" + self.target.id();
15 new openils.widget.AutoFieldWidget({
16 "fmField": "provider",
18 "parentNode": dojo.byId("acq-" + this.which + "-link-invoice-provider"),
19 "orgLimitPerms": ["VIEW_INVOICE"],
23 dijit.byId("acq-" + this.which + "-link-invoice-link").onClick =
28 "provider": dijit.byId(
29 "acq-" + self.which + "-link-invoice-provider"
33 "acq-" + self.which + "-link-invoice-inv_ident"
38 "onresponse": self.linkFoundInvoice,
39 "oncomplete": function() {
41 alert(localeStrings.NO_FIND_INVOICE);