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)") . qq|</td>
87 <td align=left nowrap>| . $locale->text("Abrechnungsnummer") . qq|</td>
88 <td><input name=abrechnungsnr size=5 maxlength=3 value="$form->{abrechnungsnr}"></td>
91 <td><input name=exporttype type=radio class=radio value=0 checked> |
92 . $locale->text("Export Buchungsdaten") . qq|</td>
95 <td><input name=exporttype type=radio class=radio value=1> |
96 . $locale->text("Export Stammdaten") . qq|</td>
103 <td><hr size=3 noshade></td>
107 <input type=hidden name=nextsub value=export2>
109 <input type=hidden name=path value=$form->{path}>
110 <input type=hidden name=login value=$form->{login}>
111 <input type=hidden name=password value=$form->{password}>
114 <input type=submit class=submit name=action value="|
115 . $locale->text('Continue') . qq|">
121 $lxdebug->leave_sub();
125 $lxdebug->enter_sub();
127 if ($form->{exporttype} == 0) {
128 &export_bewegungsdaten();
130 &export_stammdaten();
132 $lxdebug->leave_sub();
135 sub export_bewegungsdaten {
136 $lxdebug->enter_sub();
138 $form->{title} = $locale->text("DATEX - Export Assistent");
140 $form->{allemonate} =
142 . $locale->text('January')
145 . $locale->text('February') . qq|</option>
147 . $locale->text('March') . qq|</option>
149 . $locale->text('April') . qq|</option>
151 . $locale->text('May') . qq|</option>
153 . $locale->text('June') . qq|</option>
155 . $locale->text('July') . qq|</option>
157 . $locale->text('August') . qq|</option>
159 . $locale->text('September') . qq|</option>
161 . $locale->text('October') . qq|</option>
163 . $locale->text('November') . qq|</option>
165 . $locale->text('December') . qq|</option>|;
167 $form->{allequartale} =
168 qq|<option selected value=1>|
171 <option value=2>| . $locale->text('II') . qq|</option>
173 . $locale->text('III') . qq|</option>
175 . $locale->text('IV') . qq|</option>|;
181 <form method=post action=$form->{script}>
186 <th class=listtop>$form->{title}</th>
189 <th align=left>| . $locale->text("Zeitraum") . qq|</th>
196 <td align=left><input checked name=zeitraum class=radio type=radio value=monat> </td><td align=left>|
197 . $locale->text('Monat') . qq|</td>
200 <td align=left><select name=monat>$form->{allemonate}</select></td>
203 <td align=left><input name=zeitraum class=radio type=radio value=quartal> </td><td align=left>|
204 . $locale->text('Quartal') . qq|</td>
207 <td align=left><select name=quartal>$form->{allequartale}</select></td>
210 <td align=left><input name=zeitraum class=radio type=radio value=zeit> </td><td align=left>|
211 . $locale->text('Datum von') . qq|</td>
212 <td align=left><input name=transdatefrom size=8></td>
213 <td align=left>| . $locale->text('bis') . qq|</td>
214 <td align=left><input name=transdateto size=8></td>
220 <td><hr size=3 noshade></td>
224 <input type=hidden name=beraternr value="$form->{beraternr}">
225 <input type=hidden name=dfvkz value="$form->{dfvkz}">
226 <input type=hidden name=beratername value="$form->{beratername}">
227 <input type=hidden name=passwort value="$form->{passwort}">
228 <input type=hidden name=mandantennr value="$form->{mandantennr}">
229 <input type=hidden name=datentraegernr value="$form->{datentraegernr}">
230 <input type=hidden name=kne value="$form->{kne}">
231 <input type=hidden name=abrechnungsnr value="$form->{abrechnungsnr}">
233 <input type=hidden name=exporttype value="$form->{exporttype}">
235 <input type=hidden name=nextsub value=export3>
237 <input type=hidden name=path value=$form->{path}>
238 <input type=hidden name=login value=$form->{login}>
239 <input type=hidden name=password value=$form->{password}>
242 <input type=submit class=submit name=action value="|
243 . $locale->text('Continue') . qq|">
250 $lxdebug->leave_sub();
253 sub export_stammdaten {
254 $lxdebug->enter_sub();
256 $form->{title} = $locale->text("DATEX - Export Assistent");
263 <form method=post action=$form->{script}>
266 <th class=listtop>$form->{title}</th>
269 <th align=left>| . $locale->text("Konten") . qq|</th>
276 <td align=left>| . $locale->text('Von Konto: ') . qq|</td>
277 <td align=left><input name=accnofrom size=8 maxlength=8></td>
280 <td align=left>| . $locale->text('Bis Konto: ') . qq|</td>
281 <td align=left><input name=accnoto size=8 maxlength=8></td>
287 <td><hr size=3 noshade></td>
290 <input type=hidden name=beraternr value="$form->{beraternr}">
291 <input type=hidden name=dfvkz value="$form->{dfvkz}">
292 <input type=hidden name=beratername value="$form->{beratername}">
293 <input type=hidden name=passwort value="$form->{passwort}">
294 <input type=hidden name=mandantennr value="$form->{mandantennr}">
295 <input type=hidden name=datentraegernr value="$form->{datentraegernr}">
296 <input type=hidden name=kne value="$form->{kne}">
297 <input type=hidden name=abrechnungsnr value="$form->{abrechnungsnr}">
299 <input type=hidden name=exporttype value="$form->{exporttype}">
301 <input type=hidden name=nextsub value=export3>
303 <input type=hidden name=path value=$form->{path}>
304 <input type=hidden name=login value=$form->{login}>
305 <input type=hidden name=password value=$form->{password}>
308 <input type=submit class=submit name=action value="|
309 . $locale->text('Continue') . qq|">
316 $lxdebug->leave_sub();
320 $lxdebug->enter_sub();
322 DATEV->save_datev_stamm(\%myconfig, \%$form);
325 if (DATEV->kne_export(\%myconfig, \%$form)) {
326 $form->redirect($locale->text('KNE Export erfolgreich!'));
329 if (DATEV->obe_export(\%myconfig, \%$form)) {
330 $form->redirect($locale->text('OBE Export erfolgreich!'));
333 $lxdebug->leave_sub();