Lines 86-98
Link Here
|
86 |
"columns": [ |
86 |
"columns": [ |
87 |
{ |
87 |
{ |
88 |
"data": "type", |
88 |
"data": "type", |
89 |
"title": "Type", |
89 |
"title": _("Type"), |
90 |
"searchable": true, |
90 |
"searchable": true, |
91 |
"orderable": true |
91 |
"orderable": true |
92 |
}, |
92 |
}, |
93 |
{ |
93 |
{ |
94 |
"data": "transfer_date", |
94 |
"data": "transfer_date", |
95 |
"title": "Transferred", |
95 |
"title": _("Transferred"), |
96 |
"searchable": true, |
96 |
"searchable": true, |
97 |
"orderable": true, |
97 |
"orderable": true, |
98 |
"render": function(data, type, row, meta) { |
98 |
"render": function(data, type, row, meta) { |
Lines 101-113
Link Here
|
101 |
}, |
101 |
}, |
102 |
{ |
102 |
{ |
103 |
"data": "status", |
103 |
"data": "status", |
104 |
"title": "Status", |
104 |
"title": _("Status"), |
105 |
"searchable": true, |
105 |
"searchable": true, |
106 |
"orderable": true |
106 |
"orderable": true |
107 |
}, |
107 |
}, |
108 |
{ |
108 |
{ |
109 |
"data": "vendor.name", |
109 |
"data": "vendor.name", |
110 |
"title": "Vendor", |
110 |
"title": _("Vendor"), |
111 |
"searchable": true, |
111 |
"searchable": true, |
112 |
"orderable": true, |
112 |
"orderable": true, |
113 |
"render": function(data, type, row, meta) { |
113 |
"render": function(data, type, row, meta) { |
Lines 121-157
Link Here
|
121 |
} |
121 |
} |
122 |
}, |
122 |
}, |
123 |
{ |
123 |
{ |
124 |
"title": "Details", |
124 |
"title": _("Details"), |
125 |
"searchable": false, |
125 |
"searchable": false, |
126 |
"orderable": false, |
126 |
"orderable": false, |
127 |
"render": function(data, type, row, meta) { |
127 |
"render": function(data, type, row, meta) { |
128 |
let rendered = ''; |
128 |
let rendered = ''; |
129 |
if ( row.type == 'QUOTE' || row.type == 'ORDERS' ) { |
129 |
if ( row.type == 'QUOTE' || row.type == 'ORDERS' ) { |
130 |
if ( row.basket_id ) { |
130 |
if ( row.basket_id ) { |
131 |
rendered = '<a href="/cgi-bin/koha/acqui/basket.pl?basketno='+row.basked_id+'">Basket: '+row.basket_id+'</a>'; |
131 |
rendered = '<a href="/cgi-bin/koha/acqui/basket.pl?basketno='+row.basked_id+'">'+_("Basket")+': '+row.basket_id+'</a>'; |
132 |
} |
132 |
} |
133 |
} else { |
133 |
} else { |
134 |
rendered = '<a href="/cgi-bin/koha/acqui/invoices.pl?message_id='+row.id+'&op=do_search">Invoices</a>'; |
134 |
rendered = '<a href="/cgi-bin/koha/acqui/invoices.pl?message_id='+row.id+'&op=do_search">'+_("Invoices")+'</a>'; |
135 |
} |
135 |
} |
136 |
return rendered; |
136 |
return rendered; |
137 |
} |
137 |
} |
138 |
}, |
138 |
}, |
139 |
{ |
139 |
{ |
140 |
"data": "filename", |
140 |
"data": "filename", |
141 |
"title": "Filename", |
141 |
"title": _("Filename"), |
142 |
"searchable": true, |
142 |
"searchable": true, |
143 |
"orderable": true |
143 |
"orderable": true |
144 |
}, |
144 |
}, |
145 |
{ |
145 |
{ |
146 |
"title": "Actions", |
146 |
"title": _("Actions"), |
147 |
"className": "actions", |
147 |
"className": "actions", |
148 |
"searchable": false, |
148 |
"searchable": false, |
149 |
"orderable": false, |
149 |
"orderable": false, |
150 |
"render": function(data, type, row, meta) { |
150 |
"render": function(data, type, row, meta) { |
151 |
var result = '<a class="btn btn-default btn-xs view_message" target="_blank" href="/cgi-bin/koha/acqui/edimsg.pl?id='+encodeURIComponent(row.id)+'"><i class="fa fa-search"></i> View message</a> '; |
151 |
var result = '<a class="btn btn-default btn-xs view_message" target="_blank" href="/cgi-bin/koha/acqui/edimsg.pl?id='+encodeURIComponent(row.id)+'"><i class="fa fa-search"></i> '+_("View message")+'</a> '; |
152 |
result += '<a class="btn btn-default btn-xs delete_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=delete&message_id='+encodeURIComponent(row.id)+'"><i class="fa fa-trash-can"></i> Delete</a> '; |
152 |
result += '<a class="btn btn-default btn-xs delete_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=delete&message_id='+encodeURIComponent(row.id)+'"><i class="fa fa-trash-can"></i> '+_("Delete")+'</a> '; |
153 |
if ( row.status == 'new' ) { |
153 |
if ( row.status == 'new' ) { |
154 |
result += '<a class="btn btn-default btn-xs import_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=import&message_id='+encodeURIComponent(row.id)+'"><i class="fa fa-cog"></i> Import</a> '; |
154 |
result += '<a class="btn btn-default btn-xs import_msg" href="/cgi-bin/koha/acqui/edifactmsgs.pl?op=import&message_id='+encodeURIComponent(row.id)+'"><i class="fa fa-cog"></i> '+_("Import")+'</a> '; |
155 |
} |
155 |
} |
156 |
return result; |
156 |
return result; |
157 |
} |
157 |
} |
158 |
- |
|
|