Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 77f7372c

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

  • ID 77f7372ce9c1338e80f3922023ab7d77edf84cc5
  • Vorgänger abdd2e61
  • Nachfolger 489e85ab

Neues kivitendo Design restliche Aenderungen in templates/webpages/i*

Dateien ic/* io/* ir/* is/*

Unterschiede anzeigen:

templates/webpages/is/form_footer.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE LxERP %]
4
[%- USE L %][%- USE P -%]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE LxERP %]
4
[% USE L %]
5
[% USE P %]
6

  
7
<!--
8
  Total-Lines of Invoice Items
9
  Within the big colspan/rowspan cell there are weight information
10
-->
11
<table class="tbl-list footer-only full-width">
12
  <colgroup>
13
    <col style="width: 75%;">
14
    <col style="width: 15%;">
15
    <col style="width: 10%;">
16
  </colgroup>
17
  <tfoot>
18
  [% UNLESS taxincluded %]
5 19
  <tr>
6
   <td>
7
    <table width="100%">
8
     <tr valign="bottom">
9
      <td>
10
       <table>
11
        <tr>
12
         <th align="left">[% 'Notes (will appear on hard copy)' | $T8 %]</th>
13
         <th align="left">[% 'Internal Notes' | $T8 %]</th>
14
         <th align="right">[% 'Payment / Delivery Options' | $T8 %]</th>
15
        </tr>
16
        <tr valign="top">
17
         <td>
18
          [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
19
         </td>
20
         <td>
21
          <textarea name="intnotes" rows="[% rows %]" cols="35">[% intnotes %]</textarea>
22
         </td>
23
         <td>
24
           <table>
25
             <tr>
26
               <th align="right">[% 'Payment Terms' | $T8 %]</th>
27
               <td>[% L.select_tag('payment_id', payment_terms, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]
28
                 <script type='text/javascript'>$('#payment_id').change(function(){ kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate"); })</script>
29
               </td>
30
             </tr>
31
             <tr>
32
               <th align="right">[% 'Delivery Terms' | $T8 %] </th>
33
               <td>
34
                 [% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]
35
               </td>
36
             </tr>
37
             <tr>
38
               <th align="right">[% 'direct debit' | $T8 %]</th>
39
               <td>
40
                 [%- L.checkbox_tag('direct_debit', 'checked', direct_debit) %]
41
               </td>
42
             </tr>
43
           </table>
44
         </td>
45
        </tr>
46
[%- IF id && follow_ups.size %]
47
        <tr>
48
          <td colspan="2">
49
            [%- LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
50
          <td>
51
        </tr>
52
[%- END %]
53
       </table>
54
      </td>
55
[%- IF show_weight %]
56
      <td>
57
       <table>
58
        <tr>
59
         <th  align=left>[% 'Total weight' | $T8 %]</th>
60
         <td>
61
          [% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]
62
         </td>
63
        </tr>
64
       </table>
65
      </td>
66
[%- END %]
67
      <td>
68
       <table>
69
        <tr>
70
         <th  align=left>[% 'Ertrag' | $T8 %]</th>
71
         <td>
72
          [% LxERP.format_amount(marge_total, 2, 0) %]
73
          <input type=hidden name="marge_total" value="[% marge_total %]">
74
         </td>
75
        </tr>
76
        <tr>
77
         <th  align=left>[% 'Ertrag prozentual' | $T8 %]</th>
78
         <td>
79
          [% LxERP.format_amount(marge_percent, 2, 0) %] %
80
          <input type=hidden name="marge_percent" value="[% marge_percent %]">
81
         </td>
82
        </tr>
83
       </table>
84
      </td>
85
      <td align="right">
86
  [%- IF taxaccounts %]
87
       <input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
88
       <input name="taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" class="checkbox" type="checkbox" [% IF taxincluded %]checked[% END %]>
89
       <b>[% 'Tax Included' | $T8 %]</b>
90
       <br>
91
       <br>
92
  [%- END %]
93
       <table>
20
    <td>
21
      [% IF show_weight %]
22
        <div class="info-block"><!-- PENDENT: vereinheitlichen -->
23
          <span class="info-label">[% 'Total weight' | $T8 %]</span>
24
          <span class="info-value">[% LxERP.format_amount(totalweight) %] [% HTML.escape(weightunit) %]</span>
25
        </div>
26
      [% END %]
27
    </td><!-- <td></td><td></td><td></td><td></td><td></td><td></td><td></td> -->
28
    <th>[% 'Subtotal' | $T8 %]</th>
29
    <td class="numeric">[% LxERP.format_amount(invsubtotal, 2) %]</td>
30
  </tr>
31
  [% END %]
94 32

  
95
[%- UNLESS taxincluded %]
96
        <tr>
97
         <th align="right">[% 'Subtotal' | $T8 %]</th>
98
         <td align="right">[% LxERP.format_amount(invsubtotal, 2) %]</td>
99
       </tr>
100
[%- END %]
33
  [%# tax %]
34
  [% FOREACH item = taxaccounts_array %]
35
    [% SET description_ref = item _ '_description' %]
36
    [% SET rate_ref        = item _ '_rate' %]
37
    [% SET total_ref       = item _ '_total' %]
38
    [% SET netto_ref       = item _ '_netto' %]
39
    <tr>
40
      <td></td>
41
      <th>[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
42
      <td class="numeric">[% LxERP.format_amount($total_ref, 2) %]</td>
43
    </tr>
44
    [% IF taxincluded %]
45
      <tr>
46
        <td></td>
47
        <th>[% 'Net amount' | $T8 %]</th>
48
        <td class="numeric">[% LxERP.format_amount($netto_ref, 2) %]</td>
49
      </tr>
50
    [% END %]
51
  [% END %]
52
  [% IF rounding %]
53
    <tr>
54
    <td></td>
55
      <th>[% 'Rounding' | $T8 %]</th>
56
      <td class="numeric">[% LxERP.format_amount(rounding, 2) %]</td>
57
    </tr>
58
  [% END %]
59
  <tr>
60
    <td></td>
61
    <th>[% 'Total' | $T8 %]</th>
62
    <td class="numeric">[% LxERP.format_amount(invtotal, 2) %]</td>
63
  </tr>
64
  <tr>
65
    <td></td>
66
    <th>[% 'Ertrag' | $T8 %]</th>
67
    <td class="numeric">
68
      [% LxERP.format_amount(marge_total, 2, 0) %]
69
      <input type=hidden name="marge_total" value="[% marge_total %]" class="numeric">
70
    </td>
71
  </tr>
72
  <tr>
73
    <td></td>
74
    <th>[% 'Ertrag prozentual' | $T8 %]</th>
75
    <td class="numeric">
76
      [% LxERP.format_amount(marge_percent, 2, 0) %] %
77
      <input type=hidden name="marge_percent" value="[% marge_percent %]" class="numeric">
78
    </td>
79
  </tr>
80
  </tfoot>
81
</table>
101 82

  
102
[%# tax %]
103
[% FOREACH item = taxaccounts_array %]
104
[% SET description_ref = item _ '_description' %]
105
[% SET rate_ref        = item _ '_rate' %]
106
[% SET total_ref       = item _ '_total' %]
107
[% SET netto_ref       = item _ '_netto' %]
108
       <tr>
109
        <th align="right">[% 'Including' | $T8 %] [% $description_ref | html %]&nbsp;[% $rate_ref * 100 %]%</th>
110
        <td align="right">[% LxERP.format_amount($total_ref, 2) %]</td>
111
       </tr>
112
  [%- IF taxincluded %]
113
       <tr>
114
        <th align="right">[% 'Net amount' | $T8 %]</th>
115
        <td align="right">[% LxERP.format_amount($netto_ref, 2) %]</td>
116
       </tr>
117
  [%- END %]
118
[%- END %]
83
[% IF id && follow_ups.size %]
84
  <div class="message message_hint">
85
      [% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_ups.size, follow_ups_unfinished) | html %]
86
  </div>
87
[% END %]
119 88

  
120
[%- IF rounding %]
121
        <tr>
122
          <th align='right'>[% 'Rounding' | $T8 %]</th>
123
          <td align='right'>[% LxERP.format_amount(rounding, 2) %]</td>
124
        </tr>
125
[%- END %]
89
[% PROCESS 'is/_payments.html' %]
126 90

  
127
        <tr>
128
         <th align="right">[% 'Total' | $T8 %]</th>
129
         <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
130
        </tr>
131
       </table>
132
      </td>
133
     </tr>
134
    </table>
135
   </td>
136
  </tr>
91
</div><!--  /.ui-tabs-panel /#ui-tabs-basic-data -->
137 92

  
138
[% PROCESS 'is/_payments.html' %]
139
 </table>
140
</div>
141 93
[% PROCESS 'webdav/_list.html' %]
142
<div id="ui-tabs-1">
143
 [% LxERP.t8('Loading...') %]
144
</div>
94

  
95
<div id="ui-tabs-1" class="ui-tabs-panel" style="display:none">
96
  <div class="wrapper">
97
    [% LxERP.t8('Loading...') %]
98
  </div>
99
</div><!-- /#ui-tabs-1 -->
100

  
145 101
</div>
146 102

  
147 103
<input type="hidden" name="rowcount" value="[% rowcount %]">
......
151 107
<input type="hidden" name="customer_discount" value="[% customer_discount %]">
152 108
<input type="hidden" name="gldate" value="[% gldate %]">
153 109

  
154
<div id="shipto_inputs" class="hidden">
155
 [%- PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]
156
</div>
157

  
110
<div id="shipto_inputs" class="hidden">[% PROCESS 'common/_ship_to_dialog.html' cvars=shipto_cvars %]</div>
158 111
<div id="email_inputs" style="display: none"></div>
112
<div id="print_options" style="display: none">[% print_options %]</div>
159 113

  
160
<div id="print_options" style="display: none">
161
 [% print_options %]
162
</div>
163 114
</form>
164 115
<script type='text/javascript'>
165
 $(kivi.SalesPurchase.init_on_submit_checks);
116
  $(kivi.SalesPurchase.init_on_submit_checks);
166 117
</script>
167 118

  
168 119
<div id="shipto_dialog" class="hidden"></div>
169
<div id="print_dialog" class="hidden">
170
 [%- PROCESS 'common/_print_dialog.html' %]
171
</div>
120
<div id="print_dialog" class="hidden"><form action="#" name="fake-print-dialog" id="fake-print-dialog">[% PROCESS 'common/_print_dialog.html' %]</form></div>

Auch abrufbar als: Unified diff