18 lines
302 B
JavaScript
18 lines
302 B
JavaScript
|
|
Vn.Invoices = new Class
|
|
({
|
|
Extends: Vn.Form
|
|
|
|
,activate: function () {}
|
|
|
|
,onDownloadClick: function (column, invoiceId)
|
|
{
|
|
if (!invoiceId)
|
|
return;
|
|
|
|
var url = '//www.verdnatura.es/hedera-web/forms/ecomerce/invoices/download.php?invoice='+ invoiceId;
|
|
window.open (url, '_blank');
|
|
}
|
|
});
|
|
|