HTML Templates für Buchungstab vergessen
authorG. Richardson <information@kivitendo-premium.de>
Thu, 4 Dec 2014 15:43:23 +0000 (16:43 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Thu, 4 Dec 2014 15:43:46 +0000 (16:43 +0100)
templates/webpages/acc_trans/_mini_ledger.html [new file with mode: 0644]
templates/webpages/acc_trans/_mini_trial_balance.html [new file with mode: 0644]

diff --git a/templates/webpages/acc_trans/_mini_ledger.html b/templates/webpages/acc_trans/_mini_ledger.html
new file mode 100644 (file)
index 0000000..b2ec3c9
--- /dev/null
@@ -0,0 +1,33 @@
+[% USE L %] [%- USE LxERP %] [%- USE HTML %]
+<div class="listtop">[%- HTML.escape(title) %]</div>
+
+<div style="padding-bottom: 15px">
+ <table id="acc_trans">
+  <thead>
+   <tr>
+    <th class="listheading">[%- LxERP.t8("Date") %]</th>
+    <th class="listheading">[%- LxERP.t8("Chart") %]</th>
+    <th class="listheading">[%- LxERP.t8("Description") %]</th>
+    <th class="listheading">[%- LxERP.t8("Debit") %]</th>
+    <th class="listheading">[%- LxERP.t8("Credit") %]</th>
+   </tr>
+  </thead>
+
+  <tbody>
+   [%- FOREACH transaction = TRANSACTIONS %]
+   <tr class="listrow[% loop.count % 2 %]">
+    <td>[%- transaction.gldate.to_kivitendo -%]</td>
+    <td align="right">[%- transaction.chart.accno -%]</td>
+    <td>[%- transaction.chart.description -%]</td>
+    <td align="right">[%- IF transaction.amount < 0 %] [%- LxERP.format_amount(transaction.amount * -1, 2) %] [% END %]</td>
+    <td align="right">[%- IF transaction.amount > 0 %] [%- transaction.amount_as_number -%] [%- END -%]</td>
+   </tr>
+   [%- END %]
+    <td colspan="2"></td>
+    <td align="right"><b>[%- LxERP.t8("Total") %]:</b></td>
+    <td align="right"><b>[%- LxERP.format_amount(debit_sum * -1, 2) %]</b></td>
+    <td align="right"><b>[%- LxERP.format_amount(credit_sum, 2) %]</b></td>
+   </tr>
+  </tbody>
+ </table>
+ <div>
diff --git a/templates/webpages/acc_trans/_mini_trial_balance.html b/templates/webpages/acc_trans/_mini_trial_balance.html
new file mode 100644 (file)
index 0000000..95f532c
--- /dev/null
@@ -0,0 +1,25 @@
+[% USE L %] [%- USE LxERP %] [%- USE HTML %]
+<div class="listtop">[%- HTML.escape(title) %]</div>
+
+ <table id="balances">
+  <thead>
+   <tr>
+    <th class="listheading">[%- LxERP.t8("Chart") %]</th>
+    <th class="listheading">[%- LxERP.t8("Description") %]</th>
+    <th class="listheading">[%- LxERP.t8("Debit") %]</th>
+    <th class="listheading">[%- LxERP.t8("Credit") %]</th>
+   </tr>
+  </thead>
+
+  <tbody>
+   [%- FOREACH balance = BALANCES %]
+   <tr class="listrow[% loop.count % 2 %]">
+    <td align="right">[%- balance.accno -%]</td>
+    <td>[%- balance.description -%]</td>
+    <td align="right">[%- IF balance.balance < 0 %] [%- LxERP.format_amount(balance.balance * -1, 2) %] [% END %]</td>
+    <td align="right">[%- IF balance.balance > 0 %] [%- LxERP.format_amount(balance.balance, 2) %] [%- END -%]</td>
+   </tr>
+   [%- END %]
+  </tbody>
+ </table>
+</div>