2015-09-03 23:28:07 +00:00
|
|
|
|
|
|
|
Vn.Invoices = new Class
|
|
|
|
({
|
2015-11-17 10:34:33 +00:00
|
|
|
Extends: Vn.Form
|
2016-07-22 20:00:27 +00:00
|
|
|
|
2015-09-03 23:28:07 +00:00
|
|
|
,onDownloadClick: function (column, invoiceId)
|
|
|
|
{
|
|
|
|
if (!invoiceId)
|
|
|
|
return;
|
|
|
|
|
2016-08-26 12:43:45 +00:00
|
|
|
var url = 'rest.php?method=dms/invoice&invoice='+ invoiceId;
|
2015-09-03 23:28:07 +00:00
|
|
|
window.open (url, '_blank');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|