Lines 114-120
Link Here
|
114 |
"searchable": true, |
114 |
"searchable": true, |
115 |
"orderable": true, |
115 |
"orderable": true, |
116 |
"render": function(data, type, row, meta) { |
116 |
"render": function(data, type, row, meta) { |
117 |
return '<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid="'+row.vendor_id+'>'+row.vendor.name+'</a>'; |
117 |
let link; |
|
|
118 |
if ( row.vendor ) { |
119 |
link = '<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid='+row.vendor_id+'">'+row.vendor.name+'</a>'; |
120 |
} else { |
121 |
link = '<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid='+row.vendor_id+'">'+row.vendor_id+'</a>'; |
122 |
} |
123 |
return link; |
118 |
} |
124 |
} |
119 |
}, |
125 |
}, |
120 |
{ |
126 |
{ |
Lines 122-134
Link Here
|
122 |
"searchable": false, |
128 |
"searchable": false, |
123 |
"orderable": false, |
129 |
"orderable": false, |
124 |
"render": function(data, type, row, meta) { |
130 |
"render": function(data, type, row, meta) { |
|
|
131 |
let rendered = ''; |
125 |
if ( row.type == 'QUOTE' || row.type == 'ORDERS' ) { |
132 |
if ( row.type == 'QUOTE' || row.type == 'ORDERS' ) { |
126 |
if ( row.basked_id ) { |
133 |
if ( row.basket_id ) { |
127 |
return '<a href="/cgi-bin/koha/acqui/basket.pl?basketno='+row.basked_id+'">Basket: '+row.basket_id+'</a>'; |
134 |
rendered = '<a href="/cgi-bin/koha/acqui/basket.pl?basketno='+row.basked_id+'">Basket: '+row.basket_id+'</a>'; |
128 |
} |
135 |
} |
129 |
} else { |
136 |
} else { |
130 |
return '<a href="/cgi-bin/koha/acqui/invoices.pl?message_id='+row.id+'&op=do_search">Invoices</a>'; |
137 |
rendered = '<a href="/cgi-bin/koha/acqui/invoices.pl?message_id='+row.id+'&op=do_search">Invoices</a>'; |
131 |
} |
138 |
} |
|
|
139 |
return rendered; |
132 |
} |
140 |
} |
133 |
}, |
141 |
}, |
134 |
{ |
142 |
{ |
135 |
- |
|
|