From 26cfeadb8296f61fb4b5774a74f284a4c857144d Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Thu, 12 Nov 2015 09:59:49 +0100 Subject: [PATCH] Kundenstatistik: Templates --- templates/webpages/customer_vendor/form.html | 1 + .../_list_open_items.html | 39 +++++++++++++++++++ .../count_open_items_by_year.html | 23 +++++++++++ .../count_turnover.html | 27 +++++++++++++ .../dun_statistic.html | 22 +++++++++++ .../invoices_statistic.html | 33 ++++++++++++++++ .../customer_vendor_turnover/turnover.html | 11 ++++++ .../turnover_statistic.html | 21 ++++++++++ 8 files changed, 177 insertions(+) create mode 100644 templates/webpages/customer_vendor_turnover/_list_open_items.html create mode 100644 templates/webpages/customer_vendor_turnover/count_open_items_by_year.html create mode 100644 templates/webpages/customer_vendor_turnover/count_turnover.html create mode 100644 templates/webpages/customer_vendor_turnover/dun_statistic.html create mode 100644 templates/webpages/customer_vendor_turnover/invoices_statistic.html create mode 100644 templates/webpages/customer_vendor_turnover/turnover.html create mode 100644 templates/webpages/customer_vendor_turnover/turnover_statistic.html diff --git a/templates/webpages/customer_vendor/form.html b/templates/webpages/customer_vendor/form.html index 4b6e32e55..ae05d85c2 100644 --- a/templates/webpages/customer_vendor/form.html +++ b/templates/webpages/customer_vendor/form.html @@ -36,6 +36,7 @@ [% IF SELF.cv.id %]
  • [% 'Price Rules' | $T8 %]
  • [% END %] +
  • [% LxERP.t8('Turnovers') %] [%- IF SELF.open_items > 0 %]   $  [% END %]
  • [% PROCESS "customer_vendor/tabs/billing.html" %] diff --git a/templates/webpages/customer_vendor_turnover/_list_open_items.html b/templates/webpages/customer_vendor_turnover/_list_open_items.html new file mode 100644 index 000000000..51eb72166 --- /dev/null +++ b/templates/webpages/customer_vendor_turnover/_list_open_items.html @@ -0,0 +1,39 @@ +[%- USE T8 %] +[%- USE LxERP %] +[%- USE L %] +[%- USE HTML %] +
    [%- HTML.escape(title) %]
    + +
    + + + + + + + + + + + + + [%- FOREACH row = OPEN_ITEMS %] + + + + + + + + + [% END %] + +
    [% 'Invoice Number' | $T8 %][% 'Invoice Date' | $T8 %][% 'Amount' | $T8 %][% 'Inv. Duedate' | $T8 %][% 'Paid' | $T8 %][% 'Open Amount' | $T8 %][% 'Dunnings' | $T8 %]
    [% row.invnumber | html %][% row.transdate.to_kivitendo | html %][%- LxERP.format_amount(row.amount, 2) %][% row.duedate.to_kivitendo | html %][%- LxERP.format_amount(row.paid, 2) %][%- LxERP.format_amount(row.amount - row.paid,2) %] + + [%- IF row.dunning_config_id != '' %] + [%- FOREACH dun = row.dunnings %] + [% dun.dunning_id | html %] -- [% dun.duedate.to_kivitendo | html %] -- [% dun.dunning_level | html %] -- [% dun.fee %]
    + [% END %] + [% END %] +
    +
    diff --git a/templates/webpages/customer_vendor_turnover/count_open_items_by_year.html b/templates/webpages/customer_vendor_turnover/count_open_items_by_year.html new file mode 100644 index 000000000..8309b05f6 --- /dev/null +++ b/templates/webpages/customer_vendor_turnover/count_open_items_by_year.html @@ -0,0 +1,23 @@ +[%- USE T8 %] +[%- USE LxERP %] +[%- USE L %] +[%- USE HTML %] +
    + + + + + + + + + [%- FOREACH row = SELF.dun_statistic %] + + + + + + [% END %] + +
    [% 'Month/Year' | $T8 %][% 'Dunnings' | $T8 %][% 'Highest Dunninglevel' | $T8 %]
    [% row.date_part | html %][% row.count | html %][% row.max | 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 index 000000000..cf793e2e5 --- /dev/null +++ b/templates/webpages/customer_vendor_turnover/count_turnover.html @@ -0,0 +1,27 @@ +[%- USE T8 %] +[%- USE LxERP %] +[%- USE L %] +[%- USE HTML %] +
    + + + + + + + + + + [%- FOREACH row = SELF.turnover_statistic %] + + + + + + + + [% END %] + + +
    [% 'Month/Year' | $T8 %][% 'Invoices' | $T8 %][% 'Turnover' | $T8 %][% 'Net.Turnover' | $T8 %][% 'Paid' | $T8 %]
    [% row.date_part | html %][% row.count | html %][%- LxERP.format_amount(row.amount,2) %][%- LxERP.format_amount(row.netamount,2) %][%- LxERP.format_amount(row.paid,2) %]
    +
    diff --git a/templates/webpages/customer_vendor_turnover/dun_statistic.html b/templates/webpages/customer_vendor_turnover/dun_statistic.html new file mode 100644 index 000000000..7d46bf98c --- /dev/null +++ b/templates/webpages/customer_vendor_turnover/dun_statistic.html @@ -0,0 +1,22 @@ +[%- USE T8 %] +[%- USE LxERP %] +[%- USE L %] +[%- USE HTML %] + +

    +[% L.radio_button_tag('period', value='year', label= LxERP.t8('Year'), onclick='show_dun_stat("y");') %] + +[% L.radio_button_tag('period', value='month', label= LxERP.t8('Month'), onclick='show_dun_stat("m");') %] +

    + +
    diff --git a/templates/webpages/customer_vendor_turnover/invoices_statistic.html b/templates/webpages/customer_vendor_turnover/invoices_statistic.html new file mode 100644 index 000000000..7b8f3d945 --- /dev/null +++ b/templates/webpages/customer_vendor_turnover/invoices_statistic.html @@ -0,0 +1,33 @@ +[%- USE T8 %] +[%- USE LxERP %] +[%- USE L %] +[%- USE HTML %] +
    + + + + + + + + + + + + [%- FOREACH row = invoices %] + + + + + + + + [% END %] + +
    [% 'Invoice Number' | $T8 %][% 'Invoice Date' | $T8 %][% 'Amount' | $T8 %][% 'Inv. Duedate' | $T8 %][% 'Paid' | $T8 %][% 'Open Amount' | $T8 %]
    [% row.invnumber | html %][% row.transdate.to_kivitendo | html %][%- LxERP.format_amount(row.amount, 2) %][% row.duedate.to_kivitendo | html %][%- LxERP.format_amount(row.paid, 2) %][%- LxERP.format_amount(row.amount - row.paid, 2) %] +
    + + + + +
    diff --git a/templates/webpages/customer_vendor_turnover/turnover.html b/templates/webpages/customer_vendor_turnover/turnover.html new file mode 100644 index 000000000..310355d48 --- /dev/null +++ b/templates/webpages/customer_vendor_turnover/turnover.html @@ -0,0 +1,11 @@ +[%- USE T8 %] +[%- USE LxERP %] +[%- USE L %] +[%- USE HTML %] +[%- USE JavaScript -%] + +[%- IF open_items %] +[% open_items %] +[% END %] + +[% PROCESS "customer_vendor_turnover/_statistic_tabs.html" %] diff --git a/templates/webpages/customer_vendor_turnover/turnover_statistic.html b/templates/webpages/customer_vendor_turnover/turnover_statistic.html new file mode 100644 index 000000000..c2ea10ec5 --- /dev/null +++ b/templates/webpages/customer_vendor_turnover/turnover_statistic.html @@ -0,0 +1,21 @@ +[%- USE T8 %] +[%- USE LxERP %] +[%- USE L %] +[%- USE HTML %] +

    +[% L.radio_button_tag('period', value='year', label= LxERP.t8('Year'), onclick='show_turnover_stat("y");') %] + +[% L.radio_button_tag('period', value='month', label= LxERP.t8('Month'), onclick='show_turnover_stat("m");') %] +

    + +
    -- 2.20.1