myInvoice.pdf renamed to hasPdf

This commit is contained in:
Juan Ferrer 2019-08-02 12:48:41 +02:00
parent 90161d1014
commit 5102571b5f
4 changed files with 5 additions and 5 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.59) stable; urgency=low
hedera-web (1.406.60) stable; urgency=low
* Initial Release.

View File

@ -5,7 +5,7 @@ Hedera.Invoices = new Class({
donwloadRenderer: function(column, invoice) {
var invoiceId = invoice.get('id');
if (invoice.get('pdf') && invoiceId) {
if (invoice.get('hasPdf') && invoiceId) {
var params = {
srv: 'rest:dms/invoice',
invoice: invoiceId,
@ -16,7 +16,7 @@ Hedera.Invoices = new Class({
tip: _('Download PDF'),
disabled: false,
icon: 'download',
href: '?'+ Vn.Url.makeUri (params)
href: '?'+ Vn.Url.makeUri(params)
});
} else
Object.assign(column, {

View File

@ -7,7 +7,7 @@
<div>
<htk-grid show-header="false">
<db-model property="model" id="tickets">
SELECT id, ref, issued, amount, pdf
SELECT id, ref, issued, amount, hasPdf
FROM myInvoice
ORDER BY issued DESC
LIMIT 100

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.406.59",
"version": "1.406.60",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {