X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustomer_vendor_turnover%2F_list_open_items.html;h=55dc7dfd4b4ff307434791a3b978ad24068f5787;hb=cecc0509e2a2abeaca123ab95a2364eb98d0a380;hp=4ea914803b522fbbd9809686bf6f86c5e36ae0ca;hpb=b058e195e82aa1f6b7614b8f83be6122ec3d3dca;p=kivitendo-erp.git
diff --git a/templates/webpages/customer_vendor_turnover/_list_open_items.html b/templates/webpages/customer_vendor_turnover/_list_open_items.html
index 4ea914803..55dc7dfd4 100644
--- a/templates/webpages/customer_vendor_turnover/_list_open_items.html
+++ b/templates/webpages/customer_vendor_turnover/_list_open_items.html
@@ -8,31 +8,57 @@
+ [% 'Type' | $T8 %] |
[% 'Invoice Number' | $T8 %] |
[% 'Invoice Date' | $T8 %] |
[% 'Amount' | $T8 %] |
[% 'Inv. Duedate' | $T8 %] |
[% 'Paid' | $T8 %] |
[% 'Open Amount' | $T8 %] |
- [% 'Dunnings (Id -- Dunning Date --Dunning Level -- Dunning Fee)' | $T8 %] |
+ [% IF FORM.db == 'customer' %]
+ [% 'Dunnings (Id -- Dunning Date --Dunning Level -- Dunning Fee)' | $T8 %] |
+ [% END %]
[%- FOREACH row = OPEN_ITEMS %]
-
- [% 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.transdate.to_kivitendo | html %] -- [% dun.dunning_level | html %] -- [%- LxERP.format_amount(dun.fee, 2) %]
+ [% 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 %]
- |
-
+
+ [% 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) %]
+ [% IF FORM.db == 'customer' %]
+ |
+ [%- IF row.dunning_config_id != '' %]
+ [%- FOREACH dun = row.dunnings %]
+ [% dun.dunning_id | html %] -- [% dun.transdate.to_kivitendo | html %] -- [% dun.dunning_level | html %] -- [%- LxERP.format_amount(dun.fee, 2) %]
+ [% END %]
+ [% END %]
+ |
+ [% END %]
+
[% END %]