Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision cd94e332

Von Bernd Bleßmann vor 7 Monaten hinzugefügt

  • ID cd94e3325af3478f5ce87ac4f1290488b5c42ede
  • Vorgänger 98acb4ab
  • Nachfolger 68db8240

CV: Belege-Tab: html-Templates offene Aufträge/Rechnungen: Presenter für Links

Unterschiede anzeigen:

templates/design40_webpages/customer_vendor_turnover/_list_open_items.html
1 1
[%- USE T8 %]
2 2
[%- USE LxERP %]
3
[%- USE L %]
3
[%- USE P %]
4 4
[%- USE HTML %]
5 5

  
6 6
<div id="sales_report" class="wrapper">
......
25 25
        [% IF FORM.db == 'customer' %]
26 26
          [% IF row.type == 'invoice' %]
27 27
            [% SET type = 'Invoice (one letter abbreviation)' %]
28
            [% SET link = 'is.pl' %]
29 28
          [% ELSIF row.type == 'credit_note' %]
30 29
            [% SET type = 'Credit note (one letter abbreviation)' %]
31
            [% SET link = 'is.pl' %]
32 30
          [% ELSE %]
33 31
            [% SET type = 'AR Transaction (abbreviation)' %]
34
            [% SET link = 'ar.pl' %]
35 32
          [% END %]
36 33
        [% ELSE %]
37 34
          [% IF row.invoice %]
38 35
            [% SET type = 'Invoice (one letter abbreviation)' %]
39
            [% SET link = 'ir.pl' %]
40 36
          [% ELSE %]
41 37
            [% SET type = 'AP Transaction (abbreviation)' %]
42
            [% SET link = 'ap.pl' %]
43 38
          [% END %]
44 39
        [% END %]
45 40
        <tr class="listrow[% loop.count % 2 %]">
46 41
          <td>[% type | $T8 %]</td>
47
          <td><a href="[% link %]?action=edit&id=[% row.id %]">[% row.invnumber | html %]</a></td>
42
          <td>[% P.invoice.invoice(row) %]</td>
48 43
          <td>[% row.transdate.to_kivitendo | html %]</td>
49 44
          <td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
50 45
          <td>[% row.duedate.to_kivitendo | html %]</td>
templates/design40_webpages/customer_vendor_turnover/_list_open_orders.html
1 1
[%- USE T8 %]
2 2
[%- USE LxERP %]
3
[%- USE L %]
3
[%- USE P %]
4 4
[%- USE HTML %]
5 5

  
6 6
<div id="orders_report" class="wrapper">
......
20 20

  
21 21
      [%- FOREACH row = orders %]
22 22
      <tr class="listrow[% loop.count % 2 %]">
23
        <td>[% IF row.quotation %]
24
          [% IF FORM.db == 'customer' %][% 'Sales quotation' | $T8 %][% ELSE %][% 'RFQ' | $T8 %][% END %]</td>
25
              [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
26
                <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) %]'>
27
                    [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
28
              [%- ELSE -%]
29
                <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) %]'>
30
                    [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
31
              [%- END -%]
32
            [% ELSE %]
33
            [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]</td>
34
              [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
35
                <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) %]'>
36
                    [% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
37
              [%- ELSE -%]
38
                <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) %]'>
39
                    [% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
40
              [%- END -%]
41
            [% END %]
23
        <td>
24
          [%- IF row.quotation -%]
25
            [% IF FORM.db == 'customer' %][% 'Sales quotation' | $T8 %][% ELSE %][% 'RFQ' | $T8 %][% END %]
26
          [%- ELSE -%]
27
            [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]
28
          [%- END -%]
29
        </td>
30
        <td>[% IF row.id %][% P.order.order(row) %][% END %]</td>
42 31
        <td>[% row.transdate.to_kivitendo | html %]</td>
43 32
        <td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
44 33
        <td>[% row.employee.name | html %]</td>
templates/webpages/customer_vendor_turnover/_list_open_items.html
1 1
[%- USE T8 %]
2 2
[%- USE LxERP %]
3
[%- USE L %]
3
[%- USE P %]
4 4
[%- USE HTML %]
5 5

  
6 6
<div id="sales_report">
......
24 24
        [% IF FORM.db == 'customer' %]
25 25
          [% IF row.type == 'invoice' %]
26 26
            [% SET type = 'Invoice (one letter abbreviation)' %]
27
            [% SET link = 'is.pl' %]
28 27
          [% ELSIF row.type == 'credit_note' %]
29 28
            [% SET type = 'Credit note (one letter abbreviation)' %]
30
            [% SET link = 'is.pl' %]
31 29
          [% ELSE %]
32 30
            [% SET type = 'AR Transaction (abbreviation)' %]
33
            [% SET link = 'ar.pl' %]
34 31
          [% END %]
35 32
        [% ELSE %]
36 33
          [% IF row.invoice %]
37 34
            [% SET type = 'Invoice (one letter abbreviation)' %]
38
            [% SET link = 'ir.pl' %]
39 35
          [% ELSE %]
40 36
            [% SET type = 'AP Transaction (abbreviation)' %]
41
            [% SET link = 'ap.pl' %]
42 37
          [% END %]
43 38
        [% END %]
44 39
        <tr class="listrow[% loop.count % 2 %]">
45 40
          <td>[% type | $T8 %]</td>
46
          <td><a href="[% link %]?action=edit&id=[% row.id %]">[% row.invnumber | html %]</a></td>
41
          <td>[% P.invoice.invoice(row) %]</td>
47 42
          <td>[% row.transdate.to_kivitendo | html %]</td>
48 43
          <td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
49 44
          <td>[% row.duedate.to_kivitendo | html %]</td>
templates/webpages/customer_vendor_turnover/_list_open_orders.html
1 1
[%- USE T8 %]
2 2
[%- USE LxERP %]
3
[%- USE L %]
3
[%- USE P %]
4 4
[%- USE HTML %]
5 5

  
6 6
<div id="orders_report">
......
18 18

  
19 19
      [%- FOREACH row = orders %]
20 20
      <tr class="listrow[% loop.count % 2 %]">
21
        <td>[% IF row.quotation %]
22
          [% IF FORM.db == 'customer' %][% 'Sales quotation' | $T8 %][% ELSE %][% 'RFQ' | $T8 %][% END %]</td>
23
              [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
24
                <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) %]'>
25
                    [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
26
              [%- ELSE -%]
27
                <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) %]'>
28
                    [% END %][% HTML.escape(row.quonumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
29
              [%- END -%]
30
            [% ELSE %]
31
            [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]</td>
32
              [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
33
                <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) %]'>
34
                    [% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
35
              [%- ELSE -%]
36
                <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) %]'>
37
                    [% END %][% HTML.escape(row.ordnumber)   || '&nbsp;' %][% IF row.id %]</a>[% END %]</td>
38
              [%- END -%]
39
            [% END %]
21
        <td>
22
          [%- IF row.quotation -%]
23
            [% IF FORM.db == 'customer' %][% 'Sales quotation' | $T8 %][% ELSE %][% 'RFQ' | $T8 %][% END %]
24
          [%- ELSE -%]
25
            [% IF FORM.db == 'customer' %][% 'Sales Order' | $T8 %][% ELSE %][% 'Purchase Order' | $T8 %][% END %]
26
          [%- END -%]
27
        </td>
28
        <td>[% IF row.id %][% P.order.order(row) %][% END %]</td>
40 29
        <td>[% row.transdate.to_kivitendo | html %]</td>
41 30
        <td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
42 31
        <td>[% row.employee.name | html %]</td>

Auch abrufbar als: Unified diff