Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / customer_vendor_turnover / count_turnover.html
diff --git a/templates/webpages/customer_vendor_turnover/count_turnover.html b/templates/webpages/customer_vendor_turnover/count_turnover.html
new file mode 100644 (file)
index 0000000..6df5e45
--- /dev/null
@@ -0,0 +1,27 @@
+[%- USE T8 %]
+[%- USE LxERP %]
+[%- USE L %]
+[%- USE HTML %]
+<div id="turnover_statistic">
+  <table width="100%">
+    <tbody>
+      <tr>
+        <td class="listheading">[% 'Month/Year' | $T8 %]</td>
+        <td class="listheading">[% 'Invoices' | $T8 %]</td>
+        <td class="listheading">[% 'Turnover' | $T8 %]</td>
+        <td class="listheading">[% 'Net.Turnover' | $T8 %]</td>
+        <td class="listheading">[% 'Paid' | $T8 %]</td>
+      </tr>
+      [%- FOREACH row = SELF.turnover_statistic %]
+      <tr class="listrow[% loop.count % 2 %]">
+        <td>[% row.date_part | html %]</td>
+        <td>[% row.count | html %]</td>
+        <td class="numeric">[%- LxERP.format_amount(row.amount,2) %]</td>
+        <td class="numeric">[%- LxERP.format_amount(row.netamount,2) %]</td>
+        <td class="numeric">[%- LxERP.format_amount(row.paid,2) %]</td>
+      </tr>
+      [% END %]
+
+    </tbody>
+  </table>
+</div>