Skip to content

Commit 19827a7

Browse files
committed
Rename the list of items in gtmpl back to items rather than reportItems
That was renamed before, but that just breaks compatibility with older templates used with Kraft 1.2.2
1 parent 0036a77 commit 19827a7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

reports/invoice.gtmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<th></th>
124124
</thead>
125125
<tbody>
126-
{% for item in doc.reportItems %}
126+
{% for item in doc.items %}
127127
<tr>
128128
<td class="col-No col-left">{{ item.itemNumber }}.</td>
129129
<td class="col-Text col-left">

reports/offer_no_prices.gtmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
<th class="col-Unit col-left">{{ label.UNIT }}</th>
121121
</thead>
122122
<tbody>
123-
{% for item in doc.reportItems %}
123+
{% for item in doc.items %}
124124
<tr>
125125
<td class="col-No col-left">{{ item.itemNumber }}.</td>
126126
<td class="col-Text col-left">

src/kraftdoc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class KraftDoc : public QObject, public KraftObj
138138
Q_PROPERTY(QString taxMarkerFull READ taxMarkerFull)
139139
Q_PROPERTY(QString taxMarkerReduced READ taxMarkerReduced)
140140

141-
Q_PROPERTY(QList<ReportItem*> reportItems READ reportItemList)
141+
Q_PROPERTY(QList<ReportItem*> items READ reportItemList)
142142
Q_PROPERTY(bool hasIndividualTaxation READ hasIndividualTaxation)
143143
Q_PROPERTY(bool isInvoice READ isInvoice)
144144

views/kraftdoc_ro.gtmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
<table width="100%" border="0">
3131

32-
{% for item in doc.reportItems %}
32+
{% for item in doc.items %}
3333
<tr>
3434
<td width="20">{{ item.itemNumber }}.</td>
3535
<td colspan="3">

0 commit comments

Comments
 (0)