Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e4a1181c

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID e4a1181c4fd36bf336c9dbc20dcf2fdd8102bd05
  • Vorgänger becc3467
  • Nachfolger e9c895f9

Neues kivitendo Design Aenderungen in templates/webpages/oe/..

Unterschiede anzeigen:

templates/webpages/oe/form_footer.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %]
5
[%- IF is_req_quo || is_pur_ord %]
6
  [%- SET allow_invoice=1 %]
7
[%- ELSIF is_sales_quo && INSTANCE_CONF.get_allow_sales_invoice_from_sales_quotation %]
8
  [%- SET allow_invoice=1 %]
9
[%- ELSIF is_sales_ord && INSTANCE_CONF.get_allow_sales_invoice_from_sales_order %]
10
  [%- SET allow_invoice=1 %]
11
[%- ELSE %]
12
  [%- SET allow_invoice=0 %]
13
[%- END %]
14
  <tr>
15
    <td>
16
      <table width="100%">
17
        <tr valign="bottom">
18
          <td>
19
            <table>
20
              <tr>
21
                <th align="left">[% 'Notes' | $T8 %]</th>
22
                <th align="left">[% 'Internal Notes' | $T8 %]</th>
23
              </tr>
24
              <tr valign="top">
25
                <td>[% notes %]</td>
26
                <td>[% intnotes %]</td>
27
              </tr>
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5
[% IF is_req_quo || is_pur_ord %]
6
  [% SET allow_invoice=1 %]
7
[% ELSIF is_sales_quo && INSTANCE_CONF.get_allow_sales_invoice_from_sales_quotation %]
8
  [% SET allow_invoice=1 %]
9
[% ELSIF is_sales_ord && INSTANCE_CONF.get_allow_sales_invoice_from_sales_order %]
10
  [% SET allow_invoice=1 %]
11
[% ELSE %]
12
  [% SET allow_invoice=0 %]
13
[% END %]
14

  
15

  
16
<table class="full-width">
17
  <colgroup> <col style="width:25%"><col style="width:25%"><col style="width:25%"><col style="width:25%"> </colgroup>
18
  <tbody>
19
    <tr>
20
      <td>
21
        [% IF show_weight %]
22
          <span class="label">[% 'Total weight' | $T8 %]:</span> [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
23
          <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
24
        [% END %]</td>
25
      <td>
26
        [% IF is_sales %]
27
          <div class="table">
28
          <div class="field">
29
            <span class="label wi-small">[% 'Ertrag' | $T8 %]:</span> <span class="value">[% LxERP.format_amount(marge_total, 2) %]</span>
30
          </div>
31
          <div class="field">
32
            <span class="label wi-small">[% 'Ertrag prozentual' | $T8 %]:</span> <span class="value">[% LxERP.format_amount(marge_percent, 2) %] %</span>
33
          </div>
34
          </div>
35
          <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
36
        [% END %]
37
      </td>
38
      <td>
39
        [% IF taxaccounts %]
40
          <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
41
          <label for="cbck_taxincluded">[% 'Tax Included' | $T8 %]</label>
42
          <input type="checkbox" name="taxincluded" id="cbck_taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" value="1"[% IF taxincluded %] checked[% END %]>
43
        [% END %]
44
      </td>
45
      <td class="right">
46
        <table class="tbl-list full-width" style="float:left">
47
          <tfoot>
48
            [% IF NOT taxincluded %]
28 49
              <tr>
29
                <th align="right">[% 'Payment Terms' | $T8 %]</th>
30
                <td>[% L.select_tag('payment_id', ALL_PAYMENTS, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]</td>
50
                <th>[% 'Subtotal' | $T8 %]</th>
51
                <td class="numeric">[% LxERP.format_amount(invsubtotal, 2) %]</td>
31 52
              </tr>
53
            [% END %]
54
            [% tax %]
55
            [% IF rounding %]
32 56
              <tr>
33
                <th align="right">[% 'Delivery Terms' | $T8 %]</th>
34
                <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]</td>
57
                <th>[% 'Rounding' | $T8 %]</th>
58
                <td class="numeric">[% LxERP.format_amount(rounding, 2) %]</td>
35 59
              </tr>
36

  
37
[%- IF is_sales_ord %]
38
            <tr>
39
             <th align="right">[%- LxERP.t8('Periodic Invoices') %]</th>
40
             <td>
41
              [% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure')) %]
42
              ([% HTML.escape(periodic_invoices_status) %])
43
              [% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
44
              <a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank">?</a>
45
             </td>
46
            </tr>
47
[%- END %]
48

  
49
      [%- IF id && num_follow_ups %]
50
      <tr>
51
       <td colspan="2">[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</td>
52
      </tr>
53
      [%- END %]
54
      </table>
55
          </td>
56
      [%- IF show_weight %]
57
          <td>
58
            <table>
59
            <tr>
60
              <th  align="left">[% 'Total weight' | $T8 %]</th>
61
              <td align="right">
62
                [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
63
              </td>
64
            </tr>
65
            </table>
66
          </td>
67
      [%- END %]
68
[%- IF is_sales %]
69
          <td>
70
            <table>
71

  
72
            <tr>
73
              <th  align="left">[% 'Ertrag' | $T8 %]</th>
74
              <td align="right">
75
                [% LxERP.format_amount(marge_total, 2) %]
76
                <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
77
              </td>
78
            </tr>
60
            [% END %]
79 61
            <tr>
80
              <th  align="left">[% 'Ertrag prozentual' | $T8 %]</th>
81
              <td align="right">
82
                [% LxERP.format_amount(marge_percent, 2) %]
83
                <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
62
              <th>[% 'Total' | $T8 %]</th>
63
              <td class="numeric">
64
                [% LxERP.format_amount(invtotal, 2) %]
65
                <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
66
                <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
84 67
              </td>
85
              <td>%</td>
86 68
            </tr>
87
            </table>
88
          </td>
89
[%- END %]
90
          <td align="right">
91

  
92
[%- IF taxaccounts %]
93
            <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
94
            <input name="taxincluded" class="checkbox" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>[% 'Tax Included' | $T8 %]</b><br><br>
95
[%- END %]
96
            <table>
97
[%- IF NOT taxincluded %]
98
              <tr>
99
                <th align='right'>[% 'Subtotal' | $T8 %]</th>
100
                <td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
101
              </tr>
102
[%- END %]
103
              [% tax %]
104
[%- IF rounding %]
105
              <tr>
106
                <th align='right'>[% 'Rounding' | $T8 %]</th>
107
                <td align='right'>[% LxERP.format_amount(rounding, 2) %]</td>
108
              </tr>
109
[%- END %]
110
              <tr>
111
                <th align="right">[% 'Total' | $T8 %]</th>
112
                <td align="right">[% LxERP.format_amount(invtotal, 2) %]
113
                  <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
114
                  <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
115
                </td>
116
              </tr>
117
            </table>
118
          </td>
119
        </tr>
120
      </table>
121
    </td>
122
  </tr>
69
          </tfoot>
70
        </table>
71
      </td>
72
    </tr>
73
  </tbody>
123 74
</table>
124 75

  
125
</div>
126
[%- PROCESS 'webdav/_list.html' %]
76
</div><!-- .ui-tabs-panel  -->
77

  
78

  
79

  
80

  
81
[% PROCESS 'webdav/_list.html' %]
127 82
<div id="ui-tabs-1">
128
 [%- LxERP.t8("Loading...") %]
83
 [% LxERP.t8("Loading...") %]
129 84
</div>
85

  
86

  
130 87
</div>
131 88

  
132 89
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
......
147 104
<div id="print_options" class="hidden">
148 105
 [% print_options %]
149 106
</div>
150
</form>
107

  
151 108

  
152 109
<div id="shipto_dialog" class="hidden"></div>
153 110
<div id="print_dialog" class="hidden">
154
 [%- PROCESS 'common/_print_dialog.html' %]
111
 [% PROCESS 'common/_print_dialog.html' %]
155 112
</div>
113

  
114
</form>

Auch abrufbar als: Unified diff