]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Kundenstatistik: Links bei Orders waren noch falsch
authorWerner Hahn <wh@futureworldsearch.net>
Tue, 11 Sep 2018 15:18:55 +0000 (17:18 +0200)
committerWerner Hahn <wh@futureworldsearch.net>
Tue, 11 Sep 2018 15:18:55 +0000 (17:18 +0200)
templates/webpages/customer_vendor_turnover/_list_open_orders.html
templates/webpages/customer_vendor_turnover/order_statistic.html
templates/webpages/customer_vendor_turnover/quotation_statistic.html

index a2f9b6079ef1a10820185fe57df79ffa940f25f0..ae20d68866e868b76072a411174cbdc8e6fbd5b5 100644 (file)
         <td>[% IF row.quotation %]
           [% IF FORM.db == 'customer' %][% 'Sales quotation' | $T8 %][% ELSE %][% 'RFQ' | $T8 %][% END %]</td>
               [%- IF INSTANCE_CONF.get_feature_experimental -%]
         <td>[% IF row.quotation %]
           [% IF FORM.db == 'customer' %][% 'Sales quotation' | $T8 %][% ELSE %][% 'RFQ' | $T8 %][% END %]</td>
               [%- IF INSTANCE_CONF.get_feature_experimental -%]
-                <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+                <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>
+                    [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
               [%- ELSE -%]
               [%- ELSE -%]
-                <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+                <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.oe_id) %]'>
+                    [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
               [%- END -%]
             [% ELSE %]
             [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]</td>
               [%- IF INSTANCE_CONF.get_feature_experimental -%]
               [%- END -%]
             [% ELSE %]
             [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]</td>
               [%- IF INSTANCE_CONF.get_feature_experimental -%]
-                <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+                <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>
+                    [% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
               [%- ELSE -%]
               [%- ELSE -%]
-                <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+                <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.oe_id) %]'>
+                    [% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
               [%- END -%]
             [% END %]
         <td>[% row.transdate.to_kivitendo | html %]</td>
               [%- END -%]
             [% END %]
         <td>[% row.transdate.to_kivitendo | html %]</td>
index 2d52392a65e85148edcb72c3cf644901e0ed9d25..151843a6490987858e8971ec83682a39a51129a9 100644 (file)
@@ -16,9 +16,9 @@
       [%- FOREACH row = orders %]
       <tr class="listrow[% loop.count % 2 %]">
         [%- IF INSTANCE_CONF.get_feature_experimental -%]
       [%- FOREACH row = orders %]
       <tr class="listrow[% loop.count % 2 %]">
         [%- IF INSTANCE_CONF.get_feature_experimental -%]
-          <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+          <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
         [%- ELSE -%]
         [%- ELSE -%]
-          <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+          <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
         [%- END -%]
         <td>[% row.transdate.to_kivitendo | html %]</td>
         <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
         [%- END -%]
         <td>[% row.transdate.to_kivitendo | html %]</td>
         <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
index 03c595a3a0f403ac4d969df44d2757165d0f37c7..3ca521d242813e86c4d92e750471255f21f98187 100644 (file)
       [%- FOREACH row = orders %]
       <tr class="listrow[% loop.count % 2 %]">
         [%- IF INSTANCE_CONF.get_feature_experimental -%]
       [%- FOREACH row = orders %]
       <tr class="listrow[% loop.count % 2 %]">
         [%- IF INSTANCE_CONF.get_feature_experimental -%]
-          <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+          <td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>
+              [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
         [%- ELSE -%]
         [%- ELSE -%]
-          <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
+          <td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.oe_id) %]'>
+              [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
         [%- END -%]
         <td>[% row.transdate.to_kivitendo | html %]</td>
         <td>[%- LxERP.format_amount(row.amount, 2) %]</td>
         [%- END -%]
         <td>[% row.transdate.to_kivitendo | html %]</td>
         <td>[%- LxERP.format_amount(row.amount, 2) %]</td>