1 #=====================================================================
6 # Email: p.reetz@linet-services.de
7 # Web: http://www.lx-office.org
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; either version 2 of the License, or
13 # (at your option) any later version.
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #======================================================================
26 #======================================================================
34 sub continue { &{ $form->{nextsub} } }
37 $lxdebug->enter_sub();
39 $form->{title} = $locale->text("DATEX - Export Assistent");
41 DATEV->get_datev_stamm(\%myconfig, \%$form);
47 <form method=post action=$form->{script}>
52 <th class=listtop>$form->{title}</th>
55 <th align=left>| . $locale->text("DATEV Angaben") . qq|</th>
62 <td align=left nowrap>| . $locale->text("Beraternummer") . qq|</td>
63 <td><input name=beraternr size=10 maxlength=7 value="$form->{beraternr}"></td>
65 <td align=left nowrap>| . $locale->text("DFV-Kennzeichen") . qq|</td>
66 <td><input name=dfvkz size=5 maxlength=2 value="$form->{dfvkz}"></td>
69 <td align=left nowrap>| . $locale->text("Beratername") . qq|</td>
70 <td><input name=beratername size=10 maxlength=9 value="$form->{beratername}"></td>
72 <td align=left nowrap>| . $locale->text("Password") . qq|</td>
73 <td><input name=passwort size=5 maxlength=4 value="$form->{passwort}"></td>
76 <td align=left nowrap>| . $locale->text("Mandantennummer") . qq|</td>
77 <td><input name=mandantennr size=10 maxlength=5 value="$form->{mandantennr}"></td>
79 <td align=left nowrap>| . $locale->text("Datenträgernummer") . qq|</td>
80 <td><input name=datentraegernr size=5 maxlength=3 value="$form->{datentraegernr}"></td>
83 <td><input checked name=kne type=checkbox class=checkbox value=1> |
84 . $locale->text("Kontonummernerweiterung (KNE)")
88 <td align=left nowrap>| . $locale->text("Abrechnungsnummer") . qq|</td>
89 <td><input name=abrechnungsnr size=5 maxlength=3 value="$form->{abrechnungsnr}"></td>
92 <td><input name=exporttype type=radio class=radio value=0 checked> |
93 . $locale->text("Export Buchungsdaten")
97 <td><input name=exporttype type=radio class=radio value=1> |
98 . $locale->text("Export Stammdaten")
106 <td><hr size=3 noshade></td>
110 <input type=hidden name=nextsub value=export2>
112 <input type=hidden name=path value=$form->{path}>
113 <input type=hidden name=login value=$form->{login}>
114 <input type=hidden name=password value=$form->{password}>
117 <input type=submit class=submit name=action value="|
118 . $locale->text('Continue') . qq|">
124 $lxdebug->leave_sub();
128 $lxdebug->enter_sub();
130 if ($form->{exporttype} == 0) {
131 &export_bewegungsdaten();
133 &export_stammdaten();
135 $lxdebug->leave_sub();
138 sub export_bewegungsdaten {
139 $lxdebug->enter_sub();
141 $form->{title} = $locale->text("DATEX - Export Assistent");
143 $form->{allemonate} =
145 . $locale->text('January')
148 . $locale->text('February')
151 . $locale->text('March')
154 . $locale->text('April')
157 . $locale->text('May')
160 . $locale->text('June')
163 . $locale->text('July')
166 . $locale->text('August')
169 . $locale->text('September')
172 . $locale->text('October')
175 . $locale->text('November')
178 . $locale->text('December')
181 $form->{allequartale} =
182 qq|<option selected value=1>|
185 <option value=2>| . $locale->text('II') . qq|</option>
187 . $locale->text('III')
190 . $locale->text('IV')
197 <form method=post action=$form->{script}>
202 <th class=listtop>$form->{title}</th>
205 <th align=left>| . $locale->text("Zeitraum") . qq|</th>
212 <td align=left><input checked name=zeitraum class=radio type=radio value=monat> </td><td align=left>|
213 . $locale->text('Monat')
217 <td align=left><select name=monat>$form->{allemonate}</select></td>
220 <td align=left><input name=zeitraum class=radio type=radio value=quartal> </td><td align=left>|
221 . $locale->text('Quartal')
225 <td align=left><select name=quartal>$form->{allequartale}</select></td>
228 <td align=left><input name=zeitraum class=radio type=radio value=zeit> </td><td align=left>|
229 . $locale->text('Datum von')
231 <td align=left><input name=transdatefrom size=8></td>
232 <td align=left>| . $locale->text('bis') . qq|</td>
233 <td align=left><input name=transdateto size=8></td>
239 <td><hr size=3 noshade></td>
243 <input type=hidden name=beraternr value="$form->{beraternr}">
244 <input type=hidden name=dfvkz value="$form->{dfvkz}">
245 <input type=hidden name=beratername value="$form->{beratername}">
246 <input type=hidden name=passwort value="$form->{passwort}">
247 <input type=hidden name=mandantennr value="$form->{mandantennr}">
248 <input type=hidden name=datentraegernr value="$form->{datentraegernr}">
249 <input type=hidden name=kne value="$form->{kne}">
250 <input type=hidden name=abrechnungsnr value="$form->{abrechnungsnr}">
252 <input type=hidden name=exporttype value="$form->{exporttype}">
254 <input type=hidden name=nextsub value=export3>
256 <input type=hidden name=path value=$form->{path}>
257 <input type=hidden name=login value=$form->{login}>
258 <input type=hidden name=password value=$form->{password}>
261 <input type=submit class=submit name=action value="|
262 . $locale->text('Continue') . qq|">
269 $lxdebug->leave_sub();
272 sub export_stammdaten {
273 $lxdebug->enter_sub();
275 $form->{title} = $locale->text("DATEX - Export Assistent");
282 <form method=post action=$form->{script}>
285 <th class=listtop>$form->{title}</th>
288 <th align=left>| . $locale->text("Konten") . qq|</th>
295 <td align=left>| . $locale->text('Von Konto: ') . qq|</td>
296 <td align=left><input name=accnofrom size=8 maxlength=8></td>
299 <td align=left>| . $locale->text('Bis Konto: ') . qq|</td>
300 <td align=left><input name=accnoto size=8 maxlength=8></td>
306 <td><hr size=3 noshade></td>
309 <input type=hidden name=beraternr value="$form->{beraternr}">
310 <input type=hidden name=dfvkz value="$form->{dfvkz}">
311 <input type=hidden name=beratername value="$form->{beratername}">
312 <input type=hidden name=passwort value="$form->{passwort}">
313 <input type=hidden name=mandantennr value="$form->{mandantennr}">
314 <input type=hidden name=datentraegernr value="$form->{datentraegernr}">
315 <input type=hidden name=kne value="$form->{kne}">
316 <input type=hidden name=abrechnungsnr value="$form->{abrechnungsnr}">
318 <input type=hidden name=exporttype value="$form->{exporttype}">
320 <input type=hidden name=nextsub value=export3>
322 <input type=hidden name=path value=$form->{path}>
323 <input type=hidden name=login value=$form->{login}>
324 <input type=hidden name=password value=$form->{password}>
327 <input type=submit class=submit name=action value="|
328 . $locale->text('Continue') . qq|">
335 $lxdebug->leave_sub();
339 $lxdebug->enter_sub();
341 DATEV->save_datev_stamm(\%myconfig, \%$form);
344 if (DATEV->kne_export(\%myconfig, \%$form)) {
345 $form->redirect($locale->text('KNE Export erfolgreich!'));
348 if (DATEV->obe_export(\%myconfig, \%$form)) {
349 $form->redirect($locale->text('OBE Export erfolgreich!'));
352 $lxdebug->leave_sub();