Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d38be021

Von Udo Spallek vor etwa 17 Jahren hinzugefügt

  • ID d38be021dde6dae352b0d755d9574dfe2de9898d
  • Vorgänger caf76b38
  • Nachfolger 546a969e

Neues Modul 'Steuern Bearbeiten'. Mit diesem Modul ist es moeglich, die Eintraege der Tabelle tax, bzw. _tax anpassen zu koennen.

Unterschiede anzeigen:

SL/AM.pm
2055 2055
  $main::lxdebug->leave_sub();
2056 2056
}
2057 2057

  
2058
sub taxes {
2059
  $main::lxdebug->enter_sub();
2060

  
2061
  my ($self, $myconfig, $form) = @_;
2062

  
2063
  # connect to database
2064
  my $dbh = $form->dbconnect($myconfig);
2065

  
2066
  my $query = qq|SELECT 
2067
                   t.id,
2068
                   t.taxkey,
2069
                   t.taxdescription,
2070
                   round(t.rate, 2) * 100 AS rate,
2071
                   c.accno AS taxnumber,
2072
                   c.description AS account_description
2073
                 FROM tax t
2074
                 JOIN chart c on (chart_id = c.id)
2075
                 ORDER BY taxkey|;
2076

  
2077
  $sth = $dbh->prepare($query);
2078
  $sth->execute || $form->dberror($query);
2079

  
2080
  $form->{TAX} = [];
2081
  while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
2082
    push @{ $form->{TAX} }, $ref;
2083
  }
2084

  
2085
  $sth->finish;
2086
  $dbh->disconnect;
2087

  
2088
  $main::lxdebug->leave_sub();
2089
}
2090

  
2091
sub get_tax_accounts {
2092
  $main::lxdebug->enter_sub();
2093

  
2094
  my ($self, $myconfig, $form) = @_;
2095

  
2096
  my $dbh = $form->dbconnect($myconfig);
2097

  
2098
  # get Accounts from chart
2099
  my $query = qq{ SELECT 
2100
                 id,
2101
                 accno || ' - ' || description AS _taxaccount
2102
               FROM chart
2103
               WHERE link LIKE '%_tax%'
2104
               ORDER BY accno 
2105
             };
2106

  
2107
  $sth = $dbh->prepare($query);
2108
  $sth->execute || $form->dberror($query);
2109

  
2110
  $form->{ACCOUNTS} = [];
2111
  while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
2112
    push @{ $form->{ACCOUNTS} }, $ref;
2113
  }
2114

  
2115
  $sth->finish;
2116

  
2117
  $dbh->disconnect;
2118

  
2119
  $main::lxdebug->leave_sub();
2120
}
2121

  
2122
sub get_tax {
2123
  $main::lxdebug->enter_sub();
2124

  
2125
  my ($self, $myconfig, $form) = @_;
2126

  
2127
  # connect to database
2128
  my $dbh = $form->dbconnect($myconfig);
2129

  
2130
  my $query = qq|SELECT 
2131
                   taxkey,
2132
                   taxdescription,
2133
                   round(rate, 2) * 100 AS rate,
2134
                   chart_id
2135
                 FROM tax
2136
                 WHERE id = ? |;
2137
                 
2138
  my $sth = $dbh->prepare($query);
2139
  $sth->execute($form->{id}) || $form->dberror($query . " ($form->{id})");
2140

  
2141
  my $ref = $sth->fetchrow_hashref(NAME_lc);
2142

  
2143
  map { $form->{$_} = $ref->{$_} } keys %$ref;
2144

  
2145
  $sth->finish;
2146

  
2147
  # see if it is used by a taxkey
2148
  $query = qq|SELECT count(*) FROM taxkeys
2149
              WHERE tax_id = ?|;
2150
  
2151
  ($form->{orphaned}) = selectrow_query($form, $dbh, $query, $form->{id});
2152

  
2153
  $form->{orphaned} = !$form->{orphaned};
2154
  $sth->finish;
2155
  
2156
  if (!$form->{orphaned} ) {
2157
    $query = qq|SELECT DISTINCT c.id, c.accno
2158
                FROM taxkeys tk
2159
                LEFT JOIN   tax t ON (t.id = tk.tax_id)
2160
                LEFT JOIN chart c ON (c.id = tk.chart_id)
2161
                WHERE tk.tax_id = ?|;
2162
  
2163
    $sth = $dbh->prepare($query);
2164
    $sth->execute($form->{id}) || $form->dberror($query . " ($form->{id})");
2165

  
2166
    $form->{TAXINUSE} = [];
2167
    while (my $ref = $sth->fetchrow_hashref(NAME_lc)) {
2168
      push @{ $form->{TAXINUSE} }, $ref;
2169
    }
2170

  
2171
    $sth->finish;
2172
  }
2173
  
2174
  $dbh->disconnect;
2175

  
2176
  $main::lxdebug->leave_sub();
2177
}
2178

  
2179
sub save_tax {
2180
  $main::lxdebug->enter_sub();
2181

  
2182
  my ($self, $myconfig, $form) = @_;
2183

  
2184
  # connect to database
2185
  my $dbh = $form->dbconnect($myconfig);
2186

  
2187
  $form->{rate} = $form->{rate} / 100;
2188

  
2189
  my @values = ($form->{taxkey}, $form->{taxdescription}, $form->{rate}, $form->{chart_id} );
2190
  if ($form->{id}) {
2191
    $query = qq|UPDATE _tax SET
2192
                  taxkey         = ?,
2193
                  taxdescription = ?,
2194
                  rate           = ?,
2195
                  chart_id       = ?
2196
                WHERE id = ?|;
2197
    push(@values, $form->{id});
2198
  } 
2199
  else {
2200
    #ok
2201
    $query = qq|INSERT INTO _tax (
2202
                  taxkey,
2203
                  taxdescription,
2204
                  rate,
2205
                  chart_id
2206
                )
2207
                VALUES (?, ?, ?, ? )|;
2208
  }
2209
  do_query($form, $dbh, $query, @values);
2210

  
2211
  $dbh->disconnect;
2212

  
2213
  $main::lxdebug->leave_sub();
2214
}
2215

  
2216
sub delete_tax {
2217
  $main::lxdebug->enter_sub();
2218

  
2219
  my ($self, $myconfig, $form) = @_;
2220

  
2221
  # connect to database
2222
  my $dbh = $form->dbconnect($myconfig);
2223

  
2224
  $query = qq|DELETE FROM _tax
2225
              WHERE id = ?|;
2226
  do_query($form, $dbh, $query, $form->{id});
2227

  
2228
  $dbh->disconnect;
2229

  
2230
  $main::lxdebug->leave_sub();
2231
}
2232

  
2233

  
2234

  
2058 2235
1;
bin/mozilla/am.pl
3137 3137

  
3138 3138
  $lxdebug->leave_sub();
3139 3139
}
3140

  
3141
sub add_tax {
3142
  $lxdebug->enter_sub();
3143

  
3144
  $form->{title} =  $locale->text('Add');
3145

  
3146
  $form->{callback} =
3147
    "$form->{script}?action=add_tax&login=$form->{login}&password=$form->{password}"
3148
    unless $form->{callback};
3149

  
3150
  _get_taxaccount_selection();
3151

  
3152
  $form->header();
3153
  
3154
  my $parameters_ref = {
3155
#    ChartTypeIsAccount         => $ChartTypeIsAccount,
3156
  };
3157
  
3158
  # Ausgabe des Templates
3159
  print($form->parse_html_template('am/edit_tax', $parameters_ref));
3160

  
3161
  $lxdebug->leave_sub();
3162
}
3163

  
3164
sub edit_tax {
3165
  $lxdebug->enter_sub();
3166

  
3167
  $form->{title} =  $locale->text('Edit');
3168

  
3169
  AM->get_tax(\%myconfig, \%$form);
3170
  _get_taxaccount_selection();
3171

  
3172
  $form->header();
3173
  
3174
  my $parameters_ref = {
3175
  };
3176
  
3177
  # Ausgabe des Templates
3178
  print($form->parse_html_template('am/edit_tax', $parameters_ref));
3179

  
3180
  $lxdebug->leave_sub();
3181
}
3182

  
3183
sub list_tax {
3184
  $lxdebug->enter_sub();
3185

  
3186
  AM->taxes(\%myconfig, \%$form);
3187

  
3188
  $form->{callback} =
3189
    "$form->{script}?action=list_tax&login=$form->{login}&password=$form->{password}";
3190

  
3191
  $form->{title} = $locale->text('Tax-O-Matic');
3192

  
3193
  $form->header();
3194
  
3195
  # Ausgabe des Templates
3196
  print($form->parse_html_template('am/list_tax', $parameters_ref));
3197

  
3198
  $lxdebug->leave_sub();
3199
}
3200

  
3201
sub _get_taxaccount_selection{
3202
    $lxdebug->enter_sub();
3203

  
3204
  AM->get_tax_accounts(\%myconfig, \%$form);
3205

  
3206
  my $i = 0;
3207
  foreach my $taxaccount (@{ $form->{ACCOUNTS} } ) {
3208

  
3209
    # Fill in the Taxaxxounts as select options
3210
      if ($form->{chart_id} == $taxaccount->{id}) {
3211
        $form->{ACCOUNTS}[$i]{select_taxaccount} .=
3212
          qq|<option value="$taxaccount->{id}" selected="selected">
3213
            $form->{ACCOUNTS}[$i]{_taxaccount}\n|;
3214
      }
3215
      else {
3216
        $form->{ACCOUNTS}[$i]{select_taxaccount} .=
3217
          qq|<option value="$taxaccount->{id}">
3218
            $form->{ACCOUNTS}[$i]{_taxaccount}<!-- hallo-->\n|;
3219
      }
3220
    $i++;
3221
  }
3222
  return;
3223

  
3224
  $lxdebug->leave_sub();
3225
}
3226

  
3227
sub save_tax {
3228
  $lxdebug->enter_sub();
3229

  
3230
  $form->isblank("chart_id", $locale->text('Tax-O-Matic account missing!'));
3231
  $form->isblank("rate", $locale->text('Taxrate missing!'));
3232
  $form->isblank("taxdescription", $locale->text('Taxdescription  missing!'));
3233
  $form->isblank("taxkey", $locale->text('Taxkey  missing!'));
3234
  
3235
  if ( $form->{rate} <= 0 || $form->{rate} >= 100 ) {
3236
    $form->error($locale->text('Tax Percent is a number between 0 and 100'));
3237
  }
3238

  
3239
  if ( $form->{rate} <= 0.99 && $form->{rate} >= 0 ) {
3240
    $form->error($locale->text('Tax Percent is a number between 0 and 100'));
3241
  }  
3242

  
3243
  AM->save_tax(\%myconfig, \%$form);
3244
  $form->redirect($locale->text('Tax saved!'));
3245

  
3246
  $lxdebug->leave_sub();
3247
}
3248

  
3249
sub delete_tax {
3250
  $lxdebug->enter_sub();
3251

  
3252
  AM->delete_tax(\%myconfig, \%$form);
3253
  $form->redirect($locale->text('Tax deleted!'));
3254

  
3255
  $lxdebug->leave_sub();
3256
}
locale/de/all
249 249
  'Chart Type'                  => 'Kontentyp',
250 250
  'Chart of Accounts'           => 'Konten?bersicht',
251 251
  'Chart of accounts'           => 'Kontenrahmen',
252
  'Chartaccounts connected to this Tax:' => 'Konten, die mit dieser Steuer verkn?pft sind:',
252 253
  'Check'                       => 'Scheck',
253 254
  'Check Details'               => 'Bitte Angaben ?berpr?fen',
254 255
  'Checks'                      => 'Schecks',
......
667 668
  'List Price'                  => 'Listenpreis',
668 669
  'List Pricegroups'            => 'Preisgruppen anzeigen',
669 670
  'List Printer'                => 'Drucker anzeigen',
671
  'List Tax'                    => 'Bearbeiten',
670 672
  'List Transactions'           => 'Buchungsliste',
671 673
  'Load draft'                  => 'Entwurf laden',
672 674
  'Local Tax Office Preferences' => 'Angaben zum Finanzamt',
......
1072 1074
  'Tax Number / SSN'            => 'Steuernummer',
1073 1075
  'Tax Office'                  => 'Finanzamt',
1074 1076
  'Tax Office Preferences'      => 'Finanzamt - Einstellungen',
1077
  'Tax Percent is a number between 0 and 100' => 'Prozentsatz muss zwischen
1078
  1% und 100% liegen',
1075 1079
  'Tax Period'                  => 'Voranmeldungszeitraum',
1076 1080
  'Tax collected'               => 'vereinnahmte Steuer',
1081
  'Tax deleted!'                => 'Steuer gel?scht!',
1077 1082
  'Tax number'                  => 'Steuernummer',
1078 1083
  'Tax paid'                    => 'Vorsteuer',
1084
  'Tax saved!'                  => 'Steuer gespeichert!',
1085
  'Tax-O-Matic'                 => 'Steuer',
1086
  'Tax-O-Matic account missing!' => 'Automatikkonto fehlt!',
1079 1087
  'Tax-o-matic Account'         => 'Automatikbuchung auf Konto',
1080 1088
  'Taxaccount_coa'              => 'Automatikkonto',
1081 1089
  'Taxation'                    => 'Versteuerungs Verfahren',
1090
  'Taxdescription  missing!'    => 'Steuername fehlt!',
1082 1091
  'Taxdescription_coa'          => 'Steuer',
1092
  'Taxes'                       => 'Steuern',
1083 1093
  'Taxkey'                      => 'Steuerschl?ssel',
1094
  'Taxkey  missing!'            => 'Steuerschl?ssel fehlt!',
1084 1095
  'Taxkey_coa'                  => 'Steuerschl?ssel',
1085 1096
  'Taxkeys and Taxreport Preferences' => 'Steuerautomatik und UStVA',
1086 1097
  'Taxlink_coa'                 => 'Steuerautomatik',
1098
  'Taxrate missing!'            => 'Prozentsatz fehlt!',
1087 1099
  'Tel'                         => 'Tel',
1088 1100
  'Tel.'                        => 'Telefon',
1089 1101
  'Telephone'                   => 'Telefon',
......
1357 1369
  'singular first char'         => 'S',
1358 1370
  'soldtotal'                   => 'Verkaufte Anzahl',
1359 1371
  'submit'                      => 'abschicken',
1372
  'tax_chartaccno'              => 'Automatikkonto',
1373
  'tax_percent'                 => 'Prozentsatz',
1374
  'tax_taxdescription'          => 'Steuername',
1375
  'tax_taxkey'                  => 'Steuerschl?ssel',
1360 1376
  'to (date)'                   => 'bis',
1361 1377
  'to (time)'                   => 'bis',
1362 1378
  'up'                          => 'hoch',
locale/de/am
106 106
  'Dropdown Limit'              => 'Auswahllistenbegrenzung',
107 107
  'E-mail'                      => 'eMail',
108 108
  'ELSE'                        => 'Zusatz',
109
  'Edit'                        => 'Bearbeiten',
109 110
  'Edit Account'                => 'Kontodaten bearbeiten',
110 111
  'Edit Accounting Group'       => 'Buchungsgruppe bearbeiten',
111 112
  'Edit Buchungsgruppe'         => 'Buchungsgruppe bearbeiten',
......
244 245
  'Stylesheet'                  => 'Stilvorlage',
245 246
  'Subject'                     => 'Betreff',
246 247
  'Tax Accounts'                => 'Steuerkonto',
248
  'Tax Percent is a number between 0 and 100' => 'Prozentsatz muss zwischen
249
  1% und 100% liegen',
250
  'Tax deleted!'                => 'Steuer gel?scht!',
251
  'Tax saved!'                  => 'Steuer gespeichert!',
252
  'Tax-O-Matic'                 => 'Steuer',
253
  'Tax-O-Matic account missing!' => 'Automatikkonto fehlt!',
247 254
  'Tax-o-matic Account'         => 'Automatikbuchung auf Konto',
255
  'Taxdescription  missing!'    => 'Steuername fehlt!',
256
  'Taxkey  missing!'            => 'Steuerschl?ssel fehlt!',
257
  'Taxrate missing!'            => 'Prozentsatz fehlt!',
248 258
  'Template Code'               => 'Vorlagenk?rzel',
249 259
  'Template Code missing!'      => 'Vorlagenk?rzel fehlt!',
250 260
  'The \'tag\' field must only consist of alphanumeric characters or the carachters - _ ( )' => 'Das Feld \'tag\' darf nur aus alphanumerischen Zeichen und den Zeichen - _ ( ) bestehen.',
......
304 314
  'H'                           => 'H',
305 315
  'NTI'                         => 'NTI',
306 316
  'Q'                           => 'Q',
317
  '_get_taxaccount_selection{
318
' => '_get_taxaccount_selection{
319
',
307 320
  'account_header'              => 'account_header',
308 321
  'add'                         => 'add',
309 322
  'add_account'                 => 'add_account',
......
314 327
  'add_lead'                    => 'add_lead',
315 328
  'add_payment'                 => 'add_payment',
316 329
  'add_printer'                 => 'add_printer',
330
  'add_tax'                     => 'add_tax',
317 331
  'add_unit'                    => 'add_unit',
318 332
  'audit_control'               => 'audit_control',
319 333
  'buchungsgruppe_header'       => 'buchungsgruppe_header',
......
332 346
  'delete_lead'                 => 'delete_lead',
333 347
  'delete_payment'              => 'delete_payment',
334 348
  'delete_printer'              => 'delete_printer',
349
  'delete_tax'                  => 'delete_tax',
335 350
  'delivery_customer_selection' => 'delivery_customer_selection',
336 351
  'department_header'           => 'department_header',
337 352
  'doclose'                     => 'doclose',
......
344 359
  'edit_lead'                   => 'edit_lead',
345 360
  'edit_payment'                => 'edit_payment',
346 361
  'edit_printer'                => 'edit_printer',
362
  'edit_tax'                    => 'edit_tax',
347 363
  'edit_units'                  => 'edit_units',
348 364
  'employee_selection_internal' => 'employee_selection_internal',
349 365
  'form_footer'                 => 'form_footer',
......
360 376
  'list_lead'                   => 'list_lead',
361 377
  'list_payment'                => 'list_payment',
362 378
  'list_printer'                => 'list_printer',
379
  'list_tax'                    => 'list_tax',
363 380
  'mark_as_paid_common'         => 'mark_as_paid_common',
364 381
  'part_selection_internal'     => 'part_selection_internal',
365 382
  'payment_header'              => 'payment_header',
......
376 393
  'save_payment'                => 'save_payment',
377 394
  'save_preferences'            => 'save_preferences',
378 395
  'save_printer'                => 'save_printer',
396
  'save_tax'                    => 'save_tax',
379 397
  'save_unit'                   => 'save_unit',
380 398
  'select_employee'             => 'select_employee',
381 399
  'select_employee_internal'    => 'select_employee_internal',
locale/de/menu
71 71
  'List Payment Terms'          => 'Zahlungskonditionen anzeigen',
72 72
  'List Pricegroups'            => 'Preisgruppen anzeigen',
73 73
  'List Printer'                => 'Drucker anzeigen',
74
  'List Tax'                    => 'Bearbeiten',
74 75
  'Logout'                      => 'Abmeldung',
75 76
  'Master Data'                 => 'Stammdaten',
76 77
  'Packing Lists'               => 'Lieferschein',
......
98 99
  'Shipto'                      => 'Lieferanschriften',
99 100
  'Stylesheet'                  => 'Stilvorlage',
100 101
  'System'                      => 'System',
102
  'Taxes'                       => 'Steuern',
101 103
  'Templates'                   => 'Vorlagen',
102 104
  'Trial Balance'               => 'Saldenbilanz',
103 105
  'Type of Business'            => 'Kunden-/Lieferantentyp',
locale/de/menunew
70 70
  'List Payment Terms'          => 'Zahlungskonditionen anzeigen',
71 71
  'List Pricegroups'            => 'Preisgruppen anzeigen',
72 72
  'List Printer'                => 'Drucker anzeigen',
73
  'List Tax'                    => 'Bearbeiten',
73 74
  'Logout'                      => 'Abmeldung',
74 75
  'Master Data'                 => 'Stammdaten',
75 76
  'Packing Lists'               => 'Lieferschein',
......
97 98
  'Shipto'                      => 'Lieferanschriften',
98 99
  'Stylesheet'                  => 'Stilvorlage',
99 100
  'System'                      => 'System',
101
  'Taxes'                       => 'Steuern',
100 102
  'Templates'                   => 'Vorlagen',
101 103
  'Trial Balance'               => 'Saldenbilanz',
102 104
  'Type of Business'            => 'Kunden-/Lieferantentyp',
menu.ini
394 394
module=am.pl
395 395
action=list_buchungsgruppe
396 396

  
397
[System--Taxes]
398
module=menu.pl
399
action=acc_menu
400
target=acc_menu
401
submenu=1
402

  
403
[System--Taxes--List Tax]
404
module=am.pl
405
action=list_tax
406

  
397 407
[System--Groups]
398 408
module=menu.pl
399 409
action=acc_menu
templates/webpages/am/edit_tax_de.html
1
<body>
2
<form method="post" action="<TMPL_VAR script>">
3
  <input type="hidden" name="id" value="<TMPL_VAR id>">
4
  <input type="hidden" name="type" value="tax">
5

  
6
<table width="100%">
7
  <tr>
8
    <th class="listtop" colspan="2"><TMPL_VAR title> Steuer</th>
9
  </tr>
10
</table>
11
<table width="100%">
12
  <tr>
13
    <td>Steuerschl?ssel</td>
14
    <td><input name="taxkey" size="2" value="<TMPL_VAR taxkey>"></td>
15
  </tr>
16

  
17
  <tr>
18
    <td>Steuername</td>
19
    <td><input name="taxdescription" size="60" value="<TMPL_VAR taxdescription>"></td>
20
  </tr>
21

  
22
  <tr>
23
    <td>Prozentsatz</td>
24
    <td><input name="rate" size="10" value="<TMPL_VAR rate>"> %</td>
25
  </tr>
26

  
27
  <tr>
28
    <td>Automatikkonto</td>
29
    <td><select name="chart_id">
30
    <TMPL_LOOP ACCOUNTS>
31
      <TMPL_VAR select_taxaccount>
32
    </TMPL_LOOP>
33
    </select>
34
    
35
    </td>
36
  </tr>
37

  
38

  
39
</table>
40

  
41
<TMPL_UNLESS orphaned>
42
  <br />
43
  Konten, die mit dieser Steuer verkn?pft sind:
44
  <TMPL_LOOP TAXINUSE>
45
    <a href="am.pl?action=edit_account&id=<TMPL_VAR id>&login=<TMPL_VAR 
46
      login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>&callback=<TMPL_VAR callback ESCAPE=URL>"><TMPL_VAR accno></a>&nbsp;
47
  </TMPL_LOOP>
48
  <br />
49
</TMPL_UNLESS>
50

  
51
<input name="callback" type="hidden" value="<TMPL_VAR callback ESCAPE=HTML>">
52
<input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
53
<input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
54

  
55
<br />
56

  
57
<input type="submit" class="submit" name="action" value="Speichern">
58

  
59
<TMPL_IF orphaned>  
60
      <input type="submit" class="submit" name="action"
61
      value="L?schen">
62
</TMPL_IF>      
63

  
64
</form>
65
</body>
66
</html>
67

  
templates/webpages/am/edit_tax_master.html
1
<body>
2
<form method="post" action="<TMPL_VAR script>">
3
  <input type="hidden" name="id" value="<TMPL_VAR id>">
4
  <input type="hidden" name="type" value="tax">
5

  
6
<table width="100%">
7
  <tr>
8
    <th class="listtop" colspan="2"><TMPL_VAR title> <translate>Tax-O-Matic</translate></th>
9
  </tr>
10
</table>
11
<table width="100%">
12
  <tr>
13
    <td><translate>tax_taxkey</translate></td>
14
    <td><input name="taxkey" size="2" value="<TMPL_VAR taxkey>"></td>
15
  </tr>
16

  
17
  <tr>
18
    <td><translate>tax_taxdescription</translate></td>
19
    <td><input name="taxdescription" size="60" value="<TMPL_VAR taxdescription>"></td>
20
  </tr>
21

  
22
  <tr>
23
    <td><translate>tax_percent</translate></td>
24
    <td><input name="rate" size="10" value="<TMPL_VAR rate>"> %</td>
25
  </tr>
26

  
27
  <tr>
28
    <td><translate>tax_chartaccno</translate></td>
29
    <td><select name="chart_id">
30
    <TMPL_LOOP ACCOUNTS>
31
      <TMPL_VAR select_taxaccount>
32
    </TMPL_LOOP>
33
    </select>
34
    
35
    </td>
36
  </tr>
37

  
38

  
39
</table>
40

  
41
<TMPL_UNLESS orphaned>
42
  <br />
43
  <translate>Chartaccounts connected to this Tax:</translate>
44
  <TMPL_LOOP TAXINUSE>
45
    <a href="am.pl?action=edit_account&id=<TMPL_VAR id>&login=<TMPL_VAR 
46
      login ESCAPE=URL>&password=<TMPL_VAR password ESCAPE=URL>&callback=<TMPL_VAR callback ESCAPE=URL>"><TMPL_VAR accno></a>&nbsp;
47
  </TMPL_LOOP>
48
  <br />
49
</TMPL_UNLESS>
50

  
51
<input name="callback" type="hidden" value="<TMPL_VAR callback ESCAPE=HTML>">
52
<input type="hidden" name="login" value="<TMPL_VAR login ESCAPE=HTML>">
53
<input type="hidden" name="password" value="<TMPL_VAR password ESCAPE=HTML>">
54

  
55
<br />
56

  
57
<input type="submit" class="submit" name="action" value="<translate>Save</translate>">
58

  
59
<TMPL_IF orphaned>  
60
      <input type="submit" class="submit" name="action"
61
      value="<translate>Delete</translate>">
62
</TMPL_IF>      
63

  
64
</form>
65
</body>
66
</html>
67

  
templates/webpages/am/list_tax_de.html
1
<body>
2

  
3
<table width="100%">
4
  <tr>
5
    <th class="listtop"><TMPL_VAR title ESCAPE=HTML></th>
6
  </tr>
7
</table>
8
<table>
9
   <tr>
10
     <th class="listheading"><tanslate>tax_taxkey</translate></th>
11
     <th class="listheading"><tanslate>tax_taxdescription</translate></th>
12
     <th class="listheading"><tanslate>tax_rate</translate></th>
13
     <th class="listheading"><tanslate>taxnumber</translate></th>
14
     <th class="listheading"><tanslate>account_description</translate></th>
15
   </tr>
16

  
17
<TMPL_LOOP TAX>
18

  
19

  
20

  
21
<TMPL_IF __odd__>
22
   <tr class="listrow1" 
23
<TMPL_ELSE> 
24
   <tr class="listrow0" 
25
</TMPL_IF>
26
  onMouseOver="this.style.cursor='pointer';"
27
     onclick="window.location.href='am.pl?action=edit_tax&id=<TMPL_VAR id
28
       ESCAPE=URL>&login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password
29
       ESCAPE=URL>&callback=<TMPL_VAR callback ESCAPE=URL>';">
30

  
31
     <td align="right"><TMPL_VAR taxkey ESCAPE=HTML></td>
32
     <td><TMPL_VAR taxdescription ESCAPE=HTML></td>
33
     <td align="right"><TMPL_VAR rate ESCAPE=HTML> %</td>
34
     <td align="right"><TMPL_VAR taxnumber ESCAPE=HTML></td>
35
     <td><TMPL_VAR account_description ESCAPE=HTML></td>
36
   </tr>
37

  
38
</TMPL_LOOP>
39
</table>
40
<br />
41
<br />
42
<form method="post" action="<TMPL_VAR script>">
43

  
44
  <input name="callback" type="hidden" value="<TMPL_VAR callback>">
45
  <input type="hidden" name="type" value="tax">
46
  <input type="hidden" name="login" value="<TMPL_VAR login>">
47
  <input type="hidden" name="password" value="<TMPL_VAR password>">
48
  <input class="submit" type="submit" name="action"
49
    value="Erfassen">
50
</form>
51

  
52
</body>
53
</html>
54

  
templates/webpages/am/list_tax_master.html
1
<body>
2

  
3
<table width="100%">
4
  <tr>
5
    <th class="listtop"><TMPL_VAR title ESCAPE=HTML></th>
6
  </tr>
7
</table>
8
<table>
9
   <tr>
10
     <th class="listheading"><tanslate>tax_taxkey</translate></th>
11
     <th class="listheading"><tanslate>tax_taxdescription</translate></th>
12
     <th class="listheading"><tanslate>tax_rate</translate></th>
13
     <th class="listheading"><tanslate>taxnumber</translate></th>
14
     <th class="listheading"><tanslate>account_description</translate></th>
15
   </tr>
16

  
17
<TMPL_LOOP TAX>
18

  
19

  
20

  
21
<TMPL_IF __odd__>
22
   <tr class="listrow1" 
23
<TMPL_ELSE> 
24
   <tr class="listrow0" 
25
</TMPL_IF>
26
  onMouseOver="this.style.cursor='pointer';"
27
     onclick="window.location.href='am.pl?action=edit_tax&id=<TMPL_VAR id
28
       ESCAPE=URL>&login=<TMPL_VAR login ESCAPE=URL>&password=<TMPL_VAR password
29
       ESCAPE=URL>&callback=<TMPL_VAR callback ESCAPE=URL>';">
30

  
31
     <td align="right"><TMPL_VAR taxkey ESCAPE=HTML></td>
32
     <td><TMPL_VAR taxdescription ESCAPE=HTML></td>
33
     <td align="right"><TMPL_VAR rate ESCAPE=HTML> %</td>
34
     <td align="right"><TMPL_VAR taxnumber ESCAPE=HTML></td>
35
     <td><TMPL_VAR account_description ESCAPE=HTML></td>
36
   </tr>
37

  
38
</TMPL_LOOP>
39
</table>
40
<br />
41
<br />
42
<form method="post" action="<TMPL_VAR script>">
43

  
44
  <input name="callback" type="hidden" value="<TMPL_VAR callback>">
45
  <input type="hidden" name="type" value="tax">
46
  <input type="hidden" name="login" value="<TMPL_VAR login>">
47
  <input type="hidden" name="password" value="<TMPL_VAR password>">
48
  <input class="submit" type="submit" name="action"
49
    value="<translate>Add</translate>">
50
</form>
51

  
52
</body>
53
</html>
54

  

Auch abrufbar als: Unified diff