Revision 270df900
Von Sven Schöling vor etwa 17 Jahren hinzugefügt
bin/mozilla/invoice_io.pl | ||
---|---|---|
1 |
#===================================================================== |
|
2 |
# LX-Office ERP |
|
3 |
# Copyright (C) 2004 |
|
4 |
# Based on SQL-Ledger Version 2.1.9 |
|
5 |
# Web http://www.lx-office.org |
|
6 |
############################################################################# |
|
7 |
# Veraendert 2005-01-05 - Marco Welter <mawe@linux-studio.de> - Neue Optik # |
|
8 |
############################################################################# |
|
9 |
# SQL-Ledger, Accounting |
|
10 |
# Copyright (c) 1998-2002 |
|
11 |
# |
|
12 |
# Author: Dieter Simader |
|
13 |
# Email: dsimader@sql-ledger.org |
|
14 |
# Web: http://www.sql-ledger.org |
|
15 |
# |
|
16 |
# |
|
17 |
# This program is free software; you can redistribute it and/or modify |
|
18 |
# it under the terms of the GNU General Public License as published by |
|
19 |
# the Free Software Foundation; either version 2 of the License, or |
|
20 |
# (at your option) any later version. |
|
21 |
# |
|
22 |
# This program is distributed in the hope that it will be useful, |
|
23 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
24 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
25 |
# GNU General Public License for more details. |
|
26 |
# You should have received a copy of the GNU General Public License |
|
27 |
# along with this program; if not, write to the Free Software |
|
28 |
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
|
29 |
# |
|
30 |
####################################################################### |
|
31 |
# |
|
32 |
# common routines used in is, ir but not in oe |
|
33 |
# |
|
34 |
####################################################################### |
|
35 |
|
|
36 |
use CGI; |
|
37 |
use CGI::Ajax; |
|
38 |
use List::Util qw(max); |
|
39 |
|
|
40 |
use SL::Common; |
|
41 |
use SL::CT; |
|
42 |
use SL::IC; |
|
43 |
|
|
44 |
require "bin/mozilla/common.pl"; |
|
45 |
|
|
46 |
# any custom scripts for this one |
|
47 |
if (-f "bin/mozilla/custom_invoice_io.pl") { |
|
48 |
eval { require "bin/mozilla/custom_ivvoice_io.pl"; }; |
|
49 |
} |
|
50 |
if (-f "bin/mozilla/$form->{login}_invoice_io.pl") { |
|
51 |
eval { require "bin/mozilla/$form->{login}_invoice_io.pl"; }; |
|
52 |
} |
|
53 |
|
|
54 |
1; |
|
55 |
|
|
56 |
# end of main |
|
57 |
|
|
58 |
# this is for our long dates |
|
59 |
# $locale->text('January') |
|
60 |
# $locale->text('February') |
|
61 |
# $locale->text('March') |
|
62 |
# $locale->text('April') |
|
63 |
# $locale->text('May ') |
|
64 |
# $locale->text('June') |
|
65 |
# $locale->text('July') |
|
66 |
# $locale->text('August') |
|
67 |
# $locale->text('September') |
|
68 |
# $locale->text('October') |
|
69 |
# $locale->text('November') |
|
70 |
# $locale->text('December') |
|
71 |
|
|
72 |
# this is for our short month |
|
73 |
# $locale->text('Jan') |
|
74 |
# $locale->text('Feb') |
|
75 |
# $locale->text('Mar') |
|
76 |
# $locale->text('Apr') |
|
77 |
# $locale->text('May') |
|
78 |
# $locale->text('Jun') |
|
79 |
# $locale->text('Jul') |
|
80 |
# $locale->text('Aug') |
|
81 |
# $locale->text('Sep') |
|
82 |
# $locale->text('Oct') |
|
83 |
# $locale->text('Nov') |
|
84 |
# $locale->text('Dec') |
|
85 |
use SL::IS; |
|
86 |
use SL::PE; |
|
87 |
use SL::AM; |
|
88 |
use Data::Dumper; |
|
89 |
######################################## |
|
90 |
# Eintrag fuer Version 2.2.0 geaendert # |
|
91 |
# neue Optik im Rechnungsformular # |
|
92 |
######################################## |
|
93 |
sub display_row { |
|
94 |
$lxdebug->enter_sub(); |
|
95 |
my $numrows = shift; |
|
96 |
|
|
97 |
my $is_sales = |
|
98 |
(substr($form->{type}, 0, 6) eq "sales_") |
|
99 |
|| (($form->{type} eq "invoice") && ($form->{script} eq "is.pl")) |
|
100 |
|| ($form->{type} eq 'credit_note'); |
|
101 |
|
|
102 |
if ($lizenzen && $form->{vc} eq "customer") { |
|
103 |
if ($form->{type} =~ /sales_order/) { |
|
104 |
@column_index = (runningnumber, partnumber, description, ship, qty); |
|
105 |
} elsif ($form->{type} =~ /sales_quotation/) { |
|
106 |
@column_index = (runningnumber, partnumber, description, qty); |
|
107 |
} else { |
|
108 |
@column_index = (runningnumber, partnumber, description, qty); |
|
109 |
} |
|
110 |
} else { |
|
111 |
if ( ($form->{type} =~ /purchase_order/) |
|
112 |
|| ($form->{type} =~ /sales_order/)) { |
|
113 |
@column_index = (runningnumber, partnumber, description, ship, qty); |
|
114 |
} else { |
|
115 |
@column_index = (runningnumber, partnumber, description, qty); |
|
116 |
} |
|
117 |
} |
|
118 |
############## ENDE Neueintrag ################## |
|
119 |
|
|
120 |
my $dimension_units = AM->retrieve_units(\%myconfig, $form, "dimension"); |
|
121 |
my $service_units = AM->retrieve_units(\%myconfig, $form, "service"); |
|
122 |
my $all_units = AM->retrieve_units(\%myconfig, $form); |
|
123 |
|
|
124 |
my %price_factors = map { $_->{id} => $_->{factor} } @{ $form->{ALL_PRICE_FACTORS} }; |
|
125 |
|
|
126 |
push @column_index, qw(unit); |
|
127 |
|
|
128 |
#for pricegroups column |
|
129 |
if ( $form->{type} =~ (/sales_quotation/) |
|
130 |
or (($form->{level} =~ /Sales/) and ($form->{type} =~ /invoice/)) |
|
131 |
or (($form->{level} eq undef) and ($form->{type} =~ /invoice/)) |
|
132 |
or ($form->{type} =~ /sales_order/)) { |
|
133 |
push @column_index, qw(sellprice_pg); |
|
134 |
} |
|
135 |
|
|
136 |
push @column_index, qw(sellprice); |
|
137 |
|
|
138 |
if ($form->{vc} eq 'customer') { |
|
139 |
push @column_index, qw(discount); |
|
140 |
} |
|
141 |
|
|
142 |
push @column_index, "linetotal"; |
|
143 |
|
|
144 |
my $colspan = $#column_index + 1; |
|
145 |
|
|
146 |
$form->{invsubtotal} = 0; |
|
147 |
map { $form->{"${_}_base"} = 0 } (split(/ /, $form->{taxaccounts})); |
|
148 |
|
|
149 |
######################################## |
|
150 |
# Eintrag fuer Version 2.2.0 geaendert # |
|
151 |
# neue Optik im Rechnungsformular # |
|
152 |
######################################## |
|
153 |
$column_data{runningnumber} = |
|
154 |
qq|<th align="left" nowrap width="5" class="listheading">| |
|
155 |
. $locale->text('No.') |
|
156 |
. qq|</th>|; |
|
157 |
$column_data{partnumber} = |
|
158 |
qq|<th align="left" nowrap width="12" class="listheading">| |
|
159 |
. $locale->text('Number') |
|
160 |
. qq|</th>|; |
|
161 |
$column_data{description} = |
|
162 |
qq|<th align="left" nowrap width="30" class="listheading">| |
|
163 |
. $locale->text('Part Description') |
|
164 |
. qq|</th>|; |
|
165 |
if ($form->{"type"} eq "purchase_order") { |
|
166 |
$column_data{ship} = |
|
167 |
qq|<th align="left" nowrap width="5" class="listheading">| |
|
168 |
. $locale->text('Ship rcvd') |
|
169 |
. qq|</th>|; |
|
170 |
} else { |
|
171 |
$column_data{ship} = |
|
172 |
qq|<th align="left" nowrap width="5" class="listheading">| |
|
173 |
. $locale->text('Ship') |
|
174 |
. qq|</th>|; |
|
175 |
} |
|
176 |
$column_data{qty} = |
|
177 |
qq|<th align="left" nowrap width="5" class="listheading">| |
|
178 |
. $locale->text('Qty') |
|
179 |
. qq|</th>|; |
|
180 |
$column_data{unit} = |
|
181 |
qq|<th align="left" nowrap width="5" class="listheading">| |
|
182 |
. $locale->text('Unit') |
|
183 |
. qq|</th>|; |
|
184 |
$column_data{license} = |
|
185 |
qq|<th align="left" nowrap width="10" class="listheading">| |
|
186 |
. $locale->text('License') |
|
187 |
. qq|</th>|; |
|
188 |
$column_data{serialnr} = |
|
189 |
qq|<th align="left" nowrap width="10" class="listheading">| |
|
190 |
. $locale->text('Serial No.') |
|
191 |
. qq|</th>|; |
|
192 |
$column_data{projectnr} = |
|
193 |
qq|<th align="left" nowrap width="10" class="listheading">| |
|
194 |
. $locale->text('Project') |
|
195 |
. qq|</th>|; |
|
196 |
$column_data{sellprice} = |
|
197 |
qq|<th align="left" nowrap width="15" class="listheading">| |
|
198 |
. $locale->text('Price') |
|
199 |
. qq|</th>|; |
|
200 |
$column_data{sellprice_pg} = |
|
201 |
qq|<th align="left" nowrap width="15" class="listheading">| |
|
202 |
. $locale->text('Pricegroup') |
|
203 |
. qq|</th>|; |
|
204 |
$column_data{discount} = |
|
205 |
qq|<th align="left" class="listheading">| |
|
206 |
. $locale->text('Discount') |
|
207 |
. qq|</th>|; |
|
208 |
$column_data{linetotal} = |
|
209 |
qq|<th align="left" nowrap width="10" class="listheading">| |
|
210 |
. $locale->text('Extended') |
|
211 |
. qq|</th>|; |
|
212 |
$column_data{bin} = |
|
213 |
qq|<th align="left" nowrap width="10" class="listheading">| |
|
214 |
. $locale->text('Bin') |
|
215 |
. qq|</th>|; |
|
216 |
############## ENDE Neueintrag ################## |
|
217 |
|
|
218 |
$myconfig{"show_form_details"} = 1 |
|
219 |
unless (defined($myconfig{"show_form_details"})); |
|
220 |
$form->{"show_details"} = $myconfig{"show_form_details"} |
|
221 |
unless (defined($form->{"show_details"})); |
|
222 |
$form->{"show_details"} = $form->{"show_details"} ? 1 : 0; |
|
223 |
my $show_details_new = 1 - $form->{"show_details"}; |
|
224 |
my $show_details_checked = $form->{"show_details"} ? "checked" : ""; |
|
225 |
|
|
226 |
print qq| |
|
227 |
<tr> |
|
228 |
<td>| . $cgi->hidden("-name" => "show_details", "-value" => $form->{show_details}) . qq| |
|
229 |
<input type="checkbox" id="cb_show_details" onclick="show_form_details($show_details_new);" $show_details_checked> |
|
230 |
<label for="cb_show_details">| . $locale->text("Show details") . qq|</label><br> |
|
231 |
<table width="100%"> |
|
232 |
<tr class="listheading">|; |
|
233 |
|
|
234 |
map { print "\n$column_data{$_}" } @column_index; |
|
235 |
|
|
236 |
print qq| |
|
237 |
</tr> |
|
238 |
|; |
|
239 |
|
|
240 |
$runningnumber = $locale->text('No.'); |
|
241 |
$deliverydate = $locale->text('Delivery Date'); |
|
242 |
$serialnumber = $locale->text('Serial No.'); |
|
243 |
$projectnumber = $locale->text('Project'); |
|
244 |
$partsgroup = $locale->text('Group'); |
|
245 |
$reqdate = $locale->text('Reqdate'); |
|
246 |
|
|
247 |
$delvar = 'deliverydate'; |
|
248 |
|
|
249 |
if ($form->{type} =~ /_order$/ || $form->{type} =~ /_quotation$/) { |
|
250 |
$deliverydate = $locale->text('Required by'); |
|
251 |
$delvar = 'reqdate'; |
|
252 |
} |
|
253 |
|
|
254 |
$form->{marge_total} = 0; |
|
255 |
$form->{sellprice_total} = 0; |
|
256 |
$form->{lastcost_total} = 0; |
|
257 |
my %projectnumber_labels = (); |
|
258 |
my @projectnumber_values = (""); |
|
259 |
foreach my $item (@{ $form->{"ALL_PROJECTS"} }) { |
|
260 |
push(@projectnumber_values, $item->{"id"}); |
|
261 |
$projectnumber_labels{$item->{"id"}} = $item->{"projectnumber"}; |
|
262 |
} |
|
263 |
|
|
264 |
for $i (1 .. $numrows) { |
|
265 |
|
|
266 |
# undo formatting |
|
267 |
map { |
|
268 |
$form->{"${_}_$i"} = |
|
269 |
$form->parse_amount(\%myconfig, $form->{"${_}_$i"}) |
|
270 |
} qw(qty ship discount sellprice price_new price_old) unless ($form->{simple_save}); |
|
271 |
|
|
272 |
if (!$form->{"unit_old_$i"}) { |
|
273 |
# Neue Ware aus der Datenbank. In diesem Fall ist unit_$i die |
|
274 |
# Einheit, wie sie in den Stammdaten hinterlegt wurde. |
|
275 |
# Es sollte also angenommen werden, dass diese ausgewaehlt war. |
|
276 |
$form->{"unit_old_$i"} = $form->{"unit_$i"}; |
|
277 |
} |
|
278 |
|
|
279 |
# Die zuletzt ausgewaehlte mit der aktuell ausgewaehlten Einheit |
|
280 |
# vergleichen und bei Unterschied den Preis entsprechend umrechnen. |
|
281 |
$form->{"selected_unit_$i"} = $form->{"unit_$i"} unless ($form->{"selected_unit_$i"}); |
|
282 |
|
|
283 |
my $check_units = $form->{"inventory_accno_$i"} ? $dimension_units : $service_units; |
|
284 |
if (!$check_units->{$form->{"selected_unit_$i"}} || |
|
285 |
($check_units->{$form->{"selected_unit_$i"}}->{"base_unit"} ne |
|
286 |
$all_units->{$form->{"unit_old_$i"}}->{"base_unit"})) { |
|
287 |
# Die ausgewaehlte Einheit ist fuer diesen Artikel nicht gueltig |
|
288 |
# (z.B. Dimensionseinheit war ausgewaehlt, es handelt sich aber |
|
289 |
# um eine Dienstleistung). Dann keinerlei Umrechnung vornehmen. |
|
290 |
$form->{"unit_old_$i"} = $form->{"selected_unit_$i"} = $form->{"unit_$i"}; |
|
291 |
} |
|
292 |
if ((!$form->{"prices_$i"}) || ($form->{"new_pricegroup_$i"} == $form->{"old_pricegroup_$i"})) { |
|
293 |
if ($form->{"unit_old_$i"} ne $form->{"selected_unit_$i"}) { |
|
294 |
my $basefactor = 1; |
|
295 |
if (defined($all_units->{$form->{"unit_old_$i"}}->{"factor"}) && |
|
296 |
$all_units->{$form->{"unit_old_$i"}}->{"factor"}) { |
|
297 |
$basefactor = $all_units->{$form->{"selected_unit_$i"}}->{"factor"} / |
|
298 |
$all_units->{$form->{"unit_old_$i"}}->{"factor"}; |
|
299 |
} |
|
300 |
$form->{"sellprice_$i"} *= $basefactor; |
|
301 |
$form->{"unit_old_$i"} = $form->{"selected_unit_$i"}; |
|
302 |
} |
|
303 |
} |
|
304 |
|
|
305 |
($dec) = ($form->{"sellprice_$i"} =~ /\.(\d+)/); |
|
306 |
$decimalplaces = max length($dec), 2; |
|
307 |
|
|
308 |
$price_factor = $price_factors{$form->{"price_factor_id_$i"}} || 1; |
|
309 |
$discount = (100 - $form->{"discount_$i"} * 1) / 100; |
|
310 |
|
|
311 |
$linetotal = $form->round_amount($form->{"sellprice_$i"} * $form->{"qty_$i"} * $discount / $price_factor, $decimalplaces); |
|
312 |
|
|
313 |
my $real_sellprice = $form->{"sellprice_$i"} * $discount / $price_factor; |
|
314 |
|
|
315 |
# marge calculations |
|
316 |
my ($marge_font_start, $marge_font_end); |
|
317 |
|
|
318 |
$form->{"lastcost_$i"} *= 1; |
|
319 |
|
|
320 |
$marge_price_factor = $form->{"marge_price_factor_$i"} * 1 || 1; |
|
321 |
|
|
322 |
if ($real_sellprice && ($form->{"qty_$i"} * 1)) { |
|
323 |
$form->{"marge_percent_$i"} = ($real_sellprice - $form->{"lastcost_$i"} / $marge_price_factor) * 100 / $real_sellprice; |
|
324 |
$myconfig{"marge_percent_warn"} = 15 unless (defined($myconfig{"marge_percent_warn"})); |
|
325 |
|
|
326 |
if ($form->{"id_$i"} && |
|
327 |
($form->{"marge_percent_$i"} < (1 * $myconfig{"marge_percent_warn"}))) { |
|
328 |
$marge_font_start = "<font color=\"#ff0000\">"; |
|
329 |
$marge_font_end = "</font>"; |
|
330 |
} |
|
331 |
|
|
332 |
} else { |
|
333 |
$form->{"marge_percent_$i"} = 0; |
|
334 |
} |
|
335 |
|
|
336 |
my $marge_adjust_credit_note = $form->{type} eq 'credit_note' ? -1 : 1; |
|
337 |
$form->{"marge_total_$i"} = ($real_sellprice - $form->{"lastcost_$i"} / $marge_price_factor) * $form->{"qty_$i"} * $marge_adjust_credit_note; |
|
338 |
$form->{"marge_total"} += $form->{"marge_total_$i"}; |
|
339 |
$form->{"lastcost_total"} += $form->{"lastcost_$i"} * $form->{"qty_$i"} / $marge_price_factor; |
|
340 |
$form->{"sellprice_total"} += $real_sellprice * $form->{"qty_$i"}; |
|
341 |
|
|
342 |
map { $form->{"${_}_$i"} = $form->format_amount(\%myconfig, $form->{"${_}_$i"}, 2) } qw(marge_total marge_percent); |
|
343 |
|
|
344 |
# convert " to " |
|
345 |
map { $form->{"${_}_$i"} =~ s/\"/"/g } |
|
346 |
qw(partnumber description unit unit_old); |
|
347 |
|
|
348 |
######################################## |
|
349 |
# Eintrag fuer Version 2.2.0 geaendert # |
|
350 |
# neue Optik im Rechnungsformular # |
|
351 |
######################################## |
|
352 |
$column_data{runningnumber} = |
|
353 |
qq|<td><input name="runningnumber_$i" size="5" value="$i"></td>|; # HuT |
|
354 |
############## ENDE Neueintrag ################## |
|
355 |
|
|
356 |
$column_data{partnumber} = |
|
357 |
qq|<td><input name="partnumber_$i" size=12 value="$form->{"partnumber_$i"}"></td>|; |
|
358 |
|
|
359 |
if (($rows = $form->numtextrows($form->{"description_$i"}, 30, 6)) > 1) { |
|
360 |
$column_data{description} = |
|
361 |
qq|<td><textarea name="description_$i" rows="$rows" cols="30" wrap="soft">| . H($form->{"description_$i"}) . qq|</textarea><button type="button" onclick="set_longdescription_window('longdescription_$i')">| . $locale->text('L') . qq|</button></td>|; |
|
362 |
} else { |
|
363 |
$column_data{description} = |
|
364 |
qq|<td><input name="description_$i" size="30" value="| . $form->quote($form->{"description_$i"}) . qq|"><button type="button" onclick="set_longdescription_window('longdescription_$i')">| . $locale->text('L') . qq|</button></td>|; |
|
365 |
} |
|
366 |
|
|
367 |
(my $qty_dec) = ($form->{"qty_$i"} =~ /\.(\d+)/); |
|
368 |
$qty_dec = length $qty_dec; |
|
369 |
|
|
370 |
$column_data{qty} = |
|
371 |
qq|<td align="right"><input name="qty_$i" size="5" value="| |
|
372 |
. $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec) .qq|">|; |
|
373 |
if ($form->{"formel_$i"}) { |
|
374 |
$column_data{qty} .= qq|<button type="button" onclick="calculate_qty_selection_window('qty_$i','alu_$i', 'formel_$i', $i)">| . $locale->text('*/') . qq|</button>| |
|
375 |
. $cgi->hidden("-name" => "formel_$i", "-value" => $form->{"formel_$i"}) . $cgi->hidden("-name" => "alu_$i", "-value" => $form->{"alu_$i"}); |
|
376 |
} |
|
377 |
$column_data{qty} .= qq|</td>|; |
|
378 |
$column_data{ship} = |
|
379 |
qq|<td align="right"><input name="ship_$i" size=5 value="| |
|
380 |
. $form->format_amount(\%myconfig, $form->{"ship_$i"}) |
|
381 |
. qq|"></td>|; |
|
382 |
|
|
383 |
my $is_part = $form->{"inventory_accno_$i"}; |
|
384 |
my $is_assembly = $form->{"assembly_$i"}; |
|
385 |
my $is_assigned = $form->{"id_$i"}; |
|
386 |
my $this_unit = $form->{"unit_$i"}; |
|
387 |
if ($form->{"selected_unit_$i"} && $this_unit && |
|
388 |
$all_units->{$form->{"selected_unit_$i"}} && $all_units->{$this_unit} && |
|
389 |
($all_units->{$form->{"selected_unit_$i"}}->{"base_unit"} eq $all_units->{$this_unit}->{"base_unit"})) { |
|
390 |
$this_unit = $form->{"selected_unit_$i"}; |
|
391 |
} elsif (!$is_assigned || |
|
392 |
($is_part && !$this_unit && ($all_units->{$this_unit} && ($all_units->{$this_unit}->{"base_unit"} eq $all_units->{"kg"}->{"base_unit"})))) { |
|
393 |
$this_unit = "kg"; |
|
394 |
} |
|
395 |
|
|
396 |
my $price_factor_select; |
|
397 |
if (0 < scalar @{ $form->{ALL_PRICE_FACTORS} }) { |
|
398 |
my @values = ('', map { $_->{id} } @{ $form->{ALL_PRICE_FACTORS} }); |
|
399 |
my %labels = map { $_->{id} => $_->{description} } @{ $form->{ALL_PRICE_FACTORS} }; |
|
400 |
|
|
401 |
$price_factor_select = |
|
402 |
NTI($cgi->popup_menu('-name' => "price_factor_id_$i", |
|
403 |
'-default' => $form->{"price_factor_id_$i"}, |
|
404 |
'-values' => \@values, |
|
405 |
'-labels' => \%labels, |
|
406 |
'-style' => 'width:90px')) |
|
407 |
. ' '; |
|
408 |
} |
|
409 |
|
|
410 |
$column_data{"unit"} = "<td>" . |
|
411 |
$price_factor_select . |
|
412 |
AM->unit_select_html($is_part || $is_assembly ? $dimension_units : |
|
413 |
$is_assigned ? $service_units : $all_units, |
|
414 |
"unit_$i", $this_unit, |
|
415 |
$is_assigned ? $form->{"unit_$i"} : undef) |
|
416 |
. "</td>"; |
|
417 |
|
|
418 |
# build in drop down list for pricesgroups |
|
419 |
if ($form->{"prices_$i"}) { |
|
420 |
if ($form->{"new_pricegroup_$i"} != $form->{"old_pricegroup_$i"}) { |
|
421 |
$price_tmp = $form->format_amount(\%myconfig, $form->{"price_new_$i"}, $decimalplaces); |
|
422 |
} else { |
|
423 |
$price_tmp = $form->format_amount(\%myconfig, $form->{"sellprice_$i"}, $decimalplaces); |
|
424 |
} |
|
425 |
|
|
426 |
$column_data{sellprice_pg} = |
|
427 |
qq|<td align="right"><select name="sellprice_pg_$i">$form->{"prices_$i"}</select></td>|; |
|
428 |
$column_data{sellprice} = |
|
429 |
qq|<td><input name="sellprice_$i" size="10" value="$price_tmp" onBlur=\"check_right_number_format(this)\"></td>|; |
|
430 |
} else { |
|
431 |
|
|
432 |
# for last row and report |
|
433 |
# set pricegroup drop down list from report menu |
|
434 |
if ($form->{"sellprice_$i"} != 0) { |
|
435 |
$prices = |
|
436 |
qq|<option value="$form->{"sellprice_$i"}--$form->{"pricegroup_id_$i"}" selected>$form->{"pricegroup_$i"}</option>\n|; |
|
437 |
|
|
438 |
$form->{"pricegroup_old_$i"} = $form->{"pricegroup_id_$i"}; |
|
439 |
|
|
440 |
$column_data{sellprice_pg} = |
|
441 |
qq|<td align="right"><select name="sellprice_pg_$i">$prices</select></td>|; |
|
442 |
|
|
443 |
} else { |
|
444 |
|
|
445 |
# for last row |
|
446 |
$column_data{sellprice_pg} = qq|<td align="right"> </td>|; |
|
447 |
} |
|
448 |
|
|
449 |
$column_data{sellprice} = |
|
450 |
qq|<td><input name="sellprice_$i" size="10" onBlur=\"check_right_number_format(this)\" value="| |
|
451 |
. $form->format_amount(\%myconfig, $form->{"sellprice_$i"}, |
|
452 |
$decimalplaces) |
|
453 |
. qq|"></td>|; |
|
454 |
} |
|
455 |
$column_data{discount} = |
|
456 |
qq|<td align="right"><input name="discount_$i" size=3 value="| |
|
457 |
. $form->format_amount(\%myconfig, $form->{"discount_$i"}) |
|
458 |
. qq|"></td>|; |
|
459 |
$column_data{linetotal} = |
|
460 |
qq|<td align="right">| |
|
461 |
. $form->format_amount(\%myconfig, $linetotal, 2) |
|
462 |
. qq|</td>|; |
|
463 |
$column_data{bin} = qq|<td>$form->{"bin_$i"}</td>|; |
|
464 |
|
|
465 |
######################################## |
|
466 |
# Eintrag fuer Version 2.2.0 geaendert # |
|
467 |
# neue Optik im Rechnungsformular # |
|
468 |
######################################## |
|
469 |
# if ($lizenzen && $form->{type} eq "invoice" && $form->{vc} eq "customer") { |
|
470 |
# $column_data{license} = qq|<td><select name="licensenumber_$i">$form->{"lizenzen_$i"}></select></td>|; |
|
471 |
# } |
|
472 |
# |
|
473 |
# if ($form->{type} !~ /_quotation/) { |
|
474 |
# $column_data{serialnr} = qq|<td><input name="serialnumber_$i" size=10 value="$form->{"serialnumber_$i"}"></td>|; |
|
475 |
# } |
|
476 |
# |
|
477 |
# $column_data{projectnr} = qq|<td><input name="projectnumber_$i" size=10 value="$form->{"projectnumber_$i"}"></td>|; |
|
478 |
############## ENDE Neueintrag ################## |
|
479 |
my $j = $i % 2; |
|
480 |
print qq| |
|
481 |
|
|
482 |
<tr valign="top" class="listrow$j">|; |
|
483 |
|
|
484 |
map { print "\n$column_data{$_}" } @column_index; |
|
485 |
|
|
486 |
print("</tr>\n" . |
|
487 |
$cgi->hidden("-name" => "unit_old_$i", |
|
488 |
"-value" => $form->{"selected_unit_$i"}) |
|
489 |
. "\n" . |
|
490 |
$cgi->hidden("-name" => "price_new_$i", |
|
491 |
"-value" => $form->format_amount(\%myconfig, $form->{"price_new_$i"})) |
|
492 |
. "\n"); |
|
493 |
map({ print($cgi->hidden("-name" => $_, "-value" => $form->{$_}) . "\n"); } |
|
494 |
("orderitems_id_$i", "bo_$i", "pricegroup_old_$i", "price_old_$i", |
|
495 |
"id_$i", "inventory_accno_$i", "bin_$i", "partsgroup_$i", "partnotes_$i", |
|
496 |
"income_accno_$i", "expense_accno_$i", "listprice_$i", "assembly_$i", |
|
497 |
"taxaccounts_$i", "ordnumber_$i", "transdate_$i", "cusordnumber_$i", |
|
498 |
"longdescription_$i", "basefactor_$i", "marge_total_$i", "marge_percent_$i", "lastcost_$i", |
|
499 |
"marge_price_factor_$i")); |
|
500 |
|
|
501 |
######################################## |
|
502 |
# Eintrag fuer Version 2.2.0 geaendert # |
|
503 |
# neue Optik im Rechnungsformular # |
|
504 |
######################################## |
|
505 |
|
|
506 |
my $row_style_attr = |
|
507 |
'style="display:none;"' if (!$form->{"show_details"}); |
|
508 |
|
|
509 |
# print second row |
|
510 |
print qq| |
|
511 |
<tr class="listrow$j" $row_style_attr> |
|
512 |
<td colspan="$colspan"> |
|
513 |
|; |
|
514 |
if ($lizenzen && $form->{type} eq "invoice" && $form->{vc} eq "customer") { |
|
515 |
my $selected = $form->{"licensenumber_$i"}; |
|
516 |
my $lizenzen_quoted; |
|
517 |
$form->{"lizenzen_$i"} =~ s/ selected//g; |
|
518 |
$form->{"lizenzen_$i"} =~ |
|
519 |
s/value="${selected}"\>/value="${selected}" selected\>/; |
|
520 |
$lizenzen_quoted = $form->{"lizenzen_$i"}; |
|
521 |
$lizenzen_quoted =~ s/\"/"/g; |
|
522 |
print qq| |
|
523 |
<b>Lizenz\#</b> <select name="licensenumber_$i" size="1"> |
|
524 |
$form->{"lizenzen_$i"} |
|
525 |
</select> |
|
526 |
<input type="hidden" name="lizenzen_$i" value="${lizenzen_quoted}"> |
|
527 |
|; |
|
528 |
} |
|
529 |
if ($form->{type} !~ /_quotation/) { |
|
530 |
print qq| |
|
531 |
<b>$serialnumber</b> <input name="serialnumber_$i" size="15" value="$form->{"serialnumber_$i"}">|; |
|
532 |
} |
|
533 |
|
|
534 |
print qq|<b>$projectnumber</b> | . |
|
535 |
NTI($cgi->popup_menu('-name' => "project_id_$i", |
|
536 |
'-values' => \@projectnumber_values, |
|
537 |
'-labels' => \%projectnumber_labels, |
|
538 |
'-default' => $form->{"project_id_$i"})); |
|
539 |
|
|
540 |
if ($form->{type} eq 'invoice' or $form->{type} =~ /order/) { |
|
541 |
my $reqdate_term = |
|
542 |
($form->{type} eq 'invoice') |
|
543 |
? 'deliverydate' |
|
544 |
: 'reqdate'; # invoice uses a different term for the same thing. |
|
545 |
print qq| |
|
546 |
<b>${$reqdate_term}</b> <input name="${reqdate_term}_$i" size="11" onBlur="check_right_date_format(this)" value="$form->{"${reqdate_term}_$i"}"> |
|
547 |
|; |
|
548 |
} |
|
549 |
my $subtotalchecked = ($form->{"subtotal_$i"}) ? "checked" : ""; |
|
550 |
print qq| |
|
551 |
<b>|.$locale->text('Subtotal').qq|</b> <input type="checkbox" name="subtotal_$i" value="1" $subtotalchecked> |
|
552 |
|; |
|
553 |
|
|
554 |
if ($form->{"id_$i"} && $is_sales) { |
|
555 |
my $marge_price_factor; |
|
556 |
|
|
557 |
$form->{"marge_price_factor_$i"} *= 1; |
|
558 |
|
|
559 |
if ($form->{"marge_price_factor_$i"} && (1 != $form->{"marge_price_factor_$i"})) { |
|
560 |
$marge_price_factor = '/' . $form->format_amount(\%myconfig, $form->{"marge_price_factor_$i"}); |
|
561 |
} |
|
562 |
|
|
563 |
print qq| |
|
564 |
${marge_font_start}<b>| . $locale->text('Ertrag') . qq|</b> $form->{"marge_total_$i"} $form->{"marge_percent_$i"} % ${marge_font_end}|; |
|
565 |
} |
|
566 |
print qq| |
|
567 |
<b>| . $locale->text('LP') . qq|</b> | . $form->format_amount(\%myconfig, $form->{"listprice_$i"}, 2) . qq| |
|
568 |
<b>| . $locale->text('EK') . qq|</b> | . $form->format_amount(\%myconfig, $form->{"lastcost_$i"}, 2) . $marge_price_factor; |
|
569 |
|
|
570 |
|
|
571 |
print qq| |
|
572 |
</td> |
|
573 |
</tr> |
|
574 |
|; |
|
575 |
|
|
576 |
############## ENDE Neueintrag ################## |
|
577 |
|
|
578 |
map { $form->{"${_}_base"} += $linetotal } |
|
579 |
(split(/ /, $form->{"taxaccounts_$i"})); |
|
580 |
|
|
581 |
$form->{invsubtotal} += $linetotal; |
|
582 |
} |
|
583 |
|
|
584 |
print qq| |
|
585 |
</table> |
|
586 |
</td> |
|
587 |
</tr> |
|
588 |
|; |
|
589 |
|
|
590 |
if (0 != ($form->{sellprice_total} * 1)) { |
|
591 |
$form->{marge_percent} = ($form->{sellprice_total} - $form->{lastcost_total}) / $form->{sellprice_total} * 100; |
|
592 |
} |
|
593 |
|
|
594 |
$lxdebug->leave_sub(); |
|
595 |
} |
|
596 |
|
|
597 |
sub set_pricegroup { |
|
598 |
$lxdebug->enter_sub(); |
|
599 |
my $rowcount = shift; |
|
600 |
for $j (1 .. $rowcount) { |
|
601 |
my $pricegroup_old = $form->{"pricegroup_old_$i"}; |
|
602 |
if ($form->{PRICES}{$j}) { |
|
603 |
$len = 0; |
|
604 |
$prices = '<option value="--">' . $locale->text("none (pricegroup)") . '</option>'; |
|
605 |
$price = 0; |
|
606 |
foreach $item (@{ $form->{PRICES}{$j} }) { |
|
607 |
|
|
608 |
#$price = $form->round_amount($myconfig, $item->{price}, 5); |
|
609 |
#$price = $form->format_amount($myconfig, $item->{price}, 2); |
|
610 |
$price = $item->{price}; |
|
611 |
$pricegroup_id = $item->{pricegroup_id}; |
|
612 |
$pricegroup = $item->{pricegroup}; |
|
613 |
|
|
614 |
# build drop down list for pricegroups |
|
615 |
$prices .= |
|
616 |
qq|<option value="$price--$pricegroup_id"$item->{selected}>$pricegroup</option>\n|; |
|
617 |
|
|
618 |
$len += 1; |
|
619 |
|
|
620 |
# map { |
|
621 |
# $form->{"${_}_$j"} = |
|
622 |
# $form->format_amount(\%myconfig, $form->{"${_}_$j"}) |
|
623 |
# } qw(sellprice price_new price_old); |
|
624 |
|
|
625 |
# set new selectedpricegroup_id and prices for "Preis" |
|
626 |
if ($item->{selected} && ($pricegroup_id != 0)) { |
|
627 |
$form->{"pricegroup_old_$j"} = $pricegroup_id; |
|
628 |
$form->{"price_new_$j"} = $price; |
|
629 |
$form->{"sellprice_$j"} = $price; |
|
630 |
} |
|
631 |
if ($pricegroup_id == 0) { |
|
632 |
$form->{"price_new_$j"} = $form->{"sellprice_$j"}; |
|
633 |
} |
|
634 |
} |
|
635 |
$form->{"prices_$j"} = $prices; |
|
636 |
} |
|
637 |
} |
|
638 |
$lxdebug->leave_sub(); |
|
639 |
} |
|
640 |
|
|
641 |
sub display_form { |
|
642 |
$lxdebug->enter_sub(); |
|
643 |
|
|
644 |
relink_accounts(); |
|
645 |
|
|
646 |
my $new_rowcount = $form->{"rowcount"} * 1 + 1; |
|
647 |
$form->{"project_id_${new_rowcount}"} = $form->{"globalproject_id"}; |
|
648 |
|
|
649 |
$form->language_payment(\%myconfig); |
|
650 |
|
|
651 |
# if we have a display_form |
|
652 |
if ($form->{display_form}) { |
|
653 |
call_sub($form->{"display_form"}); |
|
654 |
exit; |
|
655 |
} |
|
656 |
|
|
657 |
Common::webdav_folder($form) if ($webdav); |
|
658 |
|
|
659 |
# if ( $form->{print_and_post} |
|
660 |
# && $form->{second_run} |
|
661 |
# && ($form->{action} eq "display_form")) { |
|
662 |
# for (keys %$form) { $old_form->{$_} = $form->{$_} } |
|
663 |
# $old_form->{rowcount}++; |
|
664 |
# |
|
665 |
# #$form->{rowcount}--; |
|
666 |
# #$form->{rowcount}--; |
|
667 |
# |
|
668 |
# $form->{print_and_post} = 0; |
|
669 |
# |
|
670 |
# &print_form($old_form); |
|
671 |
# exit; |
|
672 |
# } |
|
673 |
# |
|
674 |
# $form->{action} = ""; |
|
675 |
# $form->{resubmit} = 0; |
|
676 |
# |
|
677 |
# if ($form->{print_and_post} && !$form->{second_run}) { |
|
678 |
# $form->{second_run} = 1; |
|
679 |
# $form->{action} = "display_form"; |
|
680 |
# $form->{rowcount}--; |
|
681 |
# my $rowcount = $form->{rowcount}; |
|
682 |
# |
|
683 |
# # get pricegroups for parts |
|
684 |
# IS->get_pricegroups_for_parts(\%myconfig, \%$form); |
|
685 |
# |
|
686 |
# # build up html code for prices_$i |
|
687 |
# set_pricegroup($rowcount); |
|
688 |
# |
|
689 |
# $form->{resubmit} = 1; |
|
690 |
# |
|
691 |
# } |
|
692 |
&form_header; |
|
693 |
|
|
694 |
$numrows = ++$form->{rowcount}; |
|
695 |
$subroutine = "display_row"; |
|
696 |
|
|
697 |
if ($form->{item} eq 'part') { |
|
698 |
|
|
699 |
#set preisgruppenanzahl |
|
700 |
$numrows = $form->{price_rows}; |
|
701 |
$subroutine = "price_row"; |
|
702 |
|
|
703 |
&{$subroutine}($numrows); |
|
704 |
|
|
705 |
$numrows = ++$form->{makemodel_rows}; |
|
706 |
$subroutine = "makemodel_row"; |
|
707 |
} |
|
708 |
if ($form->{item} eq 'assembly') { |
|
709 |
$numrows = $form->{price_rows}; |
|
710 |
$subroutine = "price_row"; |
|
711 |
|
|
712 |
&{$subroutine}($numrows); |
|
713 |
|
|
714 |
$numrows = ++$form->{makemodel_rows}; |
|
715 |
$subroutine = "makemodel_row"; |
|
716 |
|
|
717 |
# create makemodel rows |
|
718 |
&{$subroutine}($numrows); |
|
719 |
|
|
720 |
$numrows = ++$form->{assembly_rows}; |
|
721 |
$subroutine = "assembly_row"; |
|
722 |
} |
|
723 |
if ($form->{item} eq 'service') { |
|
724 |
$numrows = $form->{price_rows}; |
|
725 |
$subroutine = "price_row"; |
|
726 |
|
|
727 |
&{$subroutine}($numrows); |
|
728 |
|
|
729 |
$numrows = 0; |
|
730 |
} |
|
731 |
|
|
732 |
# create rows |
|
733 |
&{$subroutine}($numrows) if $numrows; |
|
734 |
|
|
735 |
&form_footer; |
|
736 |
|
|
737 |
$lxdebug->leave_sub(); |
|
738 |
} |
templates/webpages/generic/new_item_de.html | ||
---|---|---|
1 |
<body> |
|
2 |
|
|
3 |
<h4 class="error">Dieser Artikel ist nicht in der Datenbank! |
|
4 |
|
|
5 |
|
|
6 |
<p>Was ist dieser Artikel?</h4> |
|
7 |
|
|
8 |
<form method="post" action="ic.pl"> |
|
9 |
|
|
10 |
<p> |
|
11 |
|
|
12 |
<input class="radio" type="radio" name="item" value="part" checked> Ware<br> |
|
13 |
<input class="radio" type="radio" name="item" value="service"> Dienstleistung |
|
14 |
<p> |
|
15 |
|
|
16 |
<TMPL_LOOP HIDDENS><TMPL_VAR value> |
|
17 |
</TMPL_LOOP> |
|
18 |
|
|
19 |
<input type="hidden" name="nextsub" value="add"> |
|
20 |
<input class="submit" type="submit" name="action" value="Weiter"> |
|
21 |
</form> |
|
22 |
|
|
23 |
</body> |
|
24 |
</html> |
|
25 |
|
templates/webpages/generic/new_item_master.html | ||
---|---|---|
1 |
<body> |
|
2 |
|
|
3 |
<h4 class="error"><translate>Item not on file!</translate> |
|
4 |
|
|
5 |
|
|
6 |
<p><translate>What type of item is this?</translate></h4> |
|
7 |
|
|
8 |
<form method="post" action="ic.pl"> |
|
9 |
|
|
10 |
<p> |
|
11 |
|
|
12 |
<input class="radio" type="radio" name="item" value="part" checked> <translate>Part</translate><br> |
|
13 |
<input class="radio" type="radio" name="item" value="service"> <translate>Service</translate> |
|
14 |
<p> |
|
15 |
|
|
16 |
<TMPL_LOOP HIDDENS><TMPL_VAR value> |
|
17 |
</TMPL_LOOP> |
|
18 |
|
|
19 |
<input type="hidden" name="nextsub" value="add"> |
|
20 |
<input class="submit" type="submit" name="action" value="<translate>Continue</translate>"> |
|
21 |
</form> |
|
22 |
|
|
23 |
</body> |
|
24 |
</html> |
|
25 |
|
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>[% payments %]</td> |
|
20 |
</tr> |
|
21 |
</table> |
|
22 |
</td> |
|
23 |
<td> |
|
24 |
<table> |
|
25 |
|
|
26 |
[%- IF is_sales %] |
|
27 |
<tr> |
|
28 |
<th align=left>Ertrag</th> |
|
29 |
<td>[% LxERP.format_amount(marge_total, 2) %] %</td> |
|
30 |
</tr> |
|
31 |
<tr> |
|
32 |
<th align=left>Ertrag prozentual</th> |
|
33 |
<td>[% LxERP.format_amount(marge_percent, 2) %] %</td> |
|
34 |
</tr> |
|
35 |
[%- END %] |
|
36 |
|
|
37 |
<input type=hidden name="marge_total" value="[% marge_total %]"> |
|
38 |
<input type=hidden name="marge_percent" value="[% marge_percent %]"> |
|
39 |
</table> |
|
40 |
</td> |
|
41 |
<td align=right> |
|
42 |
[%- IF taxaccounts %] |
|
43 |
<input name=taxincluded class=checkbox type=checkbox value=1 [% IF taxincluded %]checked[% END %]><b>Steuer im Preis inbegriffen</b><br><br> |
|
44 |
[%- END %] |
|
45 |
<table> |
|
46 |
[% subtotal %] |
|
47 |
[% tax %] |
|
48 |
<tr> |
|
49 |
<th align=right>Summe</th> |
|
50 |
<td align=right>[% LxERP.format_amount(invtotal, 2) %]</td> |
|
51 |
</tr> |
|
52 |
</table> |
|
53 |
</td> |
|
54 |
</tr> |
|
55 |
</table> |
|
56 |
</td> |
|
57 |
</tr> |
|
58 |
<input type=hidden name=oldinvtotal value="[% HTML.escape(oldinvtotal) %]"> |
|
59 |
<input type=hidden name=oldtotalpaid value="[% HTML.escape(totalpaid) %]"> |
|
60 |
<tr> |
|
61 |
<td><hr size=3 noshade></td> |
|
62 |
</tr> |
|
63 |
|
|
64 |
[%- IF webdav %] |
|
65 |
<tr> |
|
66 |
<th class=listtop align=left>Dokumente im Webdav-Repository</th> |
|
67 |
</tr> |
|
68 |
<table width=100%> |
|
69 |
<tr> |
|
70 |
<td align=left width=30%><b>Dateiname</b></td> |
|
71 |
<td align=left width=70%><b>Webdavlink</b></td> |
|
72 |
</tr> |
|
73 |
[%- FOREACH file = WEBDAV %] |
|
74 |
<tr> |
|
75 |
<td align="left">[% file.name %]</td> |
|
76 |
<td align="left"><a href="[% file.link %]">[% file.type %]</a></td> |
|
77 |
</tr> |
|
78 |
[%- END %] |
|
79 |
</table> |
|
80 |
</tr> |
|
81 |
<tr> |
|
82 |
<td><hr size=3 noshade></td> |
|
83 |
</tr> |
|
84 |
[%- END %] |
|
85 |
|
|
86 |
<tr> |
|
87 |
<td> |
|
88 |
[% print_options %] |
|
89 |
</td> |
|
90 |
</tr> |
|
91 |
</table> |
|
92 |
|
|
93 |
[% label_edit %]<br> |
|
94 |
<input class=submit type=submit name=action id=update_button value="Erneuern"> |
|
95 |
<input class=submit type=submit name=action value="Lieferadresse"> |
|
96 |
<input class=submit type=submit name=action value="Drucken"> |
|
97 |
<input class=submit type=submit name=action value="eMail"> |
|
98 |
<input class=submit type=submit name=action value="Speichern"> |
|
99 |
<input class=submit type=submit name=action value="Speichern und schlie?en"> |
|
100 |
|
|
101 |
[%- IF id %] |
|
102 |
<input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="Historie"> |
|
103 |
|
|
104 |
<br>[% label_workflow %]<br> |
|
105 |
<input class=submit type=submit name=action value="als neu speichern"> |
|
106 |
<input class=submit type=submit name=action value="L?schen"> |
|
107 |
|
|
108 |
[%- IF is_sales_quo %] |
|
109 |
<input class=submit type=submit name=action value="Kundenauftrag"> |
|
110 |
[%- END %] |
|
111 |
|
|
112 |
[%- IF is_req_quo %] |
|
113 |
<input class=submit type=submit name=action value="Lieferantenauftrag"> |
|
114 |
[%- END %] |
|
115 |
|
|
116 |
<input class=submit type=submit name=action value="Rechnung"> |
|
117 |
|
|
118 |
<br>[% heading %] als neue Vorlage verwenden für<br> |
|
119 |
[%- IF is_sales_ord %] |
|
120 |
<input class=submit type=submit name=action value="Lieferantenauftrag"> |
|
121 |
<input class=submit type=submit name=action value="Angebot"> |
|
122 |
[%- ELSE %] |
|
123 |
[%- IF is_pur_ord %] |
|
124 |
<input class=submit type=submit name=action value="Kundenauftrag"> |
|
125 |
<input class=submit type=submit name=action value="Anfrage"> |
|
126 |
[%- ELSE %] |
|
127 |
<input class=submit type=submit name=action value="Auftrag"> |
|
128 |
[%- END %] |
|
129 |
[%- END %] |
|
130 |
[%- END %] |
|
131 |
|
|
132 |
<input type=hidden name=saved_xyznumber value="[% HTML.escape(saved_xyznumber) %]"> |
|
133 |
<input type=hidden name=rowcount value="[% HTML.escape(rowcount) %]"> |
|
134 |
<input type=hidden name=callback value="[% callback %]"> |
|
135 |
|
|
136 |
<input type=hidden name=login value="[% HTML.escape(login) %]"> |
|
137 |
<input type=hidden name=password value="[% HTML.escape(password) %]"> |
|
138 |
|
|
139 |
</form> |
|
140 |
|
|
141 |
</body> |
|
142 |
</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>[% payments %]</td> |
|
20 |
</tr> |
|
21 |
</table> |
|
22 |
</td> |
|
23 |
<td> |
|
24 |
<table> |
|
25 |
|
|
26 |
[%- IF is_sales %] |
|
27 |
<tr> |
|
28 |
<th align=left><translate>Ertrag</translate></th> |
|
29 |
<td>[% LxERP.format_amount(marge_total, 2) %] %</td> |
|
30 |
</tr> |
|
31 |
<tr> |
|
32 |
<th align=left><translate>Ertrag prozentual</translate></th> |
|
33 |
<td>[% LxERP.format_amount(marge_percent, 2) %] %</td> |
|
34 |
</tr> |
|
35 |
[%- END %] |
|
36 |
|
|
37 |
<input type=hidden name="marge_total" value="[% marge_total %]"> |
|
38 |
<input type=hidden name="marge_percent" value="[% marge_percent %]"> |
|
39 |
</table> |
|
40 |
</td> |
|
41 |
<td align=right> |
|
42 |
[%- IF taxaccounts %] |
|
43 |
<input name=taxincluded class=checkbox type=checkbox value=1 [% IF taxincluded %]checked[% END %]><b><translate>Tax Included</translate></b><br><br> |
|
44 |
[%- END %] |
|
45 |
<table> |
|
46 |
[% subtotal %] |
|
47 |
[% tax %] |
|
48 |
<tr> |
|
49 |
<th align=right><translate>Total</translate></th> |
|
50 |
<td align=right>[% LxERP.format_amount(invtotal, 2) %]</td> |
|
51 |
</tr> |
|
52 |
</table> |
|
53 |
</td> |
|
54 |
</tr> |
|
55 |
</table> |
|
56 |
</td> |
|
57 |
</tr> |
|
58 |
<input type=hidden name=oldinvtotal value="[% HTML.escape(oldinvtotal) %]"> |
|
59 |
<input type=hidden name=oldtotalpaid value="[% HTML.escape(totalpaid) %]"> |
|
60 |
<tr> |
|
61 |
<td><hr size=3 noshade></td> |
|
62 |
</tr> |
|
63 |
|
|
64 |
[%- IF webdav %] |
|
65 |
<tr> |
|
66 |
<th class=listtop align=left>Dokumente im Webdav-Repository</th> |
|
67 |
</tr> |
|
68 |
<table width=100%> |
|
69 |
<tr> |
|
70 |
<td align=left width=30%><b>Dateiname</b></td> |
|
71 |
<td align=left width=70%><b>Webdavlink</b></td> |
|
72 |
</tr> |
|
73 |
[%- FOREACH file = WEBDAV %] |
|
74 |
<tr> |
|
75 |
<td align="left">[% file.name %]</td> |
|
76 |
<td align="left"><a href="[% file.link %]">[% file.type %]</a></td> |
|
77 |
</tr> |
|
78 |
[%- END %] |
|
79 |
</table> |
|
80 |
</tr> |
|
81 |
<tr> |
|
82 |
<td><hr size=3 noshade></td> |
|
83 |
</tr> |
|
84 |
[%- END %] |
|
85 |
|
|
86 |
<tr> |
|
87 |
<td> |
|
88 |
[% print_options %] |
|
89 |
</td> |
|
90 |
</tr> |
|
91 |
</table> |
|
92 |
|
|
93 |
[% label_edit %]<br> |
|
94 |
<input class=submit type=submit name=action id=update_button value="<translate>Update</translate>"> |
|
95 |
<input class=submit type=submit name=action value="<translate>Ship to</translate>"> |
|
96 |
<input class=submit type=submit name=action value="<translate>Print</translate>"> |
|
97 |
<input class=submit type=submit name=action value="<translate>E-mail</translate>"> |
|
98 |
<input class=submit type=submit name=action value="<translate>Save</translate>"> |
|
99 |
<input class=submit type=submit name=action value="<translate>Save and Close</translate>"> |
|
100 |
|
|
101 |
[%- IF id %] |
|
102 |
<input type="button" class="submit" onclick="set_history_window([% HTML.escape(id) %])" name="history" id="history" value="<translate>history</translate>"> |
|
103 |
|
|
104 |
<br>[% label_workflow %]<br> |
|
105 |
<input class=submit type=submit name=action value="<translate>Save as new</translate>"> |
|
106 |
<input class=submit type=submit name=action value="<translate>Delete</translate>"> |
|
107 |
|
|
108 |
[%- IF is_sales_quo %] |
|
109 |
<input class=submit type=submit name=action value="<translate>Sales Order</translate>"> |
|
110 |
[%- END %] |
|
111 |
|
|
112 |
[%- IF is_req_quo %] |
|
113 |
<input class=submit type=submit name=action value="<translate>Purchase Order</translate>"> |
|
114 |
[%- END %] |
|
115 |
|
|
116 |
<input class=submit type=submit name=action value="<translate>Invoice</translate>"> |
|
117 |
|
|
118 |
<br>[% heading %] als neue Vorlage verwenden für<br> |
|
119 |
[%- IF is_sales_ord %] |
|
120 |
<input class=submit type=submit name=action value="<translate>Purchase Order</translate>"> |
|
121 |
<input class=submit type=submit name=action value="<translate>Quotation</translate>"> |
|
122 |
[%- ELSE %] |
|
123 |
[%- IF is_pur_ord %] |
|
124 |
<input class=submit type=submit name=action value="<translate>Sales Order</translate>"> |
|
125 |
<input class=submit type=submit name=action value="<translate>Request for Quotation</translate>"> |
|
126 |
[%- ELSE %] |
|
127 |
<input class=submit type=submit name=action value="<translate>Order</translate>"> |
|
128 |
[%- END %] |
|
129 |
[%- END %] |
|
130 |
[%- END %] |
|
131 |
|
|
132 |
<input type=hidden name=saved_xyznumber value="[% HTML.escape(saved_xyznumber) %]"> |
|
133 |
<input type=hidden name=rowcount value="[% HTML.escape(rowcount) %]"> |
|
134 |
<input type=hidden name=callback value="[% callback %]"> |
|
135 |
|
|
136 |
<input type=hidden name=login value="[% HTML.escape(login) %]"> |
|
137 |
<input type=hidden name=password value="[% HTML.escape(password) %]"> |
|
138 |
|
|
139 |
</form> |
|
140 |
|
|
141 |
</body> |
|
142 |
</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 |
|
|
12 |
[%- FOREACH row = HIDDENS %] |
|
13 |
<input type="hidden" name="[% row.name %]" value="[% HTML.escape(row.value) %]" > |
|
14 |
[%- END %] |
|
15 |
|
|
16 |
<table width=100%> |
|
17 |
<tr class=listtop> |
|
18 |
<th class=listtop>[% title %]</th> |
|
19 |
</tr> |
|
20 |
<tr height="5"></tr> |
|
21 |
<tr> |
|
22 |
<td> |
|
23 |
<table width="100%"> |
|
24 |
<tr valign=top> |
|
25 |
<td width=50%> |
|
26 |
<table width=100%> |
|
27 |
<tr> |
|
28 |
[% vc %] |
|
29 |
[%- IF contact %] |
|
30 |
<tr> |
|
31 |
<th align="right">Ansprechpartner</th> |
|
32 |
<td>[% contact %]</td> |
|
33 |
</tr> |
|
34 |
[%- END %] |
|
35 |
[%- IF shipto %] |
|
36 |
<tr> |
|
37 |
<th align="right">Lieferadresse</th> |
|
38 |
<td>[% shipto %]</td> |
|
39 |
</tr> |
|
40 |
[%- END %] |
|
41 |
[%- IF is_order %] |
|
42 |
<tr> |
|
43 |
<td align="right">Kreditlimit</td> |
|
44 |
<td>[% LxERP.format_amount(creditlimit, 0) %]; Rest <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td> |
|
45 |
</tr> |
|
46 |
[%- END %] |
|
47 |
[%- IF business %] |
|
48 |
<tr> |
|
49 |
<th align="right">[% business_label %]</th> |
|
50 |
<td>[% business %]; Rabatt [% LxERP.format_percent(tradediscount) %] %</td> |
|
51 |
</tr> |
|
52 |
[%- END %] |
|
53 |
[%- IF max_dunning_level %] |
|
54 |
<tr> |
|
55 |
<th align="right">h?chste Mahnstufe:</th> |
|
56 |
<td> |
|
57 |
<b>[% max_dunning_level %]</b>; |
|
58 |
gemahnter Betrag: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
[%- END %] |
|
62 |
<tr> |
|
63 |
<th align="right">Steuersatz</th> |
|
64 |
<td>[% taxzone %]</td> |
|
65 |
</tr> |
|
66 |
[%- IF selectdepartment %] |
|
67 |
<tr> |
|
68 |
<th align="right" nowrap>Abteilung</th> |
|
69 |
<td colspan=3><select name=department style="width: 250px">[% selectdepartment %]</select> |
|
70 |
<input type=hidden name=selectdepartment value="[% HTML.escape(selectdepartment) %]"> |
|
71 |
</td> |
|
72 |
</tr> |
|
73 |
[%- END %] |
|
74 |
<tr> |
|
75 |
[%- IF currencies %] |
|
76 |
<tr> |
|
77 |
<th align="right">W?hrung</th> |
|
78 |
<td>[% currencies %]</td> |
|
79 |
</tr> |
|
80 |
[%- END %] |
|
81 |
[%- IF show_exchangerate %] |
|
82 |
<tr> |
|
83 |
<th align=right>Wechselkurs</th> |
|
84 |
<td> |
|
85 |
[%~ IF forex ~%] |
|
86 |
[% LxERP.format_amount(exchangerate, 0) %] |
|
87 |
[%~ ELSE ~%] |
|
88 |
<input name=exchangerate size=10 value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
89 |
[%~ END ~%] |
|
90 |
</td> |
|
91 |
</tr> |
|
92 |
[%- END %] |
|
93 |
[%- IF is_sales %] |
|
94 |
<tr> |
|
95 |
<th align=right>Motiv</th> |
|
96 |
<td style="font-weight:bold" colspan=3><input name=motiv size=35 value="[% HTML.escape(motiv) %]"></td> |
|
97 |
</tr> |
|
98 |
[%- END -%] |
|
99 |
<tr> |
|
100 |
<th align=right>Versandort</th> |
|
101 |
<td colspan=3><input name=shippingpoint size=35 value="[% HTML.escape(shippingpoint) %]"></td> |
|
102 |
</tr> |
|
103 |
<tr> |
|
104 |
<th align=right>Transportmittel</th> |
|
105 |
<td colspan=3><input name=shipvia size=35 value="[% HTML.escape(shipvia) %]"></td> |
|
106 |
</tr> |
|
107 |
<tr> |
|
108 |
<th align="right">Vorgangsbezeichnung</th> |
|
109 |
<td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td> |
|
110 |
</tr> |
|
111 |
[%- IF show_delivery_customer %] |
|
112 |
<tr> |
|
113 |
<td colspan=4> |
|
114 |
<table> |
|
115 |
<tr> |
|
116 |
<td colspan=2> |
|
117 |
<button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">Endkunde w?hlen:</button> |
|
118 |
</td> |
|
119 |
<td colspan=2><input type=hidden name=delivery_customer_id value="[% HTML.escape(delivery_customer_id) %]"> |
|
120 |
<input size=45 id=delivery_customer_string name=delivery_customer_string value="[% HTML.escape(delivery_customer_string) %]"></td> |
|
121 |
</tr> |
|
122 |
<tr> |
|
123 |
<td colspan=2> |
|
124 |
<button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">H?ndler w?hlen</button> |
|
125 |
</td> |
|
126 |
<td colspan=2><input type=hidden name=delivery_vendor_id value="[% HTML.escape(delivery_vendor_id) %]"> |
|
127 |
<input size=45 id=vendor_string name=delivery_vendor_string value="[% HTML.escape(delivery_vendor_string) %]"></td> |
|
128 |
</tr> |
|
129 |
</table> |
|
130 |
</td> |
|
131 |
</tr> |
|
132 |
[%- END %] |
|
133 |
</table> |
|
134 |
</td> |
|
135 |
<td align=right> |
|
136 |
<table> |
|
137 |
[% openclosed %] |
|
138 |
<tr> |
|
139 |
<th align="right">Bearbeiter</th> |
|
140 |
<td>[% employee %]</td> |
|
141 |
</tr> |
|
142 |
[%- IF salesmen %] |
|
143 |
<tr> |
|
144 |
<th align="right">Verk?ufer/in</th> |
|
145 |
<td>[% salesmen %]</td> |
|
146 |
</tr> |
|
147 |
[%- END %] |
|
148 |
[%- IF is_order %] |
|
149 |
<tr> |
|
150 |
<th width=70% align=right nowrap>Auftragsnummer</th> |
|
151 |
<td><input name=ordnumber size=11 value="[% ordnumber %]"></td> |
|
152 |
</tr> |
|
153 |
[%- END %] |
|
154 |
<tr> |
|
155 |
<th width=70% align=right nowrap>[% IF is_req_quo %]Anfragenummer[% ELSE %]Angebotsnummer[% END %]</th> |
|
156 |
<td><input name=quonumber size=11 value="[% quonumber %]"></td> |
|
157 |
</tr> |
|
158 |
[%- IF is_order %]<tr> |
|
159 |
<th width=70% align=right nowrap>Bestellnummer des Kunden</th> |
|
160 |
<td><input name=cusordnumber size=11 value="[% cusordnumber %]"></td> |
|
161 |
</tr> |
|
162 |
[%- END %] |
|
163 |
<tr> |
|
164 |
<th align=right nowrap> |
|
165 |
[%~ IF is_order ~%] |
|
166 |
Auftragsdatum |
|
167 |
[%~ ELSE ~%] |
|
168 |
Angebotsdatum |
|
169 |
[%~ END ~%] |
|
170 |
</th> |
|
171 |
[% button1 %] |
|
172 |
</tr> |
|
173 |
<tr> |
|
174 |
<th align=right nowrap> |
|
175 |
[%~ IF is_sales_quo ~%] |
|
176 |
g?ltig bis |
|
177 |
[%~ ELSE ~%] |
|
178 |
Lieferdatum |
|
179 |
[%~ END ~%] |
|
180 |
</th> |
|
181 |
[% button2 %] |
|
182 |
</tr> |
|
183 |
<tr> |
|
184 |
<th width="70%" align="right" nowrap>Projektnummer</th> |
|
185 |
<td>[% globalprojectnumber %]</td> |
|
186 |
</tr> |
|
187 |
</table> |
|
188 |
</td> |
|
189 |
</tr> |
|
190 |
</table> |
|
191 |
</td> |
|
192 |
</tr> |
|
193 |
|
|
194 |
[% jsscript %] |
templates/webpages/oe/orders_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 |
|
|
12 |
[%- FOREACH row = HIDDENS %] |
|
13 |
<input type="hidden" name="[% row.name %]" value="[% HTML.escape(row.value) %]" > |
|
14 |
[%- END %] |
|
15 |
|
|
16 |
<table width=100%> |
|
17 |
<tr class=listtop> |
|
18 |
<th class=listtop>[% title %]</th> |
|
19 |
</tr> |
|
20 |
<tr height="5"></tr> |
|
21 |
<tr> |
|
22 |
<td> |
|
23 |
<table width="100%"> |
|
24 |
<tr valign=top> |
|
25 |
<td width=50%> |
|
26 |
<table width=100%> |
|
27 |
<tr> |
|
28 |
[% vc %] |
|
29 |
[%- IF contact %] |
|
30 |
<tr> |
|
31 |
<th align="right"><translate>Contact Person</translate></th> |
|
32 |
<td>[% contact %]</td> |
|
33 |
</tr> |
|
34 |
[%- END %] |
|
35 |
[%- IF shipto %] |
|
36 |
<tr> |
|
37 |
<th align="right"><translate>Shipping Address</translate></th> |
|
38 |
<td>[% shipto %]</td> |
|
39 |
</tr> |
|
40 |
[%- END %] |
|
41 |
[%- IF is_order %] |
|
42 |
<tr> |
|
43 |
<td align="right"><translate>Credit Limit</translate></td> |
|
44 |
<td>[% LxERP.format_amount(creditlimit, 0) %]; <translate>Remaining</translate> <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td> |
|
45 |
</tr> |
|
46 |
[%- END %] |
|
47 |
[%- IF business %] |
|
48 |
<tr> |
|
49 |
<th align="right">[% business_label %]</th> |
|
50 |
<td>[% business %]; <translate>Trade Discount</translate> [% LxERP.format_percent(tradediscount) %] %</td> |
|
51 |
</tr> |
|
52 |
[%- END %] |
|
53 |
[%- IF max_dunning_level %] |
|
54 |
<tr> |
|
55 |
<th align="right"><translate>Max. Dunning Level</translate>:</th> |
|
56 |
<td> |
|
57 |
<b>[% max_dunning_level %]</b>; |
|
58 |
<translate>Dunning Amount</translate>: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
[%- END %] |
|
62 |
<tr> |
|
63 |
<th align="right"><translate>Steuersatz</translate></th> |
|
64 |
<td>[% taxzone %]</td> |
|
65 |
</tr> |
|
66 |
[%- IF selectdepartment %] |
|
67 |
<tr> |
|
68 |
<th align="right" nowrap><translate>Department</translate></th> |
|
69 |
<td colspan=3><select name=department style="width: 250px">[% selectdepartment %]</select> |
|
70 |
<input type=hidden name=selectdepartment value="[% HTML.escape(selectdepartment) %]"> |
|
71 |
</td> |
|
72 |
</tr> |
|
73 |
[%- END %] |
|
74 |
<tr> |
|
75 |
[%- IF currencies %] |
|
76 |
<tr> |
|
77 |
<th align="right"><translate>Currency</translate></th> |
|
78 |
<td>[% currencies %]</td> |
|
79 |
</tr> |
|
80 |
[%- END %] |
|
81 |
[%- IF show_exchangerate %] |
|
82 |
<tr> |
|
83 |
<th align=right><translate>Exchangerate</translate></th> |
|
84 |
<td> |
|
85 |
[%~ IF forex ~%] |
|
86 |
[% LxERP.format_amount(exchangerate, 0) %] |
|
87 |
[%~ ELSE ~%] |
|
88 |
<input name=exchangerate size=10 value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]"> |
|
89 |
[%~ END ~%] |
|
90 |
</td> |
|
91 |
</tr> |
|
92 |
[%- END %] |
|
93 |
[%- IF is_sales %] |
|
94 |
<tr> |
|
95 |
<th align=right><translate>Motiv</translate></th> |
|
96 |
<td style="font-weight:bold" colspan=3><input name=motiv size=35 value="[% HTML.escape(motiv) %]"></td> |
|
97 |
</tr> |
|
98 |
[%- END -%] |
|
99 |
<tr> |
|
100 |
<th align=right><translate>Shipping Point</translate></th> |
|
101 |
<td colspan=3><input name=shippingpoint size=35 value="[% HTML.escape(shippingpoint) %]"></td> |
|
102 |
</tr> |
|
103 |
<tr> |
|
104 |
<th align=right><translate>Ship via</translate></th> |
|
105 |
<td colspan=3><input name=shipvia size=35 value="[% HTML.escape(shipvia) %]"></td> |
|
106 |
</tr> |
|
107 |
<tr> |
|
108 |
<th align="right"><translate>Transaction description</translate></th> |
|
109 |
<td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"></td> |
|
110 |
</tr> |
|
111 |
[%- IF show_delivery_customer %] |
|
112 |
<tr> |
|
113 |
<td colspan=4> |
|
114 |
<table> |
|
115 |
<tr> |
|
116 |
<td colspan=2> |
|
117 |
<button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')"><translate>Choose Customer</translate></button> |
|
118 |
</td> |
|
119 |
<td colspan=2><input type=hidden name=delivery_customer_id value="[% HTML.escape(delivery_customer_id) %]"> |
|
120 |
<input size=45 id=delivery_customer_string name=delivery_customer_string value="[% HTML.escape(delivery_customer_string) %]"></td> |
|
121 |
</tr> |
|
122 |
<tr> |
|
123 |
<td colspan=2> |
|
124 |
<button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')"><translate>Choose Vendor</translate></button> |
|
125 |
</td> |
|
126 |
<td colspan=2><input type=hidden name=delivery_vendor_id value="[% HTML.escape(delivery_vendor_id) %]"> |
|
127 |
<input size=45 id=vendor_string name=delivery_vendor_string value="[% HTML.escape(delivery_vendor_string) %]"></td> |
|
128 |
</tr> |
|
129 |
</table> |
|
130 |
</td> |
|
131 |
</tr> |
|
132 |
[%- END %] |
|
133 |
</table> |
|
134 |
</td> |
|
135 |
<td align=right> |
|
136 |
<table> |
|
137 |
[% openclosed %] |
|
138 |
<tr> |
|
139 |
<th align="right"><translate>Employee</translate></th> |
|
140 |
<td>[% employee %]</td> |
|
141 |
</tr> |
|
142 |
[%- IF salesmen %] |
|
143 |
<tr> |
|
144 |
<th align="right"><translate>Salesman</translate></th> |
|
145 |
<td>[% salesmen %]</td> |
|
146 |
</tr> |
|
147 |
[%- END %] |
|
148 |
[%- IF is_order %] |
|
149 |
<tr> |
|
150 |
<th width=70% align=right nowrap><translate>Order Number</translate></th> |
|
151 |
<td><input name=ordnumber size=11 value="[% ordnumber %]"></td> |
|
152 |
</tr> |
|
153 |
[%- END %] |
|
154 |
<tr> |
|
155 |
<th width=70% align=right nowrap>[% IF is_req_quo %]<translate>RFQ Number</translate>[% ELSE %]<translate>Quotation Number</translate>[% END %]</th> |
|
156 |
<td><input name=quonumber size=11 value="[% quonumber %]"></td> |
|
157 |
</tr> |
|
158 |
[%- IF is_order %]<tr> |
|
159 |
<th width=70% align=right nowrap><translate>Customer Order Number</translate></th> |
|
160 |
<td><input name=cusordnumber size=11 value="[% cusordnumber %]"></td> |
|
161 |
</tr> |
|
162 |
[%- END %] |
|
163 |
<tr> |
|
164 |
<th align=right nowrap> |
|
165 |
[%~ IF is_order ~%] |
|
166 |
<translate>Order Date</translate> |
|
167 |
[%~ ELSE ~%] |
|
168 |
<translate>Quotation Date</translate> |
|
169 |
[%~ END ~%] |
|
170 |
</th> |
|
171 |
[% button1 %] |
|
172 |
</tr> |
|
173 |
<tr> |
|
174 |
<th align=right nowrap> |
|
175 |
[%~ IF is_sales_quo ~%] |
|
176 |
<translate>Valid until</translate> |
|
177 |
[%~ ELSE ~%] |
|
178 |
<translate>Required by</translate> |
|
179 |
[%~ END ~%] |
|
180 |
</th> |
|
181 |
[% button2 %] |
|
182 |
</tr> |
|
183 |
<tr> |
|
184 |
<th width="70%" align="right" nowrap><translate>Project Number</translate></th> |
|
185 |
<td>[% globalprojectnumber %]</td> |
|
186 |
</tr> |
|
187 |
</table> |
Auch abrufbar als: Unified diff
...und die neuen Dateien