Revision 2a4ad354
Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt
bin/mozilla/dn.pl | ||
---|---|---|
60 | 60 |
|
61 | 61 |
sub add { |
62 | 62 |
$lxdebug->enter_sub(); |
63 |
|
|
63 | 64 |
# setup customer selection |
64 | 65 |
$form->all_vc(\%myconfig, "customer", "AR"); |
65 | 66 |
|
66 | 67 |
DN->get_config(\%myconfig, \%$form); |
67 | 68 |
|
68 |
if (@{ $form->{all_customer} }) { |
|
69 |
map { $customer .= "<option>$_->{name}--$_->{id}\n" } |
|
70 |
@{ $form->{all_customer} }; |
|
71 |
$customer = qq|<select name=customer><option>\n$customer</select>|; |
|
72 |
} else { |
|
73 |
$customer = qq|<input name=customer size=35>|; |
|
74 |
} |
|
75 |
|
|
76 |
# dunning levels |
|
77 |
if (@{ $form->{DUNNING} }) { |
|
78 |
$form->{selectdunning_level} = "<option></option\n"; |
|
79 |
map { |
|
80 |
$form->{selectdunning_level} .= |
|
81 |
"<option value=$_->{id}>$_->{dunning_description}</option>\n" |
|
82 |
} (@{ $form->{DUNNING} }); |
|
83 |
} |
|
84 |
$dunning_level = qq| |
|
85 |
<tr> |
|
86 |
<th align=right nowrap>| . $locale->text('Next Dunning Level') . qq|</th> |
|
87 |
<td colspan=3><select name=dunning_level>$form->{selectdunning_level}</select></td> |
|
88 |
</tr> |
|
89 |
| if $form->{selectdunning_level}; |
|
69 |
$form->{SHOW_CUSTOMER_SELECTION} = $form->{all_customer} && scalar @{ $form->{all_customer} }; |
|
70 |
$form->{SHOW_DUNNING_LEVEL_SELECTION} = $form->{DUNNING} && scalar @{ $form->{DUNNING} }; |
|
71 |
$form->{SHOW_DEPARTMENT_SELECTION} = $form->{all_departments} && scalar @{ $form->{all_departments} }; |
|
90 | 72 |
|
91 |
# departments |
|
92 |
if (@{ $form->{all_departments} }) { |
|
93 |
$form->{selectdepartment} = "<option>\n"; |
|
94 |
map { |
|
95 |
$form->{selectdepartment} .= |
|
96 |
"<option>$_->{description}--$_->{id}\n" |
|
97 |
} (@{ $form->{all_departments} }); |
|
98 |
} |
|
99 |
$department = qq| |
|
100 |
<tr> |
|
101 |
<th align=right nowrap>| . $locale->text('Department') . qq|</th> |
|
102 |
<td colspan=3><select name=department>$form->{selectdepartment}</select></td> |
|
103 |
</tr> |
|
104 |
| if $form->{selectdepartment}; |
|
105 |
|
|
106 |
$form->{title} = $locale->text('Start Dunning Process'); |
|
107 |
$form->{nextsub} = "show_invoices"; |
|
108 |
|
|
109 |
$form->{jsscript} = 1; |
|
110 |
$form->{fokus} = "search.customer"; |
|
111 |
$form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|; |
|
73 |
$form->{title} = $locale->text('Start Dunning Process'); |
|
74 |
$form->{jsscript} = 1; |
|
75 |
$form->{fokus} = "search.customer"; |
|
112 | 76 |
$form->header(); |
113 | 77 |
|
114 |
$onload = qq|focus()|; |
|
115 |
$onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|; |
|
116 |
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|; |
|
117 |
|
|
118 |
print qq| |
|
119 |
<body onLoad="$onload"> |
|
120 |
|
|
121 |
<form method=post name="search" action=$form->{script}> |
|
122 |
|
|
123 |
<table width=100%> |
|
124 |
<tr><th class=listtop>$form->{title}</th></tr> |
|
125 |
<tr height="5"></tr> |
|
126 |
<tr> |
|
127 |
<td> |
|
128 |
<table> |
|
129 |
<tr> |
|
130 |
<th align=right>| . $locale->text('Customer') . qq|</th> |
|
131 |
<td colspan=3>$customer</td> |
|
132 |
</tr> |
|
133 |
$dunning_level |
|
134 |
$department |
|
135 |
<tr> |
|
136 |
<th align=right nowrap>| . $locale->text('Invoice Number') . qq|</th> |
|
137 |
<td colspan=3><input name=invnumber size=20></td> |
|
138 |
</tr> |
|
139 |
<tr> |
|
140 |
<th align=right nowrap>| . $locale->text('Order Number') . qq|</th> |
|
141 |
<td colspan=3><input name=ordnumber size=20></td> |
|
142 |
</tr> |
|
143 |
<tr> |
|
144 |
<th align=right nowrap>| . $locale->text('Notes') . qq|</th> |
|
145 |
<td colspan=3><input name=notes size=40></td> |
|
146 |
</tr> |
|
147 |
</table> |
|
148 |
</td> |
|
149 |
</tr> |
|
150 |
<tr> |
|
151 |
<td><hr size=3 noshade></td> |
|
152 |
</tr> |
|
153 |
<tr> |
|
154 |
<td> |
|
155 |
<table> |
|
156 |
<tr> |
|
157 |
<th align=right nowrap>| . $locale->text('Minimum Amount') . qq|</th> |
|
158 |
<td><input name=minamount size=6></td> |
|
159 |
</tr> |
|
160 |
<tr> |
|
161 |
<th align=right nowrap>| . $locale->text('Group Invoices') . qq|</th> |
|
162 |
<td><input type=checkbox value=1 name=groupinvoices checked></td> |
|
163 |
</tr> |
|
164 |
</table> |
|
165 |
</td> |
|
166 |
</tr> |
|
167 |
</table> |
|
168 |
|
|
169 |
<input type=hidden name=nextsub value=$form->{nextsub}> |
|
170 |
|
|
171 |
<input type=hidden name=login value=$form->{login}> |
|
172 |
<input type=hidden name=password value=$form->{password}> |
|
173 |
|
|
174 |
<br> |
|
175 |
<input class=submit type=submit name=action value="| |
|
176 |
. $locale->text('Continue') . qq|"> |
|
177 |
|
|
178 |
</form> |
|
179 |
|
|
180 |
</body> |
|
181 |
|
|
182 |
$jsscript |
|
183 |
|
|
184 |
</html> |
|
185 |
|; |
|
78 |
print $form->parse_html_template("dunning/add"); |
|
186 | 79 |
|
187 | 80 |
$lxdebug->leave_sub(); |
188 |
|
|
189 | 81 |
} |
190 | 82 |
|
191 | 83 |
sub show_invoices { |
locale/de/all | ||
---|---|---|
1155 | 1155 |
'Workflow sales_order' => 'Workflow Auftrag', |
1156 | 1156 |
'Workflow sales_quotation' => 'Workflow Angebot', |
1157 | 1157 |
'Wrong Period' => 'Falscher Zeitraum', |
1158 |
'Wrong date format!' => 'Falsches Datumsformat!', |
|
1158 | 1159 |
'YYYY' => 'JJJJ', |
1159 | 1160 |
'Year' => 'Jahr', |
1160 | 1161 |
'Year End' => 'Jahresende', |
locale/de/dn | ||
---|---|---|
65 | 65 |
'Feb' => 'Feb', |
66 | 66 |
'February' => 'Februar', |
67 | 67 |
'Group' => 'Warengruppe', |
68 |
'Group Invoices' => 'Rechnungen zusammenfassen', |
|
69 | 68 |
'History' => 'Historie', |
70 | 69 |
'In-line' => 'im Text', |
71 | 70 |
'Interest' => 'Zinsen', |
... | ... | |
93 | 92 |
'March' => 'M?rz', |
94 | 93 |
'May' => 'Mai', |
95 | 94 |
'May ' => 'Mai', |
96 |
'Minimum Amount' => 'Mindestbetrag', |
|
97 | 95 |
'Missing \'description\' field.' => 'Fehlendes Feld \'description\'.', |
98 | 96 |
'Missing \'tag\' field.' => 'Fehlendes Feld \'tag\'.', |
99 | 97 |
'More than one control file with the tag \'%s\' exist.' => 'Es gibt mehr als eine Kontrolldatei mit dem Tag \'%s\'.', |
templates/webpages/dunning/add_de.html | ||
---|---|---|
1 |
<script type="text/javascript" src="js/common.js"></script> |
|
2 |
<script type="text/javascript"> |
|
3 |
<!-- |
|
4 |
function setup_controls() { |
|
5 |
fokus(); |
|
6 |
setupDateFormat('<TMPL_VAR myconfig_dateformat>', 'Falsches Datumsformat!'); |
|
7 |
setupPoints('<TMPL_VAR myconfig_numberformat>', 'Falsches Format'); |
|
8 |
} |
|
9 |
--> |
|
10 |
</script> |
|
11 |
|
|
12 |
<body onLoad="setup_controls();"> |
|
13 |
|
|
14 |
<div class="listtop"><TMPL_VAR title></div> |
|
15 |
|
|
16 |
<form method="post" name="search" action="dn.pl"> |
|
17 |
|
|
18 |
<table> |
|
19 |
<tr> |
|
20 |
<th align="right">Kunde</th> |
|
21 |
<td colspan="3"> |
|
22 |
<TMPL_IF SHOW_CUSTOMER_SELECTION> |
|
23 |
<select name="customer"> |
|
24 |
<option></option> |
|
25 |
<TMPL_LOOP all_customer><option><TMPL_VAR name ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP> |
|
26 |
</select> |
|
27 |
<TMPL_ELSE> |
|
28 |
<input name=customer size=35> |
|
29 |
</TMPL_IF> |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
|
|
33 |
<TMPL_IF SHOW_DUNNING_LEVEL_SELECTION> |
|
34 |
<tr> |
|
35 |
<th align="right">N?chste Mahnstufe</th> |
|
36 |
<td colspan="3"> |
|
37 |
<select name="dunning_level"> |
|
38 |
<option></option> |
|
39 |
<TMPL_LOOP DUNNING><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR dunning_description ESCAPE=HTML></option></TMPL_LOOP> |
|
40 |
</select> |
|
41 |
</td> |
|
42 |
</tr> |
|
43 |
</TMPL_IF> |
|
44 |
|
|
45 |
<TMPL_IF SHOW_DEPARTMENT_SELECTION> |
|
46 |
<tr> |
|
47 |
<th align="right">Abteilung</th> |
|
48 |
<td colspan="3"> |
|
49 |
<select name="department"> |
|
50 |
<option></option> |
|
51 |
<TMPL_LOOP all_departments><option><TMPL_VAR description ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP> |
|
52 |
</select> |
|
53 |
</td> |
|
54 |
</tr> |
|
55 |
</TMPL_IF> |
|
56 |
|
|
57 |
<tr> |
|
58 |
<th align="right" nowrap>Rechnungsnummer</th> |
|
59 |
<td colspan="3"><input name="invnumber" size="20"></td> |
|
60 |
</tr> |
|
61 |
|
|
62 |
<tr> |
|
63 |
<th align="right" nowrap>Auftragsnummer</th> |
|
64 |
<td colspan="3"><input name="ordnumber" size="20"></td> |
|
65 |
</tr> |
|
66 |
|
|
67 |
<tr> |
|
68 |
<th align="right" nowrap>Bemerkungen</th> |
|
69 |
<td colspan="3"><input name="notes" size="40"></td> |
|
70 |
</tr> |
|
71 |
|
|
72 |
<tr><td colspan="2"><hr size="3" noshade></td></tr> |
|
73 |
|
|
74 |
<tr> |
|
75 |
<th align="right" nowrap>Mindestbetrag</th> |
|
76 |
<td><input name="minamount" size="6"></td> |
|
77 |
</tr> |
|
78 |
|
|
79 |
<tr> |
|
80 |
<th align="right" nowrap>Rechnungen zusammenfassen</th> |
|
81 |
<td><input type="checkbox" value="1" name="groupinvoices" checked></td> |
|
82 |
</tr> |
|
83 |
</table> |
|
84 |
|
|
85 |
<input type="hidden" name="nextsub" value="show_invoices"> |
|
86 |
|
|
87 |
<input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>"> |
|
88 |
<input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>"> |
|
89 |
|
|
90 |
<br> |
|
91 |
<input class="submit" type="submit" name="action" value="Weiter"> |
|
92 |
|
|
93 |
</form> |
|
94 |
|
|
95 |
</body> |
|
96 |
|
|
97 |
</html> |
templates/webpages/dunning/add_master.html | ||
---|---|---|
1 |
<script type="text/javascript" src="js/common.js"></script> |
|
2 |
<script type="text/javascript"> |
|
3 |
<!-- |
|
4 |
function setup_controls() { |
|
5 |
fokus(); |
|
6 |
setupDateFormat('<TMPL_VAR myconfig_dateformat>', '<translate>Wrong date format!</translate>'); |
|
7 |
setupPoints('<TMPL_VAR myconfig_numberformat>', '<translate>wrongformat</translate>'); |
|
8 |
} |
|
9 |
--> |
|
10 |
</script> |
|
11 |
|
|
12 |
<body onLoad="setup_controls();"> |
|
13 |
|
|
14 |
<div class="listtop"><TMPL_VAR title></div> |
|
15 |
|
|
16 |
<form method="post" name="search" action="dn.pl"> |
|
17 |
|
|
18 |
<table> |
|
19 |
<tr> |
|
20 |
<th align="right"><translate>Customer</translate></th> |
|
21 |
<td colspan="3"> |
|
22 |
<TMPL_IF SHOW_CUSTOMER_SELECTION> |
|
23 |
<select name="customer"> |
|
24 |
<option></option> |
|
25 |
<TMPL_LOOP all_customer><option><TMPL_VAR name ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP> |
|
26 |
</select> |
|
27 |
<TMPL_ELSE> |
|
28 |
<input name=customer size=35> |
|
29 |
</TMPL_IF> |
|
30 |
</td> |
|
31 |
</tr> |
|
32 |
|
|
33 |
<TMPL_IF SHOW_DUNNING_LEVEL_SELECTION> |
|
34 |
<tr> |
|
35 |
<th align="right"><translate>Next Dunning Level</translate></th> |
|
36 |
<td colspan="3"> |
|
37 |
<select name="dunning_level"> |
|
38 |
<option></option> |
|
39 |
<TMPL_LOOP DUNNING><option value="<TMPL_VAR id ESCAPE=HTML>"><TMPL_VAR dunning_description ESCAPE=HTML></option></TMPL_LOOP> |
|
40 |
</select> |
|
41 |
</td> |
|
42 |
</tr> |
|
43 |
</TMPL_IF> |
|
44 |
|
|
45 |
<TMPL_IF SHOW_DEPARTMENT_SELECTION> |
|
46 |
<tr> |
|
47 |
<th align="right"><translate>Department</translate></th> |
|
48 |
<td colspan="3"> |
|
49 |
<select name="department"> |
|
50 |
<option></option> |
|
51 |
<TMPL_LOOP all_departments><option><TMPL_VAR description ESCAPE=HTML>--<TMPL_VAR id ESCAPE=HTML></option></TMPL_LOOP> |
|
52 |
</select> |
|
53 |
</td> |
|
54 |
</tr> |
|
55 |
</TMPL_IF> |
|
56 |
|
|
57 |
<tr> |
|
58 |
<th align="right" nowrap><translate>Invoice Number</translate></th> |
|
59 |
<td colspan="3"><input name="invnumber" size="20"></td> |
|
60 |
</tr> |
|
61 |
|
|
62 |
<tr> |
|
63 |
<th align="right" nowrap><translate>Order Number</translate></th> |
|
64 |
<td colspan="3"><input name="ordnumber" size="20"></td> |
|
65 |
</tr> |
|
66 |
|
|
67 |
<tr> |
|
68 |
<th align="right" nowrap><translate>Notes</translate></th> |
|
69 |
<td colspan="3"><input name="notes" size="40"></td> |
|
70 |
</tr> |
|
71 |
|
|
72 |
<tr><td colspan="2"><hr size="3" noshade></td></tr> |
|
73 |
|
|
74 |
<tr> |
|
75 |
<th align="right" nowrap><translate>Minimum Amount</translate></th> |
|
76 |
<td><input name="minamount" size="6"></td> |
|
77 |
</tr> |
|
78 |
|
|
79 |
<tr> |
|
80 |
<th align="right" nowrap><translate>Group Invoices</translate></th> |
|
81 |
<td><input type="checkbox" value="1" name="groupinvoices" checked></td> |
|
82 |
</tr> |
|
83 |
</table> |
|
84 |
|
|
85 |
<input type="hidden" name="nextsub" value="show_invoices"> |
|
86 |
|
|
87 |
<input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>"> |
|
88 |
<input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>"> |
|
89 |
|
|
90 |
<br> |
|
91 |
<input class="submit" type="submit" name="action" value="<translate>Continue</translate>"> |
|
92 |
|
|
93 |
</form> |
|
94 |
|
|
95 |
</body> |
|
96 |
|
|
97 |
</html> |
Auch abrufbar als: Unified diff
Umstellung der Filtermaske für neue Mahnungen auf das HTML-Vorlagensystem.