X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustomer_vendor_turnover%2Finvoices_statistic.html;h=c6dc91a975e1e8d3170b3f5372440283bca12569;hb=984f6322b98c8d0cd3ceb9f659ed6621d180e617;hp=16a15746102849d70dc503bbef913070593a4a5d;hpb=b058e195e82aa1f6b7614b8f83be6122ec3d3dca;p=kivitendo-erp.git diff --git a/templates/webpages/customer_vendor_turnover/invoices_statistic.html b/templates/webpages/customer_vendor_turnover/invoices_statistic.html index 16a157461..c6dc91a97 100644 --- a/templates/webpages/customer_vendor_turnover/invoices_statistic.html +++ b/templates/webpages/customer_vendor_turnover/invoices_statistic.html @@ -6,6 +6,7 @@ + @@ -15,14 +16,35 @@ [%- FOREACH row = invoices %] - - - - - - - + [% IF FORM.db == 'customer' %] + [% IF row.type == 'invoice' %] + [% SET type = 'Invoice (one letter abbreviation)' %] + [% SET link = 'is.pl' %] + [% ELSIF row.type == 'credit_note' %] + [% SET type = 'Credit note (one letter abbreviation)' %] + [% SET link = 'is.pl' %] + [% ELSE %] + [% SET type = 'AR Transaction (abbreviation)' %] + [% SET link = 'ar.pl' %] + [% END %] + [% ELSE %] + [% IF row.invoice %] + [% SET type = 'Invoice (one letter abbreviation)' %] + [% SET link = 'ir.pl' %] + [% ELSE %] + [% SET type = 'AP Transaction (abbreviation)' %] + [% SET link = 'ap.pl' %] + [% END %] + [% END %] + + + + + + + + [% END %]
[% 'Type' | $T8 %] [% 'Invoice Number' | $T8 %] [% 'Invoice Date' | $T8 %] [% '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) %] -
[% type | $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) %] +