Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e549422f

Von Moritz Bunkus vor etwa 17 Jahren hinzugefügt

  • ID e549422fb649ca2299e684dc10ffe4a0f8c7efb1
  • Vorgänger 58196889
  • Nachfolger d0779d01

Das Bearbeiten der Einstellungen, die in der Tabelle "defaults" gespeichert werden, wurde in eine eigene Maske ausgelagert, die unter "System -> Nummernkreise und Standardkonten" aufrufbar ist. Bei "Programm -> Benutzereinstellungen" hingegen befinden sich nur noch Einstellungen, die pro Benutzer einstellbar sind (also die Sachen aus %myconfig).

Unterschiede anzeigen:

SL/AM.pm
1474 1474
  return $error;
1475 1475
}
1476 1476

  
1477
sub save_preferences {
1477
sub save_defaults {
1478 1478
  $main::lxdebug->enter_sub();
1479 1479

  
1480
  my ($self, $myconfig, $form, $memberfile, $userspath, $webdav) = @_;
1480
  my $self     = shift;
1481
  my %params   = @_;
1481 1482

  
1482
  map { ($form->{$_}) = split(/--/, $form->{$_}) }
1483
    qw(inventory_accno income_accno expense_accno fxgain_accno fxloss_accno);
1483
  my $myconfig = \%main::myconfig;
1484
  my $form     = $main::form;
1484 1485

  
1485
  my @a;
1486
  $form->{curr} =~ s/ //g;
1487
  map { push(@a, uc pack "A3", $_) if $_ } split(/:/, $form->{curr});
1488
  $form->{curr} = join ':', @a;
1486
  my $dbh      = $params{dbh} || $form->get_standard_dbh($myconfig);
1489 1487

  
1490
  # connect to database
1491
  my $dbh = $form->dbconnect_noauto($myconfig);
1488
  my %accnos;
1489
  map { ($accnos{$_}) = split(m/--/, $form->{$_}) } qw(inventory_accno income_accno expense_accno fxgain_accno fxloss_accno);
1490

  
1491
  $form->{curr}  =~ s/ //g;
1492
  my @currencies =  grep { $_ ne '' } split m/:/, $form->{curr};
1493
  my $currency   =  join ':', @currencies;
1492 1494

  
1493 1495
  # these defaults are database wide
1494
  # user specific variables are in myconfig
1495
  # save defaults
1496

  
1496 1497
  my $query =
1497
    qq|UPDATE defaults SET | .
1498
    qq|inventory_accno_id = (SELECT c.id FROM chart c WHERE c.accno = ?), | .
1499
    qq|income_accno_id = (SELECT c.id FROM chart c WHERE c.accno = ?), | .
1500
    qq|expense_accno_id = (SELECT c.id FROM chart c WHERE c.accno = ?), | .
1501
    qq|fxgain_accno_id = (SELECT c.id FROM chart c WHERE c.accno = ?), | .
1502
    qq|fxloss_accno_id = (SELECT c.id FROM chart c WHERE c.accno = ?), | .
1503
    qq|invnumber = ?, | .
1504
    qq|cnnumber  = ?, | .
1505
    qq|sonumber = ?, | .
1506
    qq|ponumber = ?, | .
1507
    qq|sqnumber = ?, | .
1508
    qq|rfqnumber = ?, | .
1509
    qq|customernumber = ?, | .
1510
    qq|vendornumber = ?, | .
1511
    qq|articlenumber = ?, | .
1512
    qq|servicenumber = ?, | .
1513
    qq|yearend = ?, | .
1514
    qq|curr = ?, | .
1515
    qq|businessnumber = ?|;
1516
  my @values = ($form->{inventory_accno}, $form->{income_accno},
1517
                $form->{expense_accno},
1518
                $form->{fxgain_accno}, $form->{fxloss_accno},
1519
                $form->{invnumber}, $form->{cnnumber},
1520
                $form->{sonumber}, $form->{ponumber},
1521
                $form->{sqnumber}, $form->{rfqnumber},
1522
                $form->{customernumber}, $form->{vendornumber},
1523
                $form->{articlenumber}, $form->{servicenumber},
1524
                $form->{yearend}, $form->{curr},
1498
    qq|UPDATE defaults SET
1499
        inventory_accno_id = (SELECT c.id FROM chart c WHERE c.accno = ?),
1500
        income_accno_id    = (SELECT c.id FROM chart c WHERE c.accno = ?),
1501
        expense_accno_id   = (SELECT c.id FROM chart c WHERE c.accno = ?),
1502
        fxgain_accno_id    = (SELECT c.id FROM chart c WHERE c.accno = ?),
1503
        fxloss_accno_id    = (SELECT c.id FROM chart c WHERE c.accno = ?),
1504
        invnumber          = ?,
1505
        cnnumber           = ?,
1506
        sonumber           = ?,
1507
        ponumber           = ?,
1508
        sqnumber           = ?,
1509
        rfqnumber          = ?,
1510
        customernumber     = ?,
1511
        vendornumber       = ?,
1512
        articlenumber      = ?,
1513
        servicenumber      = ?,
1514
        yearend            = ?,
1515
        curr               = ?,
1516
        businessnumber     = ?|;
1517
  my @values = ($accnos{inventory_accno}, $accnos{income_accno}, $accnos{expense_accno},
1518
                $accnos{fxgain_accno},    $accnos{fxloss_accno},
1519
                $form->{invnumber},       $form->{cnnumber},
1520
                $form->{sonumber},        $form->{ponumber},
1521
                $form->{sqnumber},        $form->{rfqnumber},
1522
                $form->{customernumber},  $form->{vendornumber},
1523
                $form->{articlenumber},   $form->{servicenumber},
1524
                $form->{yearend},         $currency,
1525 1525
                $form->{businessnumber});
1526 1526
  do_query($form, $dbh, $query, @values);
1527 1527

  
1528
  $dbh->commit();
1529

  
1530
  $main::lxdebug->leave_sub();
1531
}
1532

  
1533

  
1534
sub save_preferences {
1535
  $main::lxdebug->enter_sub();
1536

  
1537
  my ($self, $myconfig, $form, $memberfile, $userspath, $webdav) = @_;
1538

  
1539
  my $dbh = $form->get_standard_dbh($myconfig);
1540

  
1541
  my ($currency, $businessnumber) = selectrow_query($form, $dbh, qq|SELECT curr, businessnumber FROM defaults|);
1542

  
1528 1543
  # update name
1529
  $query = qq|UPDATE employee
1530
              SET name = ?
1531
              WHERE login = ?|;
1544
  my $query = qq|UPDATE employee SET name = ? WHERE login = ?|;
1532 1545
  do_query($form, $dbh, $query, $form->{name}, $form->{login});
1533 1546

  
1534
  my $rc = $dbh->commit;
1535
  $dbh->disconnect;
1547
  my $rc = $dbh->commit();
1536 1548

  
1537 1549
  # save first currency in myconfig
1538
  $form->{currency} = substr($form->{curr}, 0, 3);
1550
  $currency               =~ s/:.*//;
1551
  $form->{currency}       =  $currency;
1552

  
1553
  $form->{businessnumber} =  $businessnumber;
1539 1554

  
1540 1555
  $myconfig = new User "$memberfile", "$form->{login}";
1541 1556

  
bin/mozilla/am.pl
2302 2302
  $lxdebug->leave_sub();
2303 2303
}
2304 2304

  
2305
sub edit_defaults {
2306
  $lxdebug->enter_sub();
2307

  
2308
  # get defaults for account numbers and last numbers
2309
  AM->defaultaccounts(\%myconfig, \%$form);
2310

  
2311
  map { $form->{"defaults_${_}"} = $form->{defaults}->{$_} } keys %{ $form->{defaults} };
2312

  
2313
  foreach $key (keys %{ $form->{IC} }) {
2314
    foreach $accno (sort keys %{ $form->{IC}->{$key} }) {
2315
      my $array = "ACCNOS_" . uc($key);
2316
      $form->{$array} ||= [];
2317

  
2318
      my $value = "${accno}--" . $form->{IC}->{$key}->{$accno}->{description};
2319
      push @{ $form->{$array} }, {
2320
        'name'     => $value,
2321
        'value'    => $value,
2322
        'selected' => $form->{IC}->{$key}->{$accno}->{id} == $form->{defaults}->{$key},
2323
      };
2324
    }
2325
  }
2326

  
2327
  $form->{title} = $locale->text('Ranges of numbers and default accounts');
2328

  
2329
  $form->header();
2330
  print $form->parse_html_template('am/edit_defaults');
2331

  
2332
  $lxdebug->leave_sub();
2333
}
2334

  
2335
sub save_defaults {
2336
  $lxdebug->enter_sub();
2337

  
2338
  AM->save_defaults();
2339

  
2340
  $form->redirect($locale->text('Defaults saved.'));
2341

  
2342
  $lxdebug->leave_sub();
2343
}
2344

  
2305 2345
sub _build_cfg_options {
2306 2346
  my $idx   = shift;
2307 2347
  my $array = uc($idx) . 'S';
......
2319 2359
sub config {
2320 2360
  $lxdebug->enter_sub();
2321 2361

  
2322
  # get defaults for account numbers and last numbers
2323
  AM->defaultaccounts(\%myconfig, \%$form);
2324

  
2325
  map { $form->{"defaults_${_}"} = $form->{defaults}->{$_} } keys %{ $form->{defaults} };
2326

  
2327 2362
  _build_cfg_options('dateformat', qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd));
2328 2363
  _build_cfg_options('numberformat', qw(1,000.00 1000.00 1.000,00 1000,00));
2329 2364

  
......
2392 2427
    };
2393 2428
  }
2394 2429

  
2395
  foreach $key (keys %{ $form->{IC} }) {
2396
    foreach $accno (sort keys %{ $form->{IC}->{$key} }) {
2397
      my $array = "ACCNOS_" . uc($key);
2398
      $form->{$array} ||= [];
2399

  
2400
      my $value = "${accno}--" . $form->{IC}->{$key}->{$accno}->{description};
2401
      push @{ $form->{$array} }, {
2402
        'name'     => $value,
2403
        'value'    => $value,
2404
        'selected' => $form->{IC}->{$key}->{$accno}->{id} == $form->{defaults}->{$key},
2405
      };
2406
    }
2407
  }
2408

  
2409 2430
  $form->{STYLESHEETS} = [];
2410 2431
  foreach $item (qw(lx-office-erp.css Win2000.css)) {
2411 2432
    push @{ $form->{STYLESHEETS} }, {
locale/de/all
309 309
  'Credit Tax Account'          => 'Umsatzsteuerkonto',
310 310
  'Credit note (one letter abbreviation)' => 'G',
311 311
  'Curr'                        => 'W?hrung',
312
  'Currencies'                  => 'Währungen',
312 313
  'Currency'                    => 'W?hrung',
313 314
  'Current'                     => 'Betrag',
314 315
  'Current / Next Level'        => 'Aktuelles / N?chstes Mahnlevel',
......
361 362
  'December'                    => 'Dezember',
362 363
  'Decimalplaces'               => 'Dezimalstellen',
363 364
  'Decrease'                    => 'Verringern',
365
  'Default Accounts'            => 'Standardkonten',
364 366
  'Default output medium'       => 'Standardausgabekanal',
365 367
  'Default printer'             => 'Standarddrucker',
366 368
  'Default template format'     => 'Standardvorlagenformat',
369
  'Defaults saved.'             => 'Die Standardeinstellungen wurden gespeichert.',
367 370
  'Delete'                      => 'L?schen',
368 371
  'Delete Account'              => 'Konto l?schen',
369 372
  'Delete Dataset'              => 'Datenbank l?schen',
......
643 646
  'Last Credit Note Number'     => 'Letzte Gutschriftnummer',
644 647
  'Last Customer Number'        => 'Letzte Kundennummer',
645 648
  'Last Invoice Number'         => 'Letzte Rechnungsnummer',
646
  'Last Numbers & Default Accounts' => 'Laufende Z?hler und Standardkonten',
647 649
  'Last Purchase Order Number'  => 'Letzte Lieferantenautragsnummer',
648 650
  'Last RFQ Number'             => 'Letzte Anfragenummer',
649 651
  'Last Sales Order Number'     => 'Letzte Auftragsnummer',
......
710 712
  'Method'                      => 'Verfahren',
711 713
  'Microfiche'                  => 'Mikrofilm',
712 714
  'Minimum Amount'              => 'Mindestbetrag',
715
  'Miscellaneous'               => 'Verschiedenes',
713 716
  'Missing \'description\' field.' => 'Fehlendes Feld \'description\'.',
714 717
  'Missing \'tag\' field.'      => 'Fehlendes Feld \'tag\'.',
715 718
  'Missing Method!'             => 'Fehlender Voranmeldungszeitraum',
......
949 952
  'RFQ Number'                  => 'Anfragenummer',
950 953
  'RFQs'                        => 'Preisanfragen',
951 954
  'ROP'                         => 'Mindestlagerbestand',
955
  'Ranges of numbers'           => 'Nummernkreise',
956
  'Ranges of numbers and default accounts' => 'Nummernkreise und Standardkonten',
952 957
  'Receipt'                     => 'Zahlungseingang',
953 958
  'Receipt posted!'             => 'Beleg gebucht!',
954 959
  'Receipts'                    => 'Zahlungseing?nge',
locale/de/am
92 92
  'Dataset upgrade'             => 'Datenbankaktualisierung',
93 93
  'Date'                        => 'Datum',
94 94
  'Date Format'                 => 'Datumsformat',
95
  'Defaults saved.'             => 'Die Standardeinstellungen wurden gespeichert.',
95 96
  'Delete'                      => 'L?schen',
96 97
  'Delete Account'              => 'Konto l?schen',
97 98
  'Department deleted!'         => 'Abteilung gel?scht.',
......
199 200
  'Queue'                       => 'Warteschlange',
200 201
  'Quotation'                   => 'Angebot',
201 202
  'RFQ'                         => 'Anfrage',
203
  'Ranges of numbers and default accounts' => 'Nummernkreise und Standardkonten',
202 204
  'Revenue'                     => 'Erl?skonto',
203 205
  'Revenues EU with UStId'      => 'Erlöse EU m. UStId',
204 206
  'Revenues EU without UStId'   => 'Erlöse EU o. UStId',
......
336 338
  'edit_account'                => 'edit_account',
337 339
  'edit_buchungsgruppe'         => 'edit_buchungsgruppe',
338 340
  'edit_business'               => 'edit_business',
341
  'edit_defaults'               => 'edit_defaults',
339 342
  'edit_department'             => 'edit_department',
340 343
  'edit_language'               => 'edit_language',
341 344
  'edit_lead'                   => 'edit_lead',
......
371 374
  'save_account'                => 'save_account',
372 375
  'save_buchungsgruppe'         => 'save_buchungsgruppe',
373 376
  'save_business'               => 'save_business',
377
  'save_defaults'               => 'save_defaults',
374 378
  'save_department'             => 'save_department',
375 379
  'save_language'               => 'save_language',
376 380
  'save_lead'                   => 'save_lead',
locale/de/menu
91 91
  'Purchase Orders'             => 'Lieferantenauftr?ge',
92 92
  'Quotations'                  => 'Angebote',
93 93
  'RFQs'                        => 'Preisanfragen',
94
  'Ranges of numbers and default accounts' => 'Nummernkreise und Standardkonten',
94 95
  'Receipt'                     => 'Zahlungseingang',
95 96
  'Receipts'                    => 'Zahlungseing?nge',
96 97
  'Reconciliation'              => 'Kontenabgleich',
locale/de/menunew
90 90
  'Purchase Orders'             => 'Lieferantenauftr?ge',
91 91
  'Quotations'                  => 'Angebote',
92 92
  'RFQs'                        => 'Preisanfragen',
93
  'Ranges of numbers and default accounts' => 'Nummernkreise und Standardkonten',
93 94
  'Receipt'                     => 'Zahlungseingang',
94 95
  'Receipts'                    => 'Zahlungseing?nge',
95 96
  'Reconciliation'              => 'Kontenabgleich',
menu.ini
342 342

  
343 343

  
344 344
[System]
345

  
346
[System--Ranges of numbers and default accounts]
347
module=am.pl
348
action=edit_defaults
349

  
345 350
[System--UStVa Einstellungen]
346 351
module=ustva.pl
347 352
action=config_step1
templates/webpages/am/config_de.html
167 167
     <th align="right">Anzahl Kopien</th>
168 168
     <td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
169 169
    </tr>
170

  
171

  
172
    <tr class="listheading">
173
     <th colspan="2">&nbsp;</th>
174
    </tr>
175

  
176
    <tr>
177
     <th align="right">Firmennummer</th>
178
     <td><input name="businessnumber" size="25" value="[% HTML.escape(myconfig_businessnumber) %]"></td>
179
    </tr>
180
    <tr>
181
     <th align="right">Jahresende (mm/dd)</th>
182
     <td><input name="yearend" size="5" value="[% HTML.escape(defaults_yearend) %]"></td>
183
    </tr>
184

  
185
    <tr class="listheading">
186
     <th colspan="2">Laufende Z?hler und Standardkonten</th>
187
    </tr>
188

  
189
    <tr>
190
     <td colspan="2">
191
      <table width="100%">
192
       <tr>
193
        <th align="right" nowrap>Warenbestand</th>
194
        <td>
195
         <select name="inventory_accno">
196
          [%- FOREACH row = ACCNOS_IC %]
197
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
198
          [%- END %]
199
         </select>
200
        </td>
201
       </tr>
202

  
203
       <tr>
204
        <th align="right" nowrap>Erl?skonto</th>
205
        <td>
206
         <select name="income_accno">
207
          [%- FOREACH row = ACCNOS_IC_INCOME %]
208
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
209
          [%- END %]
210
         </select>
211
        </td>
212
       </tr>
213

  
214
       <tr>
215
        <th align="right" nowrap>Aufwandskonto</th>
216
        <td>
217
         <select name="expense_accno">
218
          [%- FOREACH row = ACCNOS_IC_EXPENSE %]
219
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
220
          [%- END %]
221
         </select>
222
        </td>
223
       </tr>
224

  
225
       <tr>
226
        <th align="right" nowrap>Wechselkursertr?ge</th>
227
        <td>
228
         <select name="fxgain_accno">
229
          [%- FOREACH row = ACCNOS_FX_GAIN %]
230
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
231
          [%- END %]
232
         </select>
233
        </td>
234
       </tr>
235

  
236
       <tr>
237
        <th align="right" nowrap>Wechselkursaufwendungen</th>
238
        <td>
239
         <select name="fxloss_accno">
240
          [%- FOREACH row = ACCNOS_FX_LOSS %]
241
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
242
          [%- END %]
243
         </select>
244
        </td>
245
       </tr>
246

  
247
       <tr>
248
        <td colspan="2">
249
         Geben Sie Ihre und weitere W?hrungen mit bis zu drei Buchstaben pro W?hrung und W?hrungen durch Doppelpunkte getrennt ein (z.B. EUR:USD:CAD)<br>
250
         <input name="curr" size="40" value="[% HTML.escape(defaults_curr) %]">
251
        </td>
252
       </tr>
253
      </table>
254
     </td>
255
    </tr>
256

  
257
    <tr>
258
     <td colspan="2">
259
      <table width="100"%>
260
       <tr>
261
        <th align="right" nowrap>Letzte Rechnungsnummer</th>
262
        <td><input name="invnumber" size="10" value="[% HTML.escape(defaults_invnumber) %]"></td>
263
        <th align="right" nowrap>Letzte Kundennummer</th>
264
        <td><input name="customernumber" size="10" value="[% HTML.escape(defaults_customernumber) %]"></td>
265
       </tr>
266

  
267
       <tr>
268
        <th align="right" nowrap>Letzte Gutschriftnummer</th>
269
        <td><input name="cnnumber" size="10" value="[% HTML.escape(defaults_cnnumber) %]"></td>
270
        <th align="right" nowrap>Letzte Lieferantennummer</th>
271
        <td><input name="vendornumber" size="10" value="[% HTML.escape(defaults_vendornumber) %]"></td>
272
       </tr>
273

  
274
       <tr>
275
        <th align="right" nowrap>Letzte Auftragsnummer</th>
276
        <td><input name="sonumber" size="10" value="[% HTML.escape(defaults_sonumber) %]"></td>
277
       </tr>
278

  
279
       <tr>
280
        <th align="right" nowrap>Letzte Lieferantenautragsnummer</th>
281
        <td><input name="ponumber" size="10" value="[% HTML.escape(defaults_ponumber) %]"></td>
282
        <th align="right" nowrap>Letzte Artikelnummer</th>
283
        <td><input name="articlenumber" size="10" value="[% HTML.escape(defaults_articlenumber) %]"></td>
284
       </tr>
285

  
286
       <tr>
287
        <th align="right" nowrap>Letzte Angebotsnummer</th>
288
        <td><input name="sqnumber" size="10" value="[% HTML.escape(defaults_sqnumber) %]"></td>
289
        <th align="right" nowrap>Letzte Dienstleistungsnr.</th>
290
        <td><input name="servicenumber" size="10" value="[% HTML.escape(defaults_servicenumber) %]"></td>
291
       </tr>
292

  
293
       <tr>
294
        <th align="right" nowrap>Letzte Anfragenummer</th>
295
        <td><input name="rfqnumber" size="10" value="[% HTML.escape(defaults_rfqnumber) %]"></td>
296
       </tr>
297

  
298
      </table>
299
     </td>
300
    </tr>
301 170
   </table>
302 171
  </p>
303 172

  
templates/webpages/am/config_master.html
167 167
     <th align="right"><translate>Number of copies</translate></th>
168 168
     <td><input name="copies" size="10" value="[% HTML.escape(myconfig_copies) %]"></td>
169 169
    </tr>
170

  
171

  
172
    <tr class="listheading">
173
     <th colspan="2">&nbsp;</th>
174
    </tr>
175

  
176
    <tr>
177
     <th align="right"><translate>Business Number</translate></th>
178
     <td><input name="businessnumber" size="25" value="[% HTML.escape(myconfig_businessnumber) %]"></td>
179
    </tr>
180
    <tr>
181
     <th align="right"><translate>Year End</translate> (mm/dd)</th>
182
     <td><input name="yearend" size="5" value="[% HTML.escape(defaults_yearend) %]"></td>
183
    </tr>
184

  
185
    <tr class="listheading">
186
     <th colspan="2"><translate>Last Numbers & Default Accounts</translate></th>
187
    </tr>
188

  
189
    <tr>
190
     <td colspan="2">
191
      <table width="100%">
192
       <tr>
193
        <th align="right" nowrap><translate>Inventory Account</translate></th>
194
        <td>
195
         <select name="inventory_accno">
196
          [%- FOREACH row = ACCNOS_IC %]
197
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
198
          [%- END %]
199
         </select>
200
        </td>
201
       </tr>
202

  
203
       <tr>
204
        <th align="right" nowrap><translate>Revenue Account</translate></th>
205
        <td>
206
         <select name="income_accno">
207
          [%- FOREACH row = ACCNOS_IC_INCOME %]
208
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
209
          [%- END %]
210
         </select>
211
        </td>
212
       </tr>
213

  
214
       <tr>
215
        <th align="right" nowrap><translate>Expense Account</translate></th>
216
        <td>
217
         <select name="expense_accno">
218
          [%- FOREACH row = ACCNOS_IC_EXPENSE %]
219
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
220
          [%- END %]
221
         </select>
222
        </td>
223
       </tr>
224

  
225
       <tr>
226
        <th align="right" nowrap><translate>Foreign Exchange Gain</translate></th>
227
        <td>
228
         <select name="fxgain_accno">
229
          [%- FOREACH row = ACCNOS_FX_GAIN %]
230
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
231
          [%- END %]
232
         </select>
233
        </td>
234
       </tr>
235

  
236
       <tr>
237
        <th align="right" nowrap><translate>Foreign Exchange Loss</translate></th>
238
        <td>
239
         <select name="fxloss_accno">
240
          [%- FOREACH row = ACCNOS_FX_LOSS %]
241
          <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
242
          [%- END %]
243
         </select>
244
        </td>
245
       </tr>
246

  
247
       <tr>
248
        <td colspan="2">
249
         <translate>Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies</translate><br>
250
         <input name="curr" size="40" value="[% HTML.escape(defaults_curr) %]">
251
        </td>
252
       </tr>
253
      </table>
254
     </td>
255
    </tr>
256

  
257
    <tr>
258
     <td colspan="2">
259
      <table width="100"%>
260
       <tr>
261
        <th align="right" nowrap><translate>Last Invoice Number</translate></th>
262
        <td><input name="invnumber" size="10" value="[% HTML.escape(defaults_invnumber) %]"></td>
263
        <th align="right" nowrap><translate>Last Customer Number</translate></th>
264
        <td><input name="customernumber" size="10" value="[% HTML.escape(defaults_customernumber) %]"></td>
265
       </tr>
266

  
267
       <tr>
268
        <th align="right" nowrap><translate>Last Credit Note Number</translate></th>
269
        <td><input name="cnnumber" size="10" value="[% HTML.escape(defaults_cnnumber) %]"></td>
270
        <th align="right" nowrap><translate>Last Vendor Number</translate></th>
271
        <td><input name="vendornumber" size="10" value="[% HTML.escape(defaults_vendornumber) %]"></td>
272
       </tr>
273

  
274
       <tr>
275
        <th align="right" nowrap><translate>Last Sales Order Number</translate></th>
276
        <td><input name="sonumber" size="10" value="[% HTML.escape(defaults_sonumber) %]"></td>
277
       </tr>
278

  
279
       <tr>
280
        <th align="right" nowrap><translate>Last Purchase Order Number</translate></th>
281
        <td><input name="ponumber" size="10" value="[% HTML.escape(defaults_ponumber) %]"></td>
282
        <th align="right" nowrap><translate>Last Article Number</translate></th>
283
        <td><input name="articlenumber" size="10" value="[% HTML.escape(defaults_articlenumber) %]"></td>
284
       </tr>
285

  
286
       <tr>
287
        <th align="right" nowrap><translate>Last Sales Quotation Number</translate></th>
288
        <td><input name="sqnumber" size="10" value="[% HTML.escape(defaults_sqnumber) %]"></td>
289
        <th align="right" nowrap><translate>Last Service Number</translate></th>
290
        <td><input name="servicenumber" size="10" value="[% HTML.escape(defaults_servicenumber) %]"></td>
291
       </tr>
292

  
293
       <tr>
294
        <th align="right" nowrap><translate>Last RFQ Number</translate></th>
295
        <td><input name="rfqnumber" size="10" value="[% HTML.escape(defaults_rfqnumber) %]"></td>
296
       </tr>
297

  
298
      </table>
299
     </td>
300
    </tr>
301 170
   </table>
302 171
  </p>
303 172

  
templates/webpages/am/edit_defaults_de.html
1
[% USE HTML %]<body>
2

  
3
 <div class="listtop">[% title %]</div>
4

  
5
 <form method="post" action="am.pl"name="Form">
6

  
7
  <input type="hidden" name="type" value="defaults">
8
  <input type="hidden" name="login" value="[% HTML.escape(login) %]">
9
  <input type="hidden" name="password" value="[% HTML.escape(password) %]">
10

  
11
  <p>
12
   <table>
13
    <tr class="listheading">
14
     <th colspan="4">Nummernkreise</th>
15
    </tr>
16

  
17
    <tr>
18
     <th align="right" nowrap>Letzte Rechnungsnummer</th>
19
     <td><input name="invnumber" size="10" value="[% HTML.escape(defaults_invnumber) %]"></td>
20
     <th align="right" nowrap>Letzte Kundennummer</th>
21
     <td><input name="customernumber" size="10" value="[% HTML.escape(defaults_customernumber) %]"></td>
22
    </tr>
23

  
24
    <tr>
25
     <th align="right" nowrap>Letzte Gutschriftnummer</th>
26
     <td><input name="cnnumber" size="10" value="[% HTML.escape(defaults_cnnumber) %]"></td>
27
     <th align="right" nowrap>Letzte Lieferantennummer</th>
28
     <td><input name="vendornumber" size="10" value="[% HTML.escape(defaults_vendornumber) %]"></td>
29
    </tr>
30

  
31
    <tr>
32
     <th align="right" nowrap>Letzte Auftragsnummer</th>
33
     <td><input name="sonumber" size="10" value="[% HTML.escape(defaults_sonumber) %]"></td>
34
    </tr>
35

  
36
    <tr>
37
     <th align="right" nowrap>Letzte Lieferantenautragsnummer</th>
38
     <td><input name="ponumber" size="10" value="[% HTML.escape(defaults_ponumber) %]"></td>
39
     <th align="right" nowrap>Letzte Artikelnummer</th>
40
     <td><input name="articlenumber" size="10" value="[% HTML.escape(defaults_articlenumber) %]"></td>
41
    </tr>
42

  
43
    <tr>
44
     <th align="right" nowrap>Letzte Angebotsnummer</th>
45
     <td><input name="sqnumber" size="10" value="[% HTML.escape(defaults_sqnumber) %]"></td>
46
     <th align="right" nowrap>Letzte Dienstleistungsnr.</th>
47
     <td><input name="servicenumber" size="10" value="[% HTML.escape(defaults_servicenumber) %]"></td>
48
    </tr>
49

  
50
    <tr>
51
     <th align="right" nowrap>Letzte Anfragenummer</th>
52
     <td><input name="rfqnumber" size="10" value="[% HTML.escape(defaults_rfqnumber) %]"></td>
53
    </tr>
54

  
55
    <tr class="listheading">
56
     <th colspan="4">Standardkonten</th>
57
    </tr>
58

  
59
    <tr>
60
     <th align="right" nowrap>Warenbestand</th>
61
     <td colspan="3">
62
      <select name="inventory_accno">
63
       [%- FOREACH row = ACCNOS_IC %]
64
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
65
       [%- END %]
66
      </select>
67
     </td>
68
    </tr>
69

  
70
    <tr>
71
     <th align="right" nowrap>Erl?skonto</th>
72
     <td colspan="3">
73
      <select name="income_accno">
74
       [%- FOREACH row = ACCNOS_IC_INCOME %]
75
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
76
       [%- END %]
77
      </select>
78
     </td>
79
    </tr>
80

  
81
    <tr>
82
     <th align="right" nowrap>Aufwandskonto</th>
83
     <td colspan="3">
84
      <select name="expense_accno">
85
       [%- FOREACH row = ACCNOS_IC_EXPENSE %]
86
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
87
       [%- END %]
88
      </select>
89
     </td>
90
    </tr>
91

  
92
    <tr>
93
     <th align="right" nowrap>Wechselkursertr?ge</th>
94
     <td colspan="3">
95
      <select name="fxgain_accno">
96
       [%- FOREACH row = ACCNOS_FX_GAIN %]
97
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
98
       [%- END %]
99
      </select>
100
     </td>
101
    </tr>
102

  
103
    <tr>
104
     <th align="right" nowrap>Wechselkursaufwendungen</th>
105
     <td colspan="3">
106
      <select name="fxloss_accno">
107
       [%- FOREACH row = ACCNOS_FX_LOSS %]
108
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
109
       [%- END %]
110
      </select>
111
     </td>
112
    </tr>
113

  
114
    <tr class="listheading">
115
     <th colspan="4">Verschiedenes</th>
116
    </tr>
117

  
118
    <tr>
119
     <th align="right">Firmennummer</th>
120
     <td colspan="3"><input name="businessnumber" size="25" value="[% HTML.escape(defaults_businessnumber) %]"></td>
121
    </tr>
122

  
123
    <tr>
124
     <th align="right">Jahresende (mm/dd)</th>
125
     <td colspan="3"><input name="yearend" size="5" value="[% HTML.escape(defaults_yearend) %]"></td>
126
    </tr>
127

  
128
    <tr>
129
     <th align="right">W&auml;hrungen <sup>(1)</sup></th>
130
     <td colspan="3"><input name="curr" size="20" value="[% HTML.escape(defaults_curr) %]"></td>
131
    </tr>
132

  
133
   </table>
134
  </p>
135

  
136
  <hr height="3" noshade>
137

  
138
  <p><input type="submit" class="submit" name="action" value="Speichern"></p>
139

  
140
  <hr height="3" noshade>
141

  
142
  <p>
143
   (1) Geben Sie Ihre und weitere W?hrungen mit bis zu drei Buchstaben pro W?hrung und W?hrungen durch Doppelpunkte getrennt ein (z.B. EUR:USD:CAD)
144
  </p>
145
 </form>
146

  
147
</body>
148
</html>
templates/webpages/am/edit_defaults_master.html
1
[% USE HTML %]<body>
2

  
3
 <div class="listtop">[% title %]</div>
4

  
5
 <form method="post" action="am.pl"name="Form">
6

  
7
  <input type="hidden" name="type" value="defaults">
8
  <input type="hidden" name="login" value="[% HTML.escape(login) %]">
9
  <input type="hidden" name="password" value="[% HTML.escape(password) %]">
10

  
11
  <p>
12
   <table>
13
    <tr class="listheading">
14
     <th colspan="4"><translate>Ranges of numbers</translate></th>
15
    </tr>
16

  
17
    <tr>
18
     <th align="right" nowrap><translate>Last Invoice Number</translate></th>
19
     <td><input name="invnumber" size="10" value="[% HTML.escape(defaults_invnumber) %]"></td>
20
     <th align="right" nowrap><translate>Last Customer Number</translate></th>
21
     <td><input name="customernumber" size="10" value="[% HTML.escape(defaults_customernumber) %]"></td>
22
    </tr>
23

  
24
    <tr>
25
     <th align="right" nowrap><translate>Last Credit Note Number</translate></th>
26
     <td><input name="cnnumber" size="10" value="[% HTML.escape(defaults_cnnumber) %]"></td>
27
     <th align="right" nowrap><translate>Last Vendor Number</translate></th>
28
     <td><input name="vendornumber" size="10" value="[% HTML.escape(defaults_vendornumber) %]"></td>
29
    </tr>
30

  
31
    <tr>
32
     <th align="right" nowrap><translate>Last Sales Order Number</translate></th>
33
     <td><input name="sonumber" size="10" value="[% HTML.escape(defaults_sonumber) %]"></td>
34
    </tr>
35

  
36
    <tr>
37
     <th align="right" nowrap><translate>Last Purchase Order Number</translate></th>
38
     <td><input name="ponumber" size="10" value="[% HTML.escape(defaults_ponumber) %]"></td>
39
     <th align="right" nowrap><translate>Last Article Number</translate></th>
40
     <td><input name="articlenumber" size="10" value="[% HTML.escape(defaults_articlenumber) %]"></td>
41
    </tr>
42

  
43
    <tr>
44
     <th align="right" nowrap><translate>Last Sales Quotation Number</translate></th>
45
     <td><input name="sqnumber" size="10" value="[% HTML.escape(defaults_sqnumber) %]"></td>
46
     <th align="right" nowrap><translate>Last Service Number</translate></th>
47
     <td><input name="servicenumber" size="10" value="[% HTML.escape(defaults_servicenumber) %]"></td>
48
    </tr>
49

  
50
    <tr>
51
     <th align="right" nowrap><translate>Last RFQ Number</translate></th>
52
     <td><input name="rfqnumber" size="10" value="[% HTML.escape(defaults_rfqnumber) %]"></td>
53
    </tr>
54

  
55
    <tr class="listheading">
56
     <th colspan="4"><translate>Default Accounts</translate></th>
57
    </tr>
58

  
59
    <tr>
60
     <th align="right" nowrap><translate>Inventory Account</translate></th>
61
     <td colspan="3">
62
      <select name="inventory_accno">
63
       [%- FOREACH row = ACCNOS_IC %]
64
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
65
       [%- END %]
66
      </select>
67
     </td>
68
    </tr>
69

  
70
    <tr>
71
     <th align="right" nowrap><translate>Revenue Account</translate></th>
72
     <td colspan="3">
73
      <select name="income_accno">
74
       [%- FOREACH row = ACCNOS_IC_INCOME %]
75
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
76
       [%- END %]
77
      </select>
78
     </td>
79
    </tr>
80

  
81
    <tr>
82
     <th align="right" nowrap><translate>Expense Account</translate></th>
83
     <td colspan="3">
84
      <select name="expense_accno">
85
       [%- FOREACH row = ACCNOS_IC_EXPENSE %]
86
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
87
       [%- END %]
88
      </select>
89
     </td>
90
    </tr>
91

  
92
    <tr>
93
     <th align="right" nowrap><translate>Foreign Exchange Gain</translate></th>
94
     <td colspan="3">
95
      <select name="fxgain_accno">
96
       [%- FOREACH row = ACCNOS_FX_GAIN %]
97
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
98
       [%- END %]
99
      </select>
100
     </td>
101
    </tr>
102

  
103
    <tr>
104
     <th align="right" nowrap><translate>Foreign Exchange Loss</translate></th>
105
     <td colspan="3">
106
      <select name="fxloss_accno">
107
       [%- FOREACH row = ACCNOS_FX_LOSS %]
108
       <option value="[% HTML.escape(row.value) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.name) %]</option>
109
       [%- END %]
110
      </select>
111
     </td>
112
    </tr>
113

  
114
    <tr class="listheading">
115
     <th colspan="4"><translate>Miscellaneous</translate></th>
116
    </tr>
117

  
118
    <tr>
119
     <th align="right"><translate>Business Number</translate></th>
120
     <td colspan="3"><input name="businessnumber" size="25" value="[% HTML.escape(defaults_businessnumber) %]"></td>
121
    </tr>
122

  
123
    <tr>
124
     <th align="right"><translate>Year End</translate> (mm/dd)</th>
125
     <td colspan="3"><input name="yearend" size="5" value="[% HTML.escape(defaults_yearend) %]"></td>
126
    </tr>
127

  
128
    <tr>
129
     <th align="right"><translate>Currencies</translate> <sup>(1)</sup></th>
130
     <td colspan="3"><input name="curr" size="20" value="[% HTML.escape(defaults_curr) %]"></td>
131
    </tr>
132

  
133
   </table>
134
  </p>
135

  
136
  <hr height="3" noshade>
137

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

  
140
  <hr height="3" noshade>
141

  
142
  <p>
143
   (1) <translate>Enter up to 3 letters separated by a colon (i.e CAD:USD:EUR) for your native and foreign currencies</translate>
144
  </p>
145
 </form>
146

  
147
</body>
148
</html>

Auch abrufbar als: Unified diff