Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2a5030b2

Von Sven Schöling vor mehr als 16 Jahren hinzugefügt

  • ID 2a5030b2dcfe53c431a7498b7bae56939020643b
  • Vorgänger 7dd79a83
  • Nachfolger 648b2e7e

Refactoring.

Angleichung der Templatenamen in OE an das allgemeine Namensschema.

Unterschiede anzeigen:

bin/mozilla/oe.pl
471 471
     is_pur_ord      => scalar ($form->{type} =~ /purchase_order$/),
472 472
  );
473 473

  
474
  print $form->parse_html_template("oe/orders_header", { %TMPL_VAR });
474
  print $form->parse_html_template("oe/form_header", { %TMPL_VAR });
475 475

  
476 476
  $lxdebug->leave_sub();
477 477
}
......
530 530

  
531 531
  $form->{oldinvtotal} = $form->{invtotal};
532 532

  
533
  print $form->parse_html_template("oe/orders_footer", {
533
  print $form->parse_html_template("oe/form_footer", {
534 534
     %TMPL_VAR,
535 535
     webdav          => $webdav,
536 536
     print_options   => print_options(inline => 1),
templates/webpages/oe/form_footer_de.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
  <tr>
4
    <td>
5
      <table width="100%">
6
        <tr valign="bottom">
7
          <td>
8
            <table>
9
              <tr>
10
                <th align="left">Bemerkungen</th>
11
                <th align="left">interne Bemerkungen</th>
12
              </tr>
13
              <tr valign="top">
14
                <td>[% notes %]</td>
15
                <td>[% intnotes %]</td>
16
              </tr>
17
              <tr>
18
                <th align="right">Zahlungskonditionen</th>
19
                <td>
20
                      [%- INCLUDE 'generic/multibox.html'
21
                           name       = 'payment_id',
22
                           style      = 'width: 250px',
23
                           DATA       = ALL_PAYMENTS,
24
                           id_key     = 'id',
25
                           label_key  = 'description',
26
                           show_empty = 1 -%]
27
                </td>
28
            </tr>
29
      [%- IF id && num_follow_ups %]
30
      <tr>
31
       <td colspan="2">[% LxERP.format_string('Es gibt #1 Wiedervorlage(n), von denen #2 f&auml;llig ist/sind.', num_follow_ups, num_due_follow_ups) %]</td>
32
      </tr>
33
      [%- END %]
34
      </table>
35
          </td>
36
[%- IF is_sales %]
37
          <td>
38
            <table>
39

  
40
            <tr>
41
              <th  align="left">Ertrag</th>
42
              <td align="right">[% LxERP.format_amount(marge_total, 2) %]</td>
43
            </tr>
44
            <tr>
45
              <th  align="left">Ertrag prozentual</th>
46
              <td align="right">[% LxERP.format_amount(marge_percent, 2) %]</td>
47
              <td>%</td>
48
            </tr>
49

  
50
            <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
51
            <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
52
            </table>
53
          </td>
54
[%- END %]
55
          <td align="right">
56
[%- IF taxaccounts %]
57
            <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>Steuer im Preis inbegriffen</b><br><br>
58
[%- END %]
59
            <table>
60
              [% subtotal %]
61
              [% tax %]
62
              <tr>
63
                <th align="right">Summe</th>
64
                <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
65
              </tr>
66
            </table>
67
          </td>
68
        </tr>
69
      </table>
70
    </td>
71
  </tr>
72
  <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
73
  <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
74
  <tr>
75
    <td><hr size="3" noshade></td>
76
  </tr>
77

  
78
[%- IF webdav %]
79
  <tr>
80
    <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
81
  </tr>
82
  <tr>
83
   <td>
84
    <table width="100%">
85
     <tr>
86
      <td align="left" width="30%"><b>Dateiname</b></td>
87
      <td align="left" width="70%"><b>Webdavlink</b></td>
88
     </tr>
89
 [%- FOREACH file="WEBDAV" %]
90
      <tr>
91
        <td align="left">[% HTML.escape(file.name) %]</td>
92
        <td align="left"><a href="[% file.link %]">[% HTML.escape(file.type) %]</a></td>
93
      </tr>
94
 [%- END %]
95
    </table>
96
   </td>
97
  </tr>
98
  <tr>
99
    <td><hr size="3" noshade></td>
100
  </tr>
101
[%- END %]
102

  
103
  <tr>
104
    <td>
105
      [% print_options %]
106
    </td>
107
  </tr>
108
</table>
109

  
110
[% label_edit %]<br>
111
<input class="submit" type="submit" name="action" id="update_button" value="Erneuern">
112
<input class="submit" type="submit" name="action" value="Lieferadresse">
113
<input class="submit" type="submit" name="action" value="Drucken">
114
<input class="submit" type="submit" name="action" value="eMail">
115
<input class="submit" type="submit" name="action" value="Speichern">
116
<input class="submit" type="submit" name="action" value="Speichern und schlie?en">
117

  
118
[%- IF id %]
119
  <input type="button" class="submit" onclick="follow_up_window()" value="Wiedervorlage">
120
  <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="Historie">
121

  
122
  <br>[% label_workflow %]<br>
123
  <input class="submit" type="submit" name="action" value="als neu speichern">
124
  <input class="submit" type="submit" name="action" value="L?schen">
125

  
126
  [%- IF is_sales_quo %]
127
    <input class="submit" type="submit" name="action" value="Kundenauftrag">
128
  [%- END %]
129

  
130
  [%- IF is_req_quo %]
131
    <input class="submit" type="submit" name="action" value="Lieferantenauftrag">
132
  [%- END %]
133

  
134
  [%- IF is_sales_ord || is_pur_ord %]
135
    <input class="submit" type="submit" name="action" value="Lieferschein">
136
  [%- END %]
137

  
138
  <input class="submit" type="submit" name="action" value="Rechnung">
139

  
140
  <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
141
  [%- IF is_sales_ord %]
142
    <input class="submit" type="submit" name="action" value="Lieferantenauftrag">
143
    <input class="submit" type="submit" name="action" value="Angebot">
144
  [%- ELSE %]
145
   [%- IF is_pur_ord %]
146
    <input class="submit" type="submit" name="action" value="Kundenauftrag">
147
    <input class="submit" type="submit" name="action" value="Anfrage">
148
   [%- ELSE %]
149
    <input class="submit" type="submit" name="action" value="Auftrag">
150
   [%- END %]
151
  [%- END %]
152
[%- END %]
153

  
154
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
155
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
156
<input type="hidden" name="callback" value="[% callback %]">
157

  
158
</form>
159

  
160
</body>
161
</html>
templates/webpages/oe/form_footer_master.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
  <tr>
4
    <td>
5
      <table width="100%">
6
        <tr valign="bottom">
7
          <td>
8
            <table>
9
              <tr>
10
                <th align="left"><translate>Notes</translate></th>
11
                <th align="left"><translate>Internal Notes</translate></th>
12
              </tr>
13
              <tr valign="top">
14
                <td>[% notes %]</td>
15
                <td>[% intnotes %]</td>
16
              </tr>
17
              <tr>
18
                <th align="right"><translate>Payment Terms</translate></th>
19
                <td>
20
                      [%- INCLUDE 'generic/multibox.html'
21
                           name       = 'payment_id',
22
                           style      = 'width: 250px',
23
                           DATA       = ALL_PAYMENTS,
24
                           id_key     = 'id',
25
                           label_key  = 'description',
26
                           show_empty = 1 -%]
27
                </td>
28
            </tr>
29
      [%- IF id && num_follow_ups %]
30
      <tr>
31
       <td colspan="2">[% LxERP.format_string('<translate>There are #1 unfinished follow-ups of which #2 are due.</translate>', num_follow_ups, num_due_follow_ups) %]</td>
32
      </tr>
33
      [%- END %]
34
      </table>
35
          </td>
36
[%- IF is_sales %]
37
          <td>
38
            <table>
39

  
40
            <tr>
41
              <th  align="left"><translate>Ertrag</translate></th>
42
              <td align="right">[% LxERP.format_amount(marge_total, 2) %]</td>
43
            </tr>
44
            <tr>
45
              <th  align="left"><translate>Ertrag prozentual</translate></th>
46
              <td align="right">[% LxERP.format_amount(marge_percent, 2) %]</td>
47
              <td>%</td>
48
            </tr>
49

  
50
            <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
51
            <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
52
            </table>
53
          </td>
54
[%- END %]
55
          <td align="right">
56
[%- IF taxaccounts %]
57
            <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b><translate>Tax Included</translate></b><br><br>
58
[%- END %]
59
            <table>
60
              [% subtotal %]
61
              [% tax %]
62
              <tr>
63
                <th align="right"><translate>Total</translate></th>
64
                <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
65
              </tr>
66
            </table>
67
          </td>
68
        </tr>
69
      </table>
70
    </td>
71
  </tr>
72
  <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
73
  <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
74
  <tr>
75
    <td><hr size="3" noshade></td>
76
  </tr>
77

  
78
[%- IF webdav %]
79
  <tr>
80
    <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
81
  </tr>
82
  <tr>
83
   <td>
84
    <table width="100%">
85
     <tr>
86
      <td align="left" width="30%"><b>Dateiname</b></td>
87
      <td align="left" width="70%"><b>Webdavlink</b></td>
88
     </tr>
89
 [%- FOREACH file="WEBDAV" %]
90
      <tr>
91
        <td align="left">[% HTML.escape(file.name) %]</td>
92
        <td align="left"><a href="[% file.link %]">[% HTML.escape(file.type) %]</a></td>
93
      </tr>
94
 [%- END %]
95
    </table>
96
   </td>
97
  </tr>
98
  <tr>
99
    <td><hr size="3" noshade></td>
100
  </tr>
101
[%- END %]
102

  
103
  <tr>
104
    <td>
105
      [% print_options %]
106
    </td>
107
  </tr>
108
</table>
109

  
110
[% label_edit %]<br>
111
<input class="submit" type="submit" name="action" id="update_button" value="<translate>Update</translate>">
112
<input class="submit" type="submit" name="action" value="<translate>Ship to</translate>">
113
<input class="submit" type="submit" name="action" value="<translate>Print</translate>">
114
<input class="submit" type="submit" name="action" value="<translate>E-mail</translate>">
115
<input class="submit" type="submit" name="action" value="<translate>Save</translate>">
116
<input class="submit" type="submit" name="action" value="<translate>Save and Close</translate>">
117

  
118
[%- IF id %]
119
  <input type="button" class="submit" onclick="follow_up_window()" value="<translate>Follow-Up</translate>">
120
  <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="<translate>history</translate>">
121

  
122
  <br>[% label_workflow %]<br>
123
  <input class="submit" type="submit" name="action" value="<translate>Save as new</translate>">
124
  <input class="submit" type="submit" name="action" value="<translate>Delete</translate>">
125

  
126
  [%- IF is_sales_quo %]
127
    <input class="submit" type="submit" name="action" value="<translate>Sales Order</translate>">
128
  [%- END %]
129

  
130
  [%- IF is_req_quo %]
131
    <input class="submit" type="submit" name="action" value="<translate>Purchase Order</translate>">
132
  [%- END %]
133

  
134
  [%- IF is_sales_ord || is_pur_ord %]
135
    <input class="submit" type="submit" name="action" value="<translate>Delivery Order</translate>">
136
  [%- END %]
137

  
138
  <input class="submit" type="submit" name="action" value="<translate>Invoice</translate>">
139

  
140
  <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
141
  [%- IF is_sales_ord %]
142
    <input class="submit" type="submit" name="action" value="<translate>Purchase Order</translate>">
143
    <input class="submit" type="submit" name="action" value="<translate>Quotation</translate>">
144
  [%- ELSE %]
145
   [%- IF is_pur_ord %]
146
    <input class="submit" type="submit" name="action" value="<translate>Sales Order</translate>">
147
    <input class="submit" type="submit" name="action" value="<translate>Request for Quotation</translate>">
148
   [%- ELSE %]
149
    <input class="submit" type="submit" name="action" value="<translate>Order</translate>">
150
   [%- END %]
151
  [%- END %]
152
[%- END %]
153

  
154
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
155
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
156
<input type="hidden" name="callback" value="[% callback %]">
157

  
158
</form>
159

  
160
</body>
161
</html>
templates/webpages/oe/form_header_de.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
<body onLoad="[% onload %]">
4

  
5
  <form method="post" name="oe" action="[% script %]">
6

  
7
    <script type="text/javascript" src="js/common.js"></script>
8
    <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
9
    <script type="text/javascript" src="js/vendor_selection.js"></script>
10
    <script type="text/javascript" src="js/calculate_qty.js"></script>
11
    <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
12
    <script type="text/javascript" src="js/follow_up.js"></script>
13

  
14
[%- FOREACH row = HIDDENS %]
15
   <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
16
[%- END %]
17

  
18
    <input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
19
    <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
20
    <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
21
    <input type="hidden" name="follow_up_rowcount" value="1">
22

  
23
    <div class="listtop">[% title %]</div>
24

  
25
    <table width="100%">
26
      <tr height="5"></tr>
27
      <tr>
28
        <td>
29
          <table width="100%">
30
            <tr valign="top">
31
              <td width="50%">
32
                <table width="100%">
33
                  <tr>
34
                    <th align="right">[% IF vc == 'customer' %]Kunde[% ELSE %]Lieferant[% END %]</th>
35
                    <td>
36
                      [%- INCLUDE 'generic/multibox.html'
37
                           name       = vc,
38
                           style      = 'width: 250px',
39
                           DATA       = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
40
                           id_sub     = 'vc_keys',
41
                           label_key  = 'name',
42
                           select     = vc_select,
43
                           limit      = vclimit,
44
                           onChange   = "document.getElementById('update_button').click();" -%]
45
                      <input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
46
                    </td>
47
                  </tr>
48
[%- IF ALL_CONTACTS.size %]
49
                  <tr>
50
                    <th align="right">Ansprechpartner</th>
51
                    <td>
52
                      [%- INCLUDE 'generic/multibox.html'
53
                           name       = 'cp_id',
54
                           style      = 'width: 250px',
55
                           DATA       = ALL_CONTACTS,
56
                           id_key     = 'cp_id',
57
                           label_sub  = 'contact_labels',
58
                           show_empty = 1 -%]
59
                    </td>
60
                  </tr>
61
[%- END %]
62
[%- IF ALL_SHIPTO.size %]
63
                  <tr>
64
                    <th align="right">Lieferadresse</th>
65
                    <td>
66
                      [%- INCLUDE 'generic/multibox.html'
67
                           name       = 'shipto_id',
68
                           style      = 'width: 250px',
69
                           DATA       = ALL_SHIPTO,
70
                           id_key     = 'shipto_id',
71
                           label_sub  = 'shipto_labels',
72
                           show_empty = 1,
73
                           onChange   = "document.getElementById('update_button').click();" -%]
74
                    </td>
75
                  </tr>
76
[%- END %]
77
[%- IF is_order %]
78
                  <tr>
79
                    <td align="right">Kreditlimit</td>
80
                    <td>[% LxERP.format_amount(creditlimit, 0) %]; Rest <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td>
81
                  </tr>
82
[%- END %]
83
[%- IF business %]
84
                  <tr>
85
                    <th align="right">[% business_label %]</th>
86
                    <td>[% HTML.escape(business) %]; Rabatt [% LxERP.format_percent(tradediscount) %] %</td>
87
                  </tr>
88
[%- END %]
89
[%- IF max_dunning_level %]
90
                  <tr>
91
                    <th align="right">h?chste Mahnstufe:</th>
92
                    <td>
93
                      <b>[% HTML.escape(max_dunning_level) %]</b>;
94
                      gemahnter Betrag: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
95
                    </td>
96
                  </tr>
97
[%- END %]
98
                  <tr>
99
                    <th align="right">Steuersatz</th>
100
                    <td>
101
                      [%- INCLUDE 'generic/multibox.html'
102
                           name       = 'taxzone_id',
103
                           style      = 'width: 250px',
104
                           DATA       = ALL_TAXZONES,
105
                           id_key     = 'id',
106
                           label_key  = 'description' -%]
107
                    </td>
108
                  </tr>
109
[%- IF selectdepartment %]
110
                  <tr>
111
                    <th align="right" nowrap>Abteilung</th>
112
                    <td colspan="3"><select name="department" style="width: 250px">[% selectdepartment %]</select>
113
                    <input type="hidden" name="selectdepartment" value="[% HTML.escape(selectdepartment) %]">
114
                    </td>
115
                  </tr>
116
[%- END %]
117
                  <tr>
118
[%- IF currencies %]
119
                  <tr>
120
                    <th align="right">W?hrung</th>
121
                    <td>[% currencies %]</td>
122
                  </tr>
123
[%- END %]
124
[%- IF show_exchangerate %]
125
                  <tr>
126
                    <th align="right">Wechselkurs</th>
127
                    <td>
128
                     [%- IF forex %]
129
                      [% LxERP.format_amount(exchangerate, 0) %]
130
                     [%- ELSE %]
131
                      <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
132
                     [%- END %]
133
                    </td>
134
                  </tr>
135
[%- END %]
136
[%- IF is_sales %]
137
                  <tr>
138
                    <th align="right">Motiv</th>
139
                    <td style="font-weight:bold" colspan="3"><input name="motiv" size="35" value="[% HTML.escape(motiv) %]"></td>
140
                  </tr>
141
[%- END %]
142
                  <tr>
143
                    <th align="right">Versandort</th>
144
                    <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"></td>
145
                  </tr>
146
                  <tr>
147
                    <th align="right">Transportmittel</th>
148
                    <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"></td>
149
                  </tr>
150
                  <tr>
151
                    <th align="right">Vorgangsbezeichnung</th>
152
                    <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td>
153
                  </tr>
154
[%- IF show_delivery_customer %]
155
                  <tr>
156
                    <td colspan="4">
157
                      <table>
158
                        <tr>
159
                          <td colspan="2">
160
                          <button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">Endkunde w?hlen:</button>
161
                        </td>
162
                          <td colspan="2"><input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
163
                          <input size="45" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]"></td>
164
                        </tr>
165
                        <tr>
166
                          <td colspan="2">
167
                            <button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">H?ndler w?hlen</button>
168
                          </td>
169
                          <td colspan="2"><input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
170
                          <input size="45" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]"></td>
171
                        </tr>
172
                      </table>
173
                    </td>
174
                  </tr>
175
[%- END %]
176
                </table>
177
              </td>
178
              <td align="right">
179
                <table>
180
              [% openclosed %]
181
                  <tr>
182
                    <th align="right">Bearbeiter</th>
183
                    <td>
184
                      [%- INCLUDE 'generic/multibox.html'
185
                           name       = 'employee_id',
186
                           DATA       = ALL_EMPLOYEES,
187
                           id_key     = 'id',
188
                           label_sub  = 'sales_employee_labels' -%]
189
                    </td>
190
                  </tr>
191
[%- IF is_sales and ALL_SALESMEN.size %]
192
                  <tr>
193
                    <th align="right">Verk?ufer/in</th>
194
                    <td>
195
                      [%- INCLUDE 'generic/multibox.html'
196
                           name       = 'salesman_id',
197
                           default    = salesman_id ? salesman_id : employee_id,
198
                           DATA       = ALL_SALESMEN,
199
                           id_key     = 'id',
200
                           label_sub  = 'sales_employee_labels' -%]
201
                    </td>
202
                  </tr>
203
[%- END %]
204
[%- IF is_order %]
205
                  <tr>
206
                    <th width="70%" align="right" nowrap>Auftragsnummer</th>
207
                    <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"></td>
208
                  </tr>
209
[%- END %]
210
                  <tr>
211
                    <th width="70%" align="right" nowrap>[% IF is_req_quo %]Anfragenummer[% ELSE %]Angebotsnummer[% END %]</th>
212
                    <td><input name="quonumber" size="11" value="[% HTML.escape(quonumber) %]"></td>
213
                  </tr>
214
[%- IF is_order %]
215
                  <tr>
216
                    <th width="70%" align="right" nowrap>Bestellnummer des Kunden</th>
217
                    <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"></td>
218
                  </tr>
219
[%- END %]
220
                  <tr>
221
                    <th align="right" nowrap>
222
                     [%- IF is_order %]
223
                      Auftragsdatum
224
                     [%- ELSE %]
225
                      Angebotsdatum
226
                     [%- END %]
227
                    </th>
228
                    [% button1 %]
229
                  </tr>
230
                  <tr>
231
                    <th align="right" nowrap>
232
                     [%- IF is_sales_quo %]
233
                      g?ltig bis
234
                     [%- ELSE %]
235
                      Lieferdatum
236
                     [%- END %]
237
                    </th>
238
                    [% button2 %]
239
                  </tr>
240
                  <tr>
241
                    <th width="70%" align="right" nowrap>Projektnummer</th>
242
                    <td>
243
                      [%- INCLUDE 'generic/multibox.html'
244
                           name       = 'globalproject_id',
245
                           DATA       = ALL_PROJECTS,
246
                           id_key     = 'id',
247
                           label_key  = 'projectnumber',
248
                           show_empty = 1,
249
                           onChange   = "document.getElementById('update_button').click();" -%]
250
                    </td>
251
                  </tr>
252
                </table>
253
              </td>
254
            </tr>
255
          </table>
256
        </td>
257
      </tr>
258

  
259
      [% jsscript %]
templates/webpages/oe/form_header_master.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
<body onLoad="[% onload %]">
4

  
5
  <form method="post" name="oe" action="[% script %]">
6

  
7
    <script type="text/javascript" src="js/common.js"></script>
8
    <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
9
    <script type="text/javascript" src="js/vendor_selection.js"></script>
10
    <script type="text/javascript" src="js/calculate_qty.js"></script>
11
    <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
12
    <script type="text/javascript" src="js/follow_up.js"></script>
13

  
14
[%- FOREACH row = HIDDENS %]
15
   <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
16
[%- END %]
17

  
18
    <input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
19
    <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
20
    <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
21
    <input type="hidden" name="follow_up_rowcount" value="1">
22

  
23
    <div class="listtop">[% title %]</div>
24

  
25
    <table width="100%">
26
      <tr height="5"></tr>
27
      <tr>
28
        <td>
29
          <table width="100%">
30
            <tr valign="top">
31
              <td width="50%">
32
                <table width="100%">
33
                  <tr>
34
                    <th align="right">[% IF vc == 'customer' %]<translate>Customer</translate>[% ELSE %]<translate>Vendor</translate>[% END %]</th>
35
                    <td>
36
                      [%- INCLUDE 'generic/multibox.html'
37
                           name       = vc,
38
                           style      = 'width: 250px',
39
                           DATA       = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
40
                           id_sub     = 'vc_keys',
41
                           label_key  = 'name',
42
                           select     = vc_select,
43
                           limit      = vclimit,
44
                           onChange   = "document.getElementById('update_button').click();" -%]
45
                      <input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
46
                    </td>
47
                  </tr>
48
[%- IF ALL_CONTACTS.size %]
49
                  <tr>
50
                    <th align="right"><translate>Contact Person</translate></th>
51
                    <td>
52
                      [%- INCLUDE 'generic/multibox.html'
53
                           name       = 'cp_id',
54
                           style      = 'width: 250px',
55
                           DATA       = ALL_CONTACTS,
56
                           id_key     = 'cp_id',
57
                           label_sub  = 'contact_labels',
58
                           show_empty = 1 -%]
59
                    </td>
60
                  </tr>
61
[%- END %]
62
[%- IF ALL_SHIPTO.size %]
63
                  <tr>
64
                    <th align="right"><translate>Shipping Address</translate></th>
65
                    <td>
66
                      [%- INCLUDE 'generic/multibox.html'
67
                           name       = 'shipto_id',
68
                           style      = 'width: 250px',
69
                           DATA       = ALL_SHIPTO,
70
                           id_key     = 'shipto_id',
71
                           label_sub  = 'shipto_labels',
72
                           show_empty = 1,
73
                           onChange   = "document.getElementById('update_button').click();" -%]
74
                    </td>
75
                  </tr>
76
[%- END %]
77
[%- IF is_order %]
78
                  <tr>
79
                    <td align="right"><translate>Credit Limit</translate></td>
80
                    <td>[% LxERP.format_amount(creditlimit, 0) %]; <translate>Remaining</translate> <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td>
81
                  </tr>
82
[%- END %]
83
[%- IF business %]
84
                  <tr>
85
                    <th align="right">[% business_label %]</th>
86
                    <td>[% HTML.escape(business) %]; <translate>Trade Discount</translate> [% LxERP.format_percent(tradediscount) %] %</td>
87
                  </tr>
88
[%- END %]
89
[%- IF max_dunning_level %]
90
                  <tr>
91
                    <th align="right"><translate>Max. Dunning Level</translate>:</th>
92
                    <td>
93
                      <b>[% HTML.escape(max_dunning_level) %]</b>;
94
                      <translate>Dunning Amount</translate>: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
95
                    </td>
96
                  </tr>
97
[%- END %]
98
                  <tr>
99
                    <th align="right"><translate>Steuersatz</translate></th>
100
                    <td>
101
                      [%- INCLUDE 'generic/multibox.html'
102
                           name       = 'taxzone_id',
103
                           style      = 'width: 250px',
104
                           DATA       = ALL_TAXZONES,
105
                           id_key     = 'id',
106
                           label_key  = 'description' -%]
107
                    </td>
108
                  </tr>
109
[%- IF selectdepartment %]
110
                  <tr>
111
                    <th align="right" nowrap><translate>Department</translate></th>
112
                    <td colspan="3"><select name="department" style="width: 250px">[% selectdepartment %]</select>
113
                    <input type="hidden" name="selectdepartment" value="[% HTML.escape(selectdepartment) %]">
114
                    </td>
115
                  </tr>
116
[%- END %]
117
                  <tr>
118
[%- IF currencies %]
119
                  <tr>
120
                    <th align="right"><translate>Currency</translate></th>
121
                    <td>[% currencies %]</td>
122
                  </tr>
123
[%- END %]
124
[%- IF show_exchangerate %]
125
                  <tr>
126
                    <th align="right"><translate>Exchangerate</translate></th>
127
                    <td>
128
                     [%- IF forex %]
129
                      [% LxERP.format_amount(exchangerate, 0) %]
130
                     [%- ELSE %]
131
                      <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
132
                     [%- END %]
133
                    </td>
134
                  </tr>
135
[%- END %]
136
[%- IF is_sales %]
137
                  <tr>
138
                    <th align="right"><translate>Motiv</translate></th>
139
                    <td style="font-weight:bold" colspan="3"><input name="motiv" size="35" value="[% HTML.escape(motiv) %]"></td>
140
                  </tr>
141
[%- END %]
142
                  <tr>
143
                    <th align="right"><translate>Shipping Point</translate></th>
144
                    <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"></td>
145
                  </tr>
146
                  <tr>
147
                    <th align="right"><translate>Ship via</translate></th>
148
                    <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"></td>
149
                  </tr>
150
                  <tr>
151
                    <th align="right"><translate>Transaction description</translate></th>
152
                    <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td>
153
                  </tr>
154
[%- IF show_delivery_customer %]
155
                  <tr>
156
                    <td colspan="4">
157
                      <table>
158
                        <tr>
159
                          <td colspan="2">
160
                          <button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')"><translate>Choose Customer</translate></button>
161
                        </td>
162
                          <td colspan="2"><input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
163
                          <input size="45" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]"></td>
164
                        </tr>
165
                        <tr>
166
                          <td colspan="2">
167
                            <button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')"><translate>Choose Vendor</translate></button>
168
                          </td>
169
                          <td colspan="2"><input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
170
                          <input size="45" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]"></td>
171
                        </tr>
172
                      </table>
173
                    </td>
174
                  </tr>
175
[%- END %]
176
                </table>
177
              </td>
178
              <td align="right">
179
                <table>
180
              [% openclosed %]
181
                  <tr>
182
                    <th align="right"><translate>Employee</translate></th>
183
                    <td>
184
                      [%- INCLUDE 'generic/multibox.html'
185
                           name       = 'employee_id',
186
                           DATA       = ALL_EMPLOYEES,
187
                           id_key     = 'id',
188
                           label_sub  = 'sales_employee_labels' -%]
189
                    </td>
190
                  </tr>
191
[%- IF is_sales and ALL_SALESMEN.size %]
192
                  <tr>
193
                    <th align="right"><translate>Salesman</translate></th>
194
                    <td>
195
                      [%- INCLUDE 'generic/multibox.html'
196
                           name       = 'salesman_id',
197
                           default    = salesman_id ? salesman_id : employee_id,
198
                           DATA       = ALL_SALESMEN,
199
                           id_key     = 'id',
200
                           label_sub  = 'sales_employee_labels' -%]
201
                    </td>
202
                  </tr>
203
[%- END %]
204
[%- IF is_order %]
205
                  <tr>
206
                    <th width="70%" align="right" nowrap><translate>Order Number</translate></th>
207
                    <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"></td>
208
                  </tr>
209
[%- END %]
210
                  <tr>
211
                    <th width="70%" align="right" nowrap>[% IF is_req_quo %]<translate>RFQ Number</translate>[% ELSE %]<translate>Quotation Number</translate>[% END %]</th>
212
                    <td><input name="quonumber" size="11" value="[% HTML.escape(quonumber) %]"></td>
213
                  </tr>
214
[%- IF is_order %]
215
                  <tr>
216
                    <th width="70%" align="right" nowrap><translate>Customer Order Number</translate></th>
217
                    <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"></td>
218
                  </tr>
219
[%- END %]
220
                  <tr>
221
                    <th align="right" nowrap>
222
                     [%- IF is_order %]
223
                      <translate>Order Date</translate>
224
                     [%- ELSE %]
225
                      <translate>Quotation Date</translate>
226
                     [%- END %]
227
                    </th>
228
                    [% button1 %]
229
                  </tr>
230
                  <tr>
231
                    <th align="right" nowrap>
232
                     [%- IF is_sales_quo %]
233
                      <translate>Valid until</translate>
234
                     [%- ELSE %]
235
                      <translate>Required by</translate>
236
                     [%- END %]
237
                    </th>
238
                    [% button2 %]
239
                  </tr>
240
                  <tr>
241
                    <th width="70%" align="right" nowrap><translate>Project Number</translate></th>
242
                    <td>
243
                      [%- INCLUDE 'generic/multibox.html'
244
                           name       = 'globalproject_id',
245
                           DATA       = ALL_PROJECTS,
246
                           id_key     = 'id',
247
                           label_key  = 'projectnumber',
248
                           show_empty = 1,
249
                           onChange   = "document.getElementById('update_button').click();" -%]
250
                    </td>
251
                  </tr>
252
                </table>
253
              </td>
254
            </tr>
255
          </table>
256
        </td>
257
      </tr>
258

  
259
      [% jsscript %]
templates/webpages/oe/orders_footer_de.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
  <tr>
4
    <td>
5
      <table width="100%">
6
        <tr valign="bottom">
7
          <td>
8
            <table>
9
              <tr>
10
                <th align="left">Bemerkungen</th>
11
                <th align="left">interne Bemerkungen</th>
12
              </tr>
13
              <tr valign="top">
14
                <td>[% notes %]</td>
15
                <td>[% intnotes %]</td>
16
              </tr>
17
              <tr>
18
                <th align="right">Zahlungskonditionen</th>
19
                <td>
20
                      [%- INCLUDE 'generic/multibox.html'
21
                           name       = 'payment_id',
22
                           style      = 'width: 250px',
23
                           DATA       = ALL_PAYMENTS,
24
                           id_key     = 'id',
25
                           label_key  = 'description',
26
                           show_empty = 1 -%]
27
                </td>
28
            </tr>
29
      [%- IF id && num_follow_ups %]
30
      <tr>
31
       <td colspan="2">[% LxERP.format_string('Es gibt #1 Wiedervorlage(n), von denen #2 f&auml;llig ist/sind.', num_follow_ups, num_due_follow_ups) %]</td>
32
      </tr>
33
      [%- END %]
34
      </table>
35
          </td>
36
[%- IF is_sales %]
37
          <td>
38
            <table>
39

  
40
            <tr>
41
              <th  align="left">Ertrag</th>
42
              <td align="right">[% LxERP.format_amount(marge_total, 2) %]</td>
43
            </tr>
44
            <tr>
45
              <th  align="left">Ertrag prozentual</th>
46
              <td align="right">[% LxERP.format_amount(marge_percent, 2) %]</td>
47
              <td>%</td>
48
            </tr>
49

  
50
            <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
51
            <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
52
            </table>
53
          </td>
54
[%- END %]
55
          <td align="right">
56
[%- IF taxaccounts %]
57
            <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>Steuer im Preis inbegriffen</b><br><br>
58
[%- END %]
59
            <table>
60
              [% subtotal %]
61
              [% tax %]
62
              <tr>
63
                <th align="right">Summe</th>
64
                <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
65
              </tr>
66
            </table>
67
          </td>
68
        </tr>
69
      </table>
70
    </td>
71
  </tr>
72
  <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
73
  <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
74
  <tr>
75
    <td><hr size="3" noshade></td>
76
  </tr>
77

  
78
[%- IF webdav %]
79
  <tr>
80
    <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
81
  </tr>
82
  <tr>
83
   <td>
84
    <table width="100%">
85
     <tr>
86
      <td align="left" width="30%"><b>Dateiname</b></td>
87
      <td align="left" width="70%"><b>Webdavlink</b></td>
88
     </tr>
89
 [%- FOREACH file="WEBDAV" %]
90
      <tr>
91
        <td align="left">[% HTML.escape(file.name) %]</td>
92
        <td align="left"><a href="[% file.link %]">[% HTML.escape(file.type) %]</a></td>
93
      </tr>
94
 [%- END %]
95
    </table>
96
   </td>
97
  </tr>
98
  <tr>
99
    <td><hr size="3" noshade></td>
100
  </tr>
101
[%- END %]
102

  
103
  <tr>
104
    <td>
105
      [% print_options %]
106
    </td>
107
  </tr>
108
</table>
109

  
110
[% label_edit %]<br>
111
<input class="submit" type="submit" name="action" id="update_button" value="Erneuern">
112
<input class="submit" type="submit" name="action" value="Lieferadresse">
113
<input class="submit" type="submit" name="action" value="Drucken">
114
<input class="submit" type="submit" name="action" value="eMail">
115
<input class="submit" type="submit" name="action" value="Speichern">
116
<input class="submit" type="submit" name="action" value="Speichern und schlie?en">
117

  
118
[%- IF id %]
119
  <input type="button" class="submit" onclick="follow_up_window()" value="Wiedervorlage">
120
  <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="Historie">
121

  
122
  <br>[% label_workflow %]<br>
123
  <input class="submit" type="submit" name="action" value="als neu speichern">
124
  <input class="submit" type="submit" name="action" value="L?schen">
125

  
126
  [%- IF is_sales_quo %]
127
    <input class="submit" type="submit" name="action" value="Kundenauftrag">
128
  [%- END %]
129

  
130
  [%- IF is_req_quo %]
131
    <input class="submit" type="submit" name="action" value="Lieferantenauftrag">
132
  [%- END %]
133

  
134
  [%- IF is_sales_ord || is_pur_ord %]
135
    <input class="submit" type="submit" name="action" value="Lieferschein">
136
  [%- END %]
137

  
138
  <input class="submit" type="submit" name="action" value="Rechnung">
139

  
140
  <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
141
  [%- IF is_sales_ord %]
142
    <input class="submit" type="submit" name="action" value="Lieferantenauftrag">
143
    <input class="submit" type="submit" name="action" value="Angebot">
144
  [%- ELSE %]
145
   [%- IF is_pur_ord %]
146
    <input class="submit" type="submit" name="action" value="Kundenauftrag">
147
    <input class="submit" type="submit" name="action" value="Anfrage">
148
   [%- ELSE %]
149
    <input class="submit" type="submit" name="action" value="Auftrag">
150
   [%- END %]
151
  [%- END %]
152
[%- END %]
153

  
154
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
155
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
156
<input type="hidden" name="callback" value="[% callback %]">
157

  
158
</form>
159

  
160
</body>
161
</html>
templates/webpages/oe/orders_footer_master.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
  <tr>
4
    <td>
5
      <table width="100%">
6
        <tr valign="bottom">
7
          <td>
8
            <table>
9
              <tr>
10
                <th align="left"><translate>Notes</translate></th>
11
                <th align="left"><translate>Internal Notes</translate></th>
12
              </tr>
13
              <tr valign="top">
14
                <td>[% notes %]</td>
15
                <td>[% intnotes %]</td>
16
              </tr>
17
              <tr>
18
                <th align="right"><translate>Payment Terms</translate></th>
19
                <td>
20
                      [%- INCLUDE 'generic/multibox.html'
21
                           name       = 'payment_id',
22
                           style      = 'width: 250px',
23
                           DATA       = ALL_PAYMENTS,
24
                           id_key     = 'id',
25
                           label_key  = 'description',
26
                           show_empty = 1 -%]
27
                </td>
28
            </tr>
29
      [%- IF id && num_follow_ups %]
30
      <tr>
31
       <td colspan="2">[% LxERP.format_string('<translate>There are #1 unfinished follow-ups of which #2 are due.</translate>', num_follow_ups, num_due_follow_ups) %]</td>
32
      </tr>
33
      [%- END %]
34
      </table>
35
          </td>
36
[%- IF is_sales %]
37
          <td>
38
            <table>
39

  
40
            <tr>
41
              <th  align="left"><translate>Ertrag</translate></th>
42
              <td align="right">[% LxERP.format_amount(marge_total, 2) %]</td>
43
            </tr>
44
            <tr>
45
              <th  align="left"><translate>Ertrag prozentual</translate></th>
46
              <td align="right">[% LxERP.format_amount(marge_percent, 2) %]</td>
47
              <td>%</td>
48
            </tr>
49

  
50
            <input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
51
            <input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
52
            </table>
53
          </td>
54
[%- END %]
55
          <td align="right">
56
[%- IF taxaccounts %]
57
            <input name="taxincluded" class="checkbox" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b><translate>Tax Included</translate></b><br><br>
58
[%- END %]
59
            <table>
60
              [% subtotal %]
61
              [% tax %]
62
              <tr>
63
                <th align="right"><translate>Total</translate></th>
64
                <td align="right">[% LxERP.format_amount(invtotal, 2) %]</td>
65
              </tr>
66
            </table>
67
          </td>
68
        </tr>
69
      </table>
70
    </td>
71
  </tr>
72
  <input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
73
  <input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
74
  <tr>
75
    <td><hr size="3" noshade></td>
76
  </tr>
77

  
78
[%- IF webdav %]
79
  <tr>
80
    <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
81
  </tr>
82
  <tr>
83
   <td>
84
    <table width="100%">
85
     <tr>
86
      <td align="left" width="30%"><b>Dateiname</b></td>
87
      <td align="left" width="70%"><b>Webdavlink</b></td>
88
     </tr>
89
 [%- FOREACH file="WEBDAV" %]
90
      <tr>
91
        <td align="left">[% HTML.escape(file.name) %]</td>
92
        <td align="left"><a href="[% file.link %]">[% HTML.escape(file.type) %]</a></td>
93
      </tr>
94
 [%- END %]
95
    </table>
96
   </td>
97
  </tr>
98
  <tr>
99
    <td><hr size="3" noshade></td>
100
  </tr>
101
[%- END %]
102

  
103
  <tr>
104
    <td>
105
      [% print_options %]
106
    </td>
107
  </tr>
108
</table>
109

  
110
[% label_edit %]<br>
111
<input class="submit" type="submit" name="action" id="update_button" value="<translate>Update</translate>">
112
<input class="submit" type="submit" name="action" value="<translate>Ship to</translate>">
113
<input class="submit" type="submit" name="action" value="<translate>Print</translate>">
114
<input class="submit" type="submit" name="action" value="<translate>E-mail</translate>">
115
<input class="submit" type="submit" name="action" value="<translate>Save</translate>">
116
<input class="submit" type="submit" name="action" value="<translate>Save and Close</translate>">
117

  
118
[%- IF id %]
119
  <input type="button" class="submit" onclick="follow_up_window()" value="<translate>Follow-Up</translate>">
120
  <input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="<translate>history</translate>">
121

  
122
  <br>[% label_workflow %]<br>
123
  <input class="submit" type="submit" name="action" value="<translate>Save as new</translate>">
124
  <input class="submit" type="submit" name="action" value="<translate>Delete</translate>">
125

  
126
  [%- IF is_sales_quo %]
127
    <input class="submit" type="submit" name="action" value="<translate>Sales Order</translate>">
128
  [%- END %]
129

  
130
  [%- IF is_req_quo %]
131
    <input class="submit" type="submit" name="action" value="<translate>Purchase Order</translate>">
132
  [%- END %]
133

  
134
  [%- IF is_sales_ord || is_pur_ord %]
135
    <input class="submit" type="submit" name="action" value="<translate>Delivery Order</translate>">
136
  [%- END %]
137

  
138
  <input class="submit" type="submit" name="action" value="<translate>Invoice</translate>">
139

  
140
  <br>[% heading %] als neue Vorlage verwenden f&uuml;r<br>
141
  [%- IF is_sales_ord %]
142
    <input class="submit" type="submit" name="action" value="<translate>Purchase Order</translate>">
143
    <input class="submit" type="submit" name="action" value="<translate>Quotation</translate>">
144
  [%- ELSE %]
145
   [%- IF is_pur_ord %]
146
    <input class="submit" type="submit" name="action" value="<translate>Sales Order</translate>">
147
    <input class="submit" type="submit" name="action" value="<translate>Request for Quotation</translate>">
148
   [%- ELSE %]
149
    <input class="submit" type="submit" name="action" value="<translate>Order</translate>">
150
   [%- END %]
151
  [%- END %]
152
[%- END %]
153

  
154
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
155
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
156
<input type="hidden" name="callback" value="[% callback %]">
157

  
158
</form>
159

  
160
</body>
161
</html>
templates/webpages/oe/orders_header_de.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
3
<body onLoad="[% onload %]">
4

  
5
  <form method="post" name="oe" action="[% script %]">
6

  
7
    <script type="text/javascript" src="js/common.js"></script>
8
    <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
9
    <script type="text/javascript" src="js/vendor_selection.js"></script>
10
    <script type="text/javascript" src="js/calculate_qty.js"></script>
11
    <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
12
    <script type="text/javascript" src="js/follow_up.js"></script>
13

  
14
[%- FOREACH row = HIDDENS %]
15
   <input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
16
[%- END %]
17

  
18
    <input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
19
    <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
20
    <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
21
    <input type="hidden" name="follow_up_rowcount" value="1">
22

  
23
    <div class="listtop">[% title %]</div>
24

  
25
    <table width="100%">
26
      <tr height="5"></tr>
27
      <tr>
28
        <td>
29
          <table width="100%">
30
            <tr valign="top">
31
              <td width="50%">
32
                <table width="100%">
33
                  <tr>
34
                    <th align="right">[% IF vc == 'customer' %]Kunde[% ELSE %]Lieferant[% END %]</th>
35
                    <td>
36
                      [%- INCLUDE 'generic/multibox.html'
37
                           name       = vc,
38
                           style      = 'width: 250px',
39
                           DATA       = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
40
                           id_sub     = 'vc_keys',
41
                           label_key  = 'name',
42
                           select     = vc_select,
43
                           limit      = vclimit,
44
                           onChange   = "document.getElementById('update_button').click();" -%]
45
                      <input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
46
                    </td>
47
                  </tr>
48
[%- IF ALL_CONTACTS.size %]
49
                  <tr>
50
                    <th align="right">Ansprechpartner</th>
51
                    <td>
52
                      [%- INCLUDE 'generic/multibox.html'
53
                           name       = 'cp_id',
54
                           style      = 'width: 250px',
55
                           DATA       = ALL_CONTACTS,
56
                           id_key     = 'cp_id',
57
                           label_sub  = 'contact_labels',
58
                           show_empty = 1 -%]
59
                    </td>
60
                  </tr>
61
[%- END %]
62
[%- IF ALL_SHIPTO.size %]
63
                  <tr>
64
                    <th align="right">Lieferadresse</th>
65
                    <td>
66
                      [%- INCLUDE 'generic/multibox.html'
67
                           name       = 'shipto_id',
68
                           style      = 'width: 250px',
69
                           DATA       = ALL_SHIPTO,
70
                           id_key     = 'shipto_id',
71
                           label_sub  = 'shipto_labels',
72
                           show_empty = 1,
73
                           onChange   = "document.getElementById('update_button').click();" -%]
74
                    </td>
75
                  </tr>
76
[%- END %]
77
[%- IF is_order %]
78
                  <tr>
79
                    <td align="right">Kreditlimit</td>
80
                    <td>[% LxERP.format_amount(creditlimit, 0) %]; Rest <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td>
81
                  </tr>
82
[%- END %]
83
[%- IF business %]
84
                  <tr>
85
                    <th align="right">[% business_label %]</th>
86
                    <td>[% HTML.escape(business) %]; Rabatt [% LxERP.format_percent(tradediscount) %] %</td>
87
                  </tr>
88
[%- END %]
89
[%- IF max_dunning_level %]
90
                  <tr>
91
                    <th align="right">h?chste Mahnstufe:</th>
92
                    <td>
93
                      <b>[% HTML.escape(max_dunning_level) %]</b>;
94
                      gemahnter Betrag: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
95
                    </td>
96
                  </tr>
97
[%- END %]
98
                  <tr>
99
                    <th align="right">Steuersatz</th>
100
                    <td>
101
                      [%- INCLUDE 'generic/multibox.html'
102
                           name       = 'taxzone_id',
103
                           style      = 'width: 250px',
104
                           DATA       = ALL_TAXZONES,
105
                           id_key     = 'id',
106
                           label_key  = 'description' -%]
107
                    </td>
108
                  </tr>
109
[%- IF selectdepartment %]
110
                  <tr>
111
                    <th align="right" nowrap>Abteilung</th>
112
                    <td colspan="3"><select name="department" style="width: 250px">[% selectdepartment %]</select>
113
                    <input type="hidden" name="selectdepartment" value="[% HTML.escape(selectdepartment) %]">
114
                    </td>
115
                  </tr>
116
[%- END %]
117
                  <tr>
118
[%- IF currencies %]
119
                  <tr>
120
                    <th align="right">W?hrung</th>
121
                    <td>[% currencies %]</td>
122
                  </tr>
123
[%- END %]
124
[%- IF show_exchangerate %]
125
                  <tr>
126
                    <th align="right">Wechselkurs</th>
127
                    <td>
128
                     [%- IF forex %]
129
                      [% LxERP.format_amount(exchangerate, 0) %]
130
                     [%- ELSE %]
131
                      <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
132
                     [%- END %]
133
                    </td>
134
                  </tr>
135
[%- END %]
136
[%- IF is_sales %]
137
                  <tr>
138
                    <th align="right">Motiv</th>
139
                    <td style="font-weight:bold" colspan="3"><input name="motiv" size="35" value="[% HTML.escape(motiv) %]"></td>
140
                  </tr>
141
[%- END %]
142
                  <tr>
143
                    <th align="right">Versandort</th>
144
                    <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"></td>
145
                  </tr>
146
                  <tr>
147
                    <th align="right">Transportmittel</th>
148
                    <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"></td>
149
                  </tr>
150
                  <tr>
151
                    <th align="right">Vorgangsbezeichnung</th>
152
                    <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td>
153
                  </tr>
154
[%- IF show_delivery_customer %]
155
                  <tr>
156
                    <td colspan="4">
157
                      <table>
158
                        <tr>
159
                          <td colspan="2">
160
                          <button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">Endkunde w?hlen:</button>
161
                        </td>
162
                          <td colspan="2"><input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
163
                          <input size="45" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]"></td>
164
                        </tr>
165
                        <tr>
166
                          <td colspan="2">
167
                            <button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">H?ndler w?hlen</button>
168
                          </td>
169
                          <td colspan="2"><input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
170
                          <input size="45" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]"></td>
171
                        </tr>
172
                      </table>
173
                    </td>
174
                  </tr>
175
[%- END %]
176
                </table>
177
              </td>
178
              <td align="right">
179
                <table>
180
              [% openclosed %]
181
                  <tr>
182
                    <th align="right">Bearbeiter</th>
183
                    <td>
184
                      [%- INCLUDE 'generic/multibox.html'
185
                           name       = 'employee_id',
186
                           DATA       = ALL_EMPLOYEES,
187
                           id_key     = 'id',
188
                           label_sub  = 'sales_employee_labels' -%]
189
                    </td>
190
                  </tr>
191
[%- IF is_sales and ALL_SALESMEN.size %]
192
                  <tr>
193
                    <th align="right">Verk?ufer/in</th>
194
                    <td>
195
                      [%- INCLUDE 'generic/multibox.html'
196
                           name       = 'salesman_id',
197
                           default    = salesman_id ? salesman_id : employee_id,
198
                           DATA       = ALL_SALESMEN,
199
                           id_key     = 'id',
200
                           label_sub  = 'sales_employee_labels' -%]
201
                    </td>
202
                  </tr>
203
[%- END %]
204
[%- IF is_order %]
205
                  <tr>
206
                    <th width="70%" align="right" nowrap>Auftragsnummer</th>
207
                    <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"></td>
208
                  </tr>
209
[%- END %]
210
                  <tr>
211
                    <th width="70%" align="right" nowrap>[% IF is_req_quo %]Anfragenummer[% ELSE %]Angebotsnummer[% END %]</th>
212
                    <td><input name="quonumber" size="11" value="[% HTML.escape(quonumber) %]"></td>
213
                  </tr>
214
[%- IF is_order %]
215
                  <tr>
216
                    <th width="70%" align="right" nowrap>Bestellnummer des Kunden</th>
217
                    <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"></td>
218
                  </tr>
219
[%- END %]
220
                  <tr>
221
                    <th align="right" nowrap>
222
                     [%- IF is_order %]
223
                      Auftragsdatum
224
                     [%- ELSE %]
225
                      Angebotsdatum
226
                     [%- END %]
227
                    </th>
228
                    [% button1 %]
229
                  </tr>
230
                  <tr>
231
                    <th align="right" nowrap>
232
                     [%- IF is_sales_quo %]
233
                      g?ltig bis
234
                     [%- ELSE %]
235
                      Lieferdatum
236
                     [%- END %]
237
                    </th>
238
                    [% button2 %]
239
                  </tr>
240
                  <tr>
241
                    <th width="70%" align="right" nowrap>Projektnummer</th>
242
                    <td>
243
                      [%- INCLUDE 'generic/multibox.html'
244
                           name       = 'globalproject_id',
245
                           DATA       = ALL_PROJECTS,
246
                           id_key     = 'id',
247
                           label_key  = 'projectnumber',
248
                           show_empty = 1,
249
                           onChange   = "document.getElementById('update_button').click();" -%]
250
                    </td>
251
                  </tr>
252
                </table>
253
              </td>
254
            </tr>
255
          </table>
256
        </td>
257
      </tr>
258

  
259
      [% jsscript %]
templates/webpages/oe/orders_header_master.html
1
[%- USE HTML %]
2
[%- USE LxERP %]
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff