Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d333f237

Von Moritz Bunkus vor fast 18 Jahren hinzugefügt

  • ID d333f237fcd8ef1d9145b7b51072f7088b857301
  • Vorgänger 69da19a7
  • Nachfolger b6569a34

Weitere Vorkommen von GIFI entfernt. GIFI müsste bis auf Spalte chart.gifi_accno und Tabelle chart komplett entfernt sein.

Unterschiede anzeigen:

SL/AM.pm
48 48
  # connect to database
49 49
  my $dbh = $form->dbconnect($myconfig);
50 50
  my $query =
51
    qq!SELECT c.accno, c.description, c.charttype, c.gifi_accno, c.category,! .
51
    qq!SELECT c.accno, c.description, c.charttype, c.category,! .
52 52
    qq!  c.link, c.pos_bilanz, c.pos_eur, c.new_chart_id, c.valid_from, ! .
53 53
    qq!  c.pos_bwa, ! .
54 54
    qq!  tk.taxkey_id, tk.pos_ustva, tk.tax_id, ! .
......
183 183
  if ($form->{id}) {
184 184
    $query = qq|UPDATE chart SET
185 185
                accno = ?, description = ?, charttype = ?,
186
                gifi_accno = ?, category = ?, link = ?,
186
                category = ?, link = ?,
187 187
                taxkey_id = ?,
188 188
                pos_ustva = ?, pos_bwa   = ?, pos_bilanz = ?,
189 189
                pos_eur = ?, new_chart_id = ?, valid_from = ?
190 190
                WHERE id = ?|;
191 191
    @values = ($form->{accno}, $form->{description}, $form->{charttype},
192
               $form->{gifi_accno}, $form->{category}, $form->{link},
192
               $form->{category}, $form->{link},
193 193
               conv_i($taxkey),
194 194
               conv_i($form->{pos_ustva}), conv_i($form->{pos_bwa}),
195 195
               conv_i($form->{pos_bilanz}), conv_i($form->{pos_eur}),
......
205 205
  } else {
206 206
    $query = qq|INSERT INTO chart
207 207
                (accno, description, charttype,
208
                 gifi_accno, category, link,
209
                 taxkey_id,
208
                 category, link, taxkey_id,
210 209
                 pos_ustva, pos_bwa, pos_bilanz, pos_eur,
211 210
                 new_chart_id, valid_from)
212 211
                VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|;
213 212
    @values = ($form->{accno}, $form->{description}, $form->{charttype},
214
               $form->{gifi_accno}, $form->{category}, $form->{link},
215
               conv_i($taxkey),
213
               $form->{category}, $form->{link}, conv_i($taxkey),
216 214
               conv_i($form->{pos_ustva}), conv_i($form->{pos_bwa}),
217 215
               conv_i($form->{pos_bilanz}), conv_i($form->{pos_eur}),
218 216
               conv_i($form->{new_chart_id}),
SL/CA.pm
60 60
  }
61 61
  $sth->finish;
62 62

  
63
  $query = qq|SELECT accno, description
64
              FROM gifi|;
65
  $sth = $dbh->prepare($query);
66
  $sth->execute || $form->dberror($query);
67

  
68
  my %gifi;
69
  while (my ($accno, $description) = $sth->fetchrow_array) {
70
    $gifi{$accno} = $description;
71
  }
72
  $sth->finish;
73

  
74 63
  $query = qq{
75 64
    SELECT 
76 65
      c.accno,
......
96 85
    FROM chart c
97 86
    LEFT JOIN taxkeys tk ON (c.id = tk.chart_id)
98 87
    LEFT JOIN tax tx ON (tk.tax_id = tx.id)
99
    GROUP BY c.accno, c.id, c.description, c.charttype, c.gifi_accno,
88
    GROUP BY c.accno, c.id, c.description, c.charttype,
100 89
      c.category, c.link, c.pos_bwa, c.pos_bilanz, c.pos_eur, c.valid_from,      
101 90
      c.datevautomatik
102 91
    ORDER BY c.accno
......
107 96

  
108 97
  while (my $ca = $sth->fetchrow_hashref(NAME_lc)) {
109 98
    $ca->{amount}           = $amount{ $ca->{accno} };
110
    $ca->{gifi_description} = $gifi{ $ca->{gifi_accno} };
111 99
    if ($ca->{amount} < 0) {
112 100
      $ca->{debit} = $ca->{amount} * -1;
113 101
    } else {
......
133 121
  # get chart_id
134 122
  my $query = qq|SELECT c.id FROM chart c
135 123
                 WHERE c.accno = '$form->{accno}'|;
136
  if ($form->{accounttype} eq 'gifi') {
137
    $query = qq|SELECT c.id FROM chart c
138
                WHERE c.gifi_accno = '$form->{gifi_accno}'|;
139
  }
140 124
  my $sth = $dbh->prepare($query);
141 125
  $sth->execute || $form->dberror($query);
142 126

  
......
205 189
		 |;
206 190
  }
207 191

  
208
  if ($form->{accno} || $form->{gifi_accno}) {
192
  if ($form->{accno}) {
209 193

  
210 194
    # get category for account
211 195
    $query = qq|SELECT c.category
212 196
                FROM chart c
213 197
		WHERE c.accno = '$form->{accno}'|;
214 198

  
215
    if ($form->{accounttype} eq 'gifi') {
216
      $query = qq|SELECT c.category
217
                FROM chart c
218
		WHERE c.gifi_accno = '$form->{gifi_accno}'
219
		AND c.charttype = 'A'|;
220
    }
221

  
222 199
    $sth = $dbh->prepare($query);
223 200

  
224 201
    $sth->execute || $form->dberror($query);
......
273 250

  
274 251
      }
275 252

  
276
      if ($form->{accounttype} eq 'gifi') {
277
        $query = qq|SELECT SUM(ac.amount)
278
		  FROM acc_trans ac
279
		  JOIN chart c ON (ac.chart_id = c.id)
280
		  $dpt_join
281
		  WHERE c.gifi_accno = '$form->{gifi_accno}'
282
		  AND ac.transdate < '$form->{fromdate}'
283
		  $dpt_where
284
		  $project
285
		  |;
286

  
287
        if ($form->{project_id}) {
288

  
289
          $query .= qq|
290

  
291
	       UNION
292

  
293
	          SELECT SUM(ac.qty * ac.sellprice)
294
		  FROM invoice ac
295
		  JOIN ar a ON (ac.trans_id = a.id)
296
		  JOIN parts p ON (ac.parts_id = p.id)
297
		  JOIN chart c ON (p.income_accno_id = c.id)
298
		  $dpt_join
299
		  WHERE c.gifi_accno = '$form->{gifi_accno}'
300
		  AND a.transdate < '$form->{fromdate}'
301
		  AND c.category = 'I'
302
		  $dpt_where
303
		  $project
304

  
305
	       UNION
306

  
307
	          SELECT SUM(ac.qty * ac.sellprice)
308
		  FROM invoice ac
309
		  JOIN ap a ON (ac.trans_id = a.id)
310
		  JOIN parts p ON (ac.parts_id = p.id)
311
		  JOIN chart c ON (p.expense_accno_id = c.id)
312
		  $dpt_join
313
		  WHERE c.gifi_accno = '$form->{gifi_accno}'
314
		  AND a.transdate < '$form->{fromdate}'
315
		  AND c.category = 'E'
316
		  $dpt_where
317
		  $project
318
		  |;
319

  
320
        }
321
      }
322

  
323 253
      $sth = $dbh->prepare($query);
324 254

  
325 255
      $sth->execute || $form->dberror($query);
SL/GL.pm
284 284
    $arwhere .= " AND c.accno = '$form->{accno}'";
285 285
    $apwhere .= " AND c.accno = '$form->{accno}'";
286 286
  }
287
  if ($form->{gifi_accno}) {
288
    $glwhere .= " AND c.gifi_accno = '$form->{gifi_accno}'";
289
    $arwhere .= " AND c.gifi_accno = '$form->{gifi_accno}'";
290
    $apwhere .= " AND c.gifi_accno = '$form->{gifi_accno}'";
291
  }
292 287
  if ($form->{category} ne 'X') {
293 288
    $glwhere .=
294 289
      " AND gl.id in (SELECT trans_id FROM acc_trans ac2 WHERE ac2.chart_id IN (SELECT id FROM chart c2 WHERE c2.category = '$form->{category}'))";
......
340 335
    }
341 336
  }
342 337

  
343
  if ($form->{gifi_accno}) {
344

  
345
    # get category for account
346
    $query = qq|SELECT c.category
347
                FROM chart c
348
		WHERE c.gifi_accno = '$form->{gifi_accno}'|;
349
    $sth = $dbh->prepare($query);
350

  
351
    $sth->execute || $form->dberror($query);
352
    ($form->{ml}) = $sth->fetchrow_array;
353
    $sth->finish;
354

  
355
    if ($form->{datefrom}) {
356
      $query = qq|SELECT SUM(ac.amount)
357
		  FROM acc_trans ac, chart c
358
		  WHERE ac.chart_id = c.id
359
		  AND c.gifi_accno = '$form->{gifi_accno}'
360
		  AND ac.transdate < date '$form->{datefrom}'
361
		  |;
362
      $sth = $dbh->prepare($query);
363
      $sth->execute || $form->dberror($query);
364

  
365
      ($form->{balance}) = $sth->fetchrow_array;
366
      $sth->finish;
367
    }
368
  }
369

  
370 338
  my $false = ($myconfig->{dbdriver} eq 'Pg') ? FALSE: q|'0'|;
371 339

  
372 340
  my $sortorder = join ', ',
......
386 354
  my $query =
387 355
    qq|SELECT ac.oid AS acoid, g.id, 'gl' AS type, $false AS invoice, g.reference, ac.taxkey, c.link,
388 356
                 g.description, ac.transdate, ac.source, ac.trans_id,
389
		 ac.amount, c.accno, c.gifi_accno, g.notes, t.chart_id, ac.oid
357
		 ac.amount, c.accno, g.notes, t.chart_id, ac.oid
390 358
                 $project_columns
391 359
                 FROM gl g, acc_trans ac $project_join, chart c LEFT JOIN tax t ON
392 360
                 (t.chart_id=c.id)
......
396 364
	UNION
397 365
	         SELECT ac.oid AS acoid, a.id, 'ar' AS type, a.invoice, a.invnumber, ac.taxkey, c.link,
398 366
		 ct.name, ac.transdate, ac.source, ac.trans_id,
399
		 ac.amount, c.accno, c.gifi_accno, a.notes, t.chart_id, ac.oid
367
		 ac.amount, c.accno, a.notes, t.chart_id, ac.oid
400 368
                 $project_columns
401 369
		 FROM ar a, acc_trans ac $project_join, customer ct, chart c LEFT JOIN tax t ON
402 370
                 (t.chart_id=c.id)
......
407 375
	UNION
408 376
	         SELECT ac.oid AS acoid, a.id, 'ap' AS type, a.invoice, a.invnumber, ac.taxkey, c.link,
409 377
		 ct.name, ac.transdate, ac.source, ac.trans_id,
410
		 ac.amount, c.accno, c.gifi_accno, a.notes, t.chart_id, ac.oid
378
		 ac.amount, c.accno, a.notes, t.chart_id, ac.oid
411 379
                 $project_columns
412 380
		 FROM ap a, acc_trans ac $project_join, vendor ct, chart c LEFT JOIN tax t ON
413 381
                 (t.chart_id=c.id)
......
588 556
    ($form->{account_description}) = $sth->fetchrow_array;
589 557
    $sth->finish;
590 558
  }
591
  if ($form->{gifi_accno}) {
592
    $query =
593
      qq|SELECT g.description FROM gifi g WHERE g.accno = '$form->{gifi_accno}'|;
594
    $sth = $dbh->prepare($query);
595
    $sth->execute || $form->dberror($query);
596 559

  
597
    ($form->{gifi_account_description}) = $sth->fetchrow_array;
598
    $sth->finish;
599
  }
600 560
  $main::lxdebug->leave_sub();
601 561

  
602 562
  $dbh->disconnect;
SL/RP.pm
339 339
	      $category
340 340
	      ORDER by c.accno|;
341 341

  
342
  if ($form->{accounttype} eq 'gifi') {
343
    $query = qq|SELECT g.accno, g.description, c.category
344
		FROM gifi g
345
		JOIN chart c ON (c.gifi_accno = g.accno)
346
		WHERE c.charttype = 'H'
347
		$category
348
		ORDER BY g.accno|;
349
  }
350

  
351 342
  $sth = $dbh->prepare($query);
352 343
  $sth->execute || $form->dberror($query);
353 344

  
......
392 383
		 |;
393 384
  }
394 385

  
395
  if ($form->{accounttype} eq 'gifi') {
396

  
397
    if ($form->{method} eq 'cash') {
398

  
399
      $query = qq|
400

  
401
	         SELECT g.accno, sum(ac.amount) AS amount,
402
		 g.description, c.category
403
		 FROM acc_trans ac
404
	         JOIN chart c ON (c.id = ac.chart_id)
405
	         JOIN ar a ON (a.id = ac.trans_id)
406
	         JOIN gifi g ON (g.accno = c.gifi_accno)
407
	         $dpt_join
408
		 WHERE $where
409
		 $dpt_where
410
		 $category
411
		 AND ac.trans_id IN
412
		   (
413
		     SELECT trans_id
414
		     FROM acc_trans
415
		     JOIN chart ON (chart_id = id)
416
		     WHERE link LIKE '%AR_paid%'
417
		     $subwhere
418
		   )
419
		 $project
420
		 GROUP BY g.accno, g.description, c.category
421

  
422
       UNION ALL
423

  
424
		 SELECT '' AS accno, SUM(ac.amount) AS amount,
425
		 '' AS description, c.category
426
		 FROM acc_trans ac
427
	         JOIN chart c ON (c.id = ac.chart_id)
428
	         JOIN ar a ON (a.id = ac.trans_id)
429
	         $dpt_join
430
		 WHERE $where
431
		 $dpt_where
432
		 $category
433
		 AND c.gifi_accno = ''
434
		 AND ac.trans_id IN
435
		   (
436
		     SELECT trans_id
437
		     FROM acc_trans
438
		     JOIN chart ON (chart_id = id)
439
		     WHERE link LIKE '%AR_paid%'
440
		     $subwhere
441
		   )
442
		 $project
443
		 GROUP BY c.category
444

  
445
       UNION ALL
446

  
447
       	         SELECT g.accno, sum(ac.amount) AS amount,
448
		 g.description, c.category
449
		 FROM acc_trans ac
450
	         JOIN chart c ON (c.id = ac.chart_id)
451
	         JOIN ap a ON (a.id = ac.trans_id)
452
	         JOIN gifi g ON (g.accno = c.gifi_accno)
453
	         $dpt_join
454
		 WHERE $where
455
		 $dpt_where
456
		 $category
457
		 AND ac.trans_id IN
458
		   (
459
		     SELECT trans_id
460
		     FROM acc_trans
461
		     JOIN chart ON (chart_id = id)
462
		     WHERE link LIKE '%AP_paid%'
463
		     $subwhere
464
		   )
465
		 $project
466
		 GROUP BY g.accno, g.description, c.category
467

  
468
       UNION ALL
469

  
470
		 SELECT '' AS accno, SUM(ac.amount) AS amount,
471
		 '' AS description, c.category
472
		 FROM acc_trans ac
473
	         JOIN chart c ON (c.id = ac.chart_id)
474
	         JOIN ap a ON (a.id = ac.trans_id)
475
	         $dpt_join
476
		 WHERE $where
477
		 $dpt_where
478
		 $category
479
		 AND c.gifi_accno = ''
480
		 AND ac.trans_id IN
481
		   (
482
		     SELECT trans_id
483
		     FROM acc_trans
484
		     JOIN chart ON (chart_id = id)
485
		     WHERE link LIKE '%AP_paid%'
486
		     $subwhere
487
		   )
488
		 $project
489
		 GROUP BY c.category
490

  
491
       UNION ALL
492

  
493
-- add gl
494

  
495
	         SELECT g.accno, sum(ac.amount) AS amount,
496
		 g.description, c.category
497
		 FROM acc_trans ac
498
	         JOIN chart c ON (c.id = ac.chart_id)
499
	         JOIN gifi g ON (g.accno = c.gifi_accno)
500
	         JOIN gl a ON (a.id = ac.trans_id)
501
	         $dpt_join
502
		 WHERE $where
503
		 $glwhere
504
		 $dpt_where
505
		 $category
506
		 AND NOT (c.link = 'AR' OR c.link = 'AP')
507
		 $project
508
		 GROUP BY g.accno, g.description, c.category
509

  
510
       UNION ALL
511

  
512
		 SELECT '' AS accno, SUM(ac.amount) AS amount,
513
		 '' AS description, c.category
514
		 FROM acc_trans ac
515
	         JOIN chart c ON (c.id = ac.chart_id)
516
	         JOIN gl a ON (a.id = ac.trans_id)
517
	         $dpt_join
518
		 WHERE $where
519
		 $glwhere
520
		 $dpt_where
521
		 $category
522
		 AND c.gifi_accno = ''
523
		 AND NOT (c.link = 'AR' OR c.link = 'AP')
524
		 $project
525
		 GROUP BY c.category
526
		 |;
527

  
528
      if ($form->{project_id}) {
529

  
530
        $query .= qq|
531

  
532
       UNION ALL
533

  
534
		 SELECT g.accno AS accno, SUM(ac.sellprice * ac.qty) AS amount,
535
		 g.description AS description, c.category
536
		 FROM invoice ac
537
	         JOIN ar a ON (a.id = ac.trans_id)
538
		 JOIN parts p ON (ac.parts_id = p.id)
539
		 JOIN chart c on (p.income_accno_id = c.id)
540
	         JOIN gifi g ON (g.accno = c.gifi_accno)
541
	         $dpt_join
542
	-- use transdate from subwhere
543
		 WHERE 1 = 1 $subwhere
544
		 AND c.category = 'I'
545
		 $dpt_where
546
		 AND ac.trans_id IN
547
		   (
548
		     SELECT trans_id
549
		     FROM acc_trans
550
		     JOIN chart ON (chart_id = id)
551
		     WHERE link LIKE '%AR_paid%'
552
		     $subwhere
553
		   )
554
		 $project
555
		 GROUP BY g.accno, g.description, c.category
556

  
557
       UNION ALL
558

  
559
		 SELECT g.accno AS accno, SUM(ac.sellprice * ac.qty) * -1 AS amount,
560
		 g.description AS description, c.category
561
		 FROM invoice ac
562
	         JOIN ap a ON (a.id = ac.trans_id)
563
		 JOIN parts p ON (ac.parts_id = p.id)
564
		 JOIN chart c on (p.expense_accno_id = c.id)
565
	         JOIN gifi g ON (g.accno = c.gifi_accno)
566
	         $dpt_join
567
		 WHERE 1 = 1 $subwhere
568
		 AND c.category = 'E'
569
		 $dpt_where
570
		 AND ac.trans_id IN
571
		   (
572
		     SELECT trans_id
573
		     FROM acc_trans
574
		     JOIN chart ON (chart_id = id)
575
		     WHERE link LIKE '%AP_paid%'
576
		     $subwhere
577
		   )
578
		 $project
579
		 GROUP BY g.accno, g.description, c.category
580
		 |;
581
      }
582

  
583
    } else {
584

  
585
      if ($department_id) {
586
        $dpt_join = qq|
587
	      JOIN dpt_trans t ON (t.trans_id = ac.trans_id)
588
	      |;
589
        $dpt_where = qq|
590
               AND t.department_id = $department_id
591
	      |;
592

  
593
      }
594

  
595
      $query = qq|
596

  
597
	      SELECT g.accno, SUM(ac.amount) AS amount,
598
	      g.description, c.category
599
	      FROM acc_trans ac
600
	      JOIN chart c ON (c.id = ac.chart_id)
601
	      JOIN gifi g ON (c.gifi_accno = g.accno)
602
	      $dpt_join
603
	      WHERE $where
604
	      $dpt_from
605
	      $category
606
	      $project
607
	      GROUP BY g.accno, g.description, c.category
608

  
609
	   UNION ALL
610

  
611
	      SELECT '' AS accno, SUM(ac.amount) AS amount,
612
	      '' AS description, c.category
613
	      FROM acc_trans ac
614
	      JOIN chart c ON (c.id = ac.chart_id)
615
	      $dpt_join
616
	      WHERE $where
617
	      $dpt_from
618
	      $category
619
	      AND c.gifi_accno = ''
620
	      $project
621
	      GROUP BY c.category
622
	      |;
623

  
624
      if ($form->{project_id}) {
625

  
626
        $query .= qq|
627

  
628
	 UNION ALL
629

  
630
		 SELECT g.accno AS accno, SUM(ac.sellprice * ac.qty) AS amount,
631
		 g.description AS description, c.category
632
		 FROM invoice ac
633
	         JOIN ar a ON (a.id = ac.trans_id)
634
		 JOIN parts p ON (ac.parts_id = p.id)
635
		 JOIN chart c on (p.income_accno_id = c.id)
636
		 JOIN gifi g ON (c.gifi_accno = g.accno)
637
	         $dpt_join
638
	-- use transdate from subwhere
639
		 WHERE 1 = 1 $subwhere
640
		 AND c.category = 'I'
641
		 $dpt_where
642
		 $project
643
		 GROUP BY g.accno, g.description, c.category
644

  
645
       UNION ALL
646

  
647
		 SELECT g.accno AS accno, SUM(ac.sellprice * ac.qty) * -1 AS amount,
648
		 g.description AS description, c.category
649
		 FROM invoice ac
650
	         JOIN ap a ON (a.id = ac.trans_id)
651
		 JOIN parts p ON (ac.parts_id = p.id)
652
		 JOIN chart c on (p.expense_accno_id = c.id)
653
		 JOIN gifi g ON (c.gifi_accno = g.accno)
654
	         $dpt_join
655
		 WHERE 1 = 1 $subwhere
656
		 AND c.category = 'E'
657
		 $dpt_where
658
		 $project
659
		 GROUP BY g.accno, g.description, c.category
660
		 |;
661
      }
662

  
663
    }
664

  
665
  } else {    # standard account
386
  {    # standard account
666 387

  
667 388
    if ($form->{method} eq 'cash') {
668 389

  
......
1199 920
  # get beginning balances
1200 921
  if ($form->{fromdate}) {
1201 922

  
1202
    if ($form->{accounttype} eq 'gifi') {
1203

  
1204
      $query = qq|SELECT g.accno, c.category, SUM(ac.amount) AS amount,
1205
                  g.description
1206
		  FROM acc_trans ac
1207
		  JOIN chart c ON (ac.chart_id = c.id)
1208
		  JOIN gifi g ON (c.gifi_accno = g.accno)
1209
		  $dpt_join
1210
		  WHERE ac.transdate < '$form->{fromdate}'
1211
		  $dpt_where
1212
		  $project
1213
		  GROUP BY g.accno, c.category, g.description
1214
		  |;
1215

  
1216
    } else {
1217

  
1218
      $query = qq|SELECT c.accno, c.category, SUM(ac.amount) AS amount,
923
    $query = qq|SELECT c.accno, c.category, SUM(ac.amount) AS amount,
1219 924
                  c.description
1220 925
		  FROM acc_trans ac
1221 926
		  JOIN chart c ON (ac.chart_id = c.id)
......
1226 931
		  GROUP BY c.accno, c.category, c.description
1227 932
		  |;
1228 933

  
1229
    }
1230

  
1231 934
    $sth = $dbh->prepare($query);
1232 935
    $sth->execute || $form->dberror($query);
1233 936

  
......
1251 954
	      WHERE c.charttype = 'H'
1252 955
	      ORDER by c.accno|;
1253 956

  
1254
  if ($form->{accounttype} eq 'gifi') {
1255
    $query = qq|SELECT g.accno, g.description, c.category
1256
		FROM gifi g
1257
		JOIN chart c ON (c.gifi_accno = g.accno)
1258
		WHERE c.charttype = 'H'
1259
		ORDER BY g.accno|;
1260
  }
1261

  
1262 957
  $sth = $dbh->prepare($query);
1263 958
  $sth->execute || $form->dberror($query);
1264 959

  
......
1311 1006
    $where .= $tofrom;
1312 1007
  }
1313 1008

  
1314
  if ($form->{accounttype} eq 'gifi') {
1315

  
1316
    $query = qq|SELECT g.accno, g.description, c.category,
1317
                SUM(ac.amount) AS amount
1318
		FROM acc_trans ac
1319
		JOIN chart c ON (c.id = ac.chart_id)
1320
		JOIN gifi g ON (c.gifi_accno = g.accno)
1321
		$dpt_join
1322
		WHERE $where
1323
		$dpt_where
1324
		$project
1325
		GROUP BY g.accno, g.description, c.category
1326
		|;
1327

  
1328
    if ($form->{project_id}) {
1329

  
1330
      $query .= qq|
1331

  
1332
	-- add project transactions from invoice
1333

  
1334
	UNION ALL
1335

  
1336
	        SELECT g.accno, g.description, c.category,
1337
		SUM(ac.sellprice * ac.qty) AS amount
1338
		FROM invoice ac
1339
		JOIN ar a ON (ac.trans_id = a.id)
1340
		JOIN parts p ON (ac.parts_id = p.id)
1341
		JOIN chart c ON (p.income_accno_id = c.id)
1342
		JOIN gifi g ON (c.gifi_accno = g.accno)
1343
		$dpt_join
1344
		WHERE $invwhere
1345
		$dpt_where
1346
		$project
1347
		GROUP BY g.accno, g.description, c.category
1348

  
1349
	UNION ALL
1350

  
1351
	        SELECT g.accno, g.description, c.category,
1352
		SUM(ac.sellprice * ac.qty) * -1 AS amount
1353
		FROM invoice ac
1354
		JOIN ap a ON (ac.trans_id = a.id)
1355
		JOIN parts p ON (ac.parts_id = p.id)
1356
		JOIN chart c ON (p.expense_accno_id = c.id)
1357
		JOIN gifi g ON (c.gifi_accno = g.accno)
1358
		$dpt_join
1359
		WHERE $invwhere
1360
		$dpt_where
1361
		$project
1362
		GROUP BY g.accno, g.description, c.category
1363
		|;
1364
    }
1365

  
1366
    $query .= qq|
1367
		ORDER BY accno|;
1368

  
1369
  } else {
1009
  {
1370 1010

  
1371 1011
    $query = qq|SELECT c.accno, c.description, c.category,
1372 1012
                SUM(ac.amount) AS amount
......
1445 1085
	      AND c.accno = ?) AS credit
1446 1086
	      |;
1447 1087

  
1448
  if ($form->{accounttype} eq 'gifi') {
1449

  
1450
    $query = qq|SELECT (SELECT SUM(ac.amount) * -1
1451
		FROM acc_trans ac
1452
		JOIN chart c ON (c.id = ac.chart_id)
1453
		$dpt_join
1454
		WHERE $where
1455
		$dpt_where
1456
		$project
1457
		AND ac.amount < 0
1458
		AND c.gifi_accno = ?) AS debit,
1459

  
1460
	       (SELECT SUM(ac.amount)
1461
		FROM acc_trans ac
1462
		JOIN chart c ON (c.id = ac.chart_id)
1463
		$dpt_join
1464
		WHERE $where
1465
		$dpt_where
1466
		$project
1467
		AND ac.amount > 0
1468
		AND c.gifi_accno = ?) AS credit|;
1469

  
1470
  }
1471

  
1472 1088
  $drcr = $dbh->prepare($query);
1473 1089

  
1474 1090
  if ($form->{project_id}) {
......
1787 1403
  }
1788 1404
  $sth->finish;
1789 1405

  
1790
  # get gifi tax accounts
1791
  $query = qq|SELECT DISTINCT ON (g.accno) g.accno, g.description,
1792
                 sum(t.rate) AS rate
1793
                 FROM gifi g, chart c, tax t
1794
		 WHERE g.accno = c.gifi_accno
1795
		 AND c.id = t.chart_id
1796
		 AND c.link LIKE '%CT_tax%'
1797
		 GROUP BY g.accno, g.description
1798
                 ORDER BY accno|;
1799
  $sth = $dbh->prepare($query);
1800
  $sth->execute || $form->dberror;
1801

  
1802
  while ($ref = $sth->fetchrow_hashref(NAME_lc)) {
1803
    push @{ $form->{gifi_taxaccounts} }, $ref;
1804
  }
1805
  $sth->finish;
1806

  
1807 1406
  $dbh->disconnect;
1808 1407

  
1809 1408
  $main::lxdebug->leave_sub();
......
1831 1430
  my ($accno, $rate);
1832 1431

  
1833 1432
  if ($form->{accno}) {
1834
    if ($form->{accno} =~ /^gifi_/) {
1835
      ($null, $accno) = split /_/, $form->{accno};
1836
      $rate  = $form->{"$form->{accno}_rate"};
1837
      $accno = qq| AND ch.gifi_accno = '$accno'|;
1838
    } else {
1839
      $accno = $form->{accno};
1840
      $rate  = $form->{"$form->{accno}_rate"};
1841
      $accno = qq| AND ch.accno = '$accno'|;
1842
    }
1433
    $accno = $form->{accno};
1434
    $rate  = $form->{"$form->{accno}_rate"};
1435
    $accno = qq| AND ch.accno = '$accno'|;
1843 1436
  }
1844 1437
  $rate *= 1;
1845 1438

  
SL/User.pm
411 411
  my $filename = qq|sql/lx-office.sql|;
412 412
  $self->process_query($form, $dbh, $filename);
413 413

  
414
  # load gifi
415
  ($filename) = split /_/, $form->{chart};
416
  $filename =~ s/_//;
417
  $self->process_query($form, $dbh, "sql/${filename}-gifi.sql");
418

  
419 414
  # load chart of accounts
420 415
  $filename = qq|sql/$form->{chart}-chart.sql|;
421 416
  $self->process_query($form, $dbh, $filename);
bin/mozilla/ca.pl
71 71

  
72 72
  CA->all_accounts(\%myconfig, \%$form);
73 73

  
74
  @column_index = qw(accno gifi_accno description debit credit);
74
  @column_index = qw(accno description debit credit);
75 75

  
76 76
  $column_header{accno} =
77 77
    qq|<th class=listheading>| . $locale->text('Account') . qq|</th>\n|;
78
  $column_header{gifi_accno} =
79
    qq|<th class=listheading>| . $locale->text('GIFI') . qq|</th>\n|;
80 78
  $column_header{description} =
81 79
    qq|<th class=listheading>| . $locale->text('Description') . qq|</th>\n|;
82 80
  $column_header{debit} =
......
107 105
  foreach $ca (@{ $form->{CA} }) {
108 106

  
109 107
    $description      = $form->escape($ca->{description});
110
    $gifi_description = $form->escape($ca->{gifi_description});
111 108

  
112 109
    $href =
113
      qq|$form->{script}?path=$form->{path}&action=list&accno=$ca->{accno}&login=$form->{login}&password=$form->{password}&description=$description&gifi_accno=$ca->{gifi_accno}&gifi_description=$gifi_description|;
110
      qq|$form->{script}?path=$form->{path}&action=list&accno=$ca->{accno}&login=$form->{login}&password=$form->{password}&description=$description|;
114 111

  
115 112
    if ($ca->{charttype} eq "H") {
116 113
      print qq|<tr class=listheading>|;
117 114
      map { $column_data{$_} = "<th>$ca->{$_}</th>"; } qw(accno description);
118
      $column_data{gifi_accno} = "<th>$ca->{gifi_accno}&nbsp;</th>";
119 115
    } else {
120 116
      $i++;
121 117
      $i %= 2;
122 118
      print qq|<tr class=listrow$i>|;
123 119
      $column_data{accno}      = "<td><a href=$href>$ca->{accno}</a></td>";
124
      $column_data{gifi_accno} =
125
        "<td><a href=$href&accounttype=gifi>$ca->{gifi_accno}</a>&nbsp;</td>";
126 120
      $column_data{description} = "<td>$ca->{description}</td>";
127 121
    }
128 122
    my $debit = "";
......
153 147
  }
154 148

  
155 149
  map { $column_data{$_} = "<td>&nbsp;</td>"; }
156
    qw(accno gifi_accno description);
150
    qw(accno description);
157 151

  
158 152
  $column_data{debit} =
159 153
    "<th align=right class=listtotal>"
......
184 178
  $lxdebug->enter_sub();
185 179

  
186 180
  $form->{title} = $locale->text('List Transactions');
187
  if ($form->{accounttype} eq 'gifi') {
188
    $form->{title} .= " - " . $locale->text('GIFI') . " $form->{gifi_accno}";
189
  } else {
190
    $form->{title} .= " - " . $locale->text('Account') . " $form->{accno}";
191
  }
181
  $form->{title} .= " - " . $locale->text('Account') . " $form->{accno}";
192 182

  
193 183
  # get departments
194 184
  $form->all_departments(\%myconfig);
......
210 200

  
211 201
  $form->header;
212 202

  
213
  map { $form->{$_} =~ s/\"/&quot;/g; } qw(description gifi_description);
203
  $form->{description} =~ s/\"/&quot;/g;
214 204

  
215 205
  print qq|
216 206
<body>
......
222 212
<input type=hidden name=sort value=transdate>
223 213
<input type=hidden name=eur value=$eur>
224 214
<input type=hidden name=accounttype value=$form->{accounttype}>
225
<input type=hidden name=gifi_accno value=$form->{gifi_accno}>
226
<input type=hidden name=gifi_description value="$form->{gifi_description}">
227 215

  
228 216
<table border=0 width=100%>
229 217
  <tr><th class=listtop>$form->{title}</th></tr>
......
271 259
  CA->all_transactions(\%myconfig, \%$form);
272 260

  
273 261
  $description      = $form->escape($form->{description});
274
  $gifi_description = $form->escape($form->{gifi_description});
275 262
  $department       = $form->escape($form->{department});
276 263
  $projectnumber    = $form->escape($form->{projectnumber});
277 264
  $title            = $form->escape($form->{title});
278 265

  
279 266
  # construct href
280 267
  $href =
281
    "$form->{script}?path=$form->{path}&action=list_transactions&accno=$form->{accno}&login=$form->{login}&password=$form->{password}&fromdate=$form->{fromdate}&todate=$form->{todate}&description=$description&accounttype=$form->{accounttype}&gifi_accno=$form->{gifi_accno}&gifi_description=$gifi_description&l_heading=$form->{l_heading}&l_subtotal=$form->{l_subtotal}&department=$department&projectnumber=$projectnumber&project_id=$form->{project_id}&title=$title";
268
    "$form->{script}?path=$form->{path}&action=list_transactions&accno=$form->{accno}&login=$form->{login}&password=$form->{password}&fromdate=$form->{fromdate}&todate=$form->{todate}&description=$description&accounttype=$form->{accounttype}&l_heading=$form->{l_heading}&l_subtotal=$form->{l_subtotal}&department=$department&projectnumber=$projectnumber&project_id=$form->{project_id}&title=$title";
282 269

  
283 270
  $description      = $form->escape($form->{description},      1);
284
  $gifi_description = $form->escape($form->{gifi_description}, 1);
285 271
  $department       = $form->escape($form->{department},       1);
286 272
  $projectnumber    = $form->escape($form->{projectnumber},    1);
287 273
  $title            = $form->escape($form->{title},            1);
288 274

  
289 275
  # construct callback
290 276
  $callback =
291
    "$form->{script}?path=$form->{path}&action=list_transactions&accno=$form->{accno}&login=$form->{login}&password=$form->{password}&fromdate=$form->{fromdate}&todate=$form->{todate}&description=$description&accounttype=$form->{accounttype}&gifi_accno=$form->{gifi_accno}&gifi_description=$gifi_description&l_heading=$form->{l_heading}&l_subtotal=$form->{l_subtotal}&department=$department&projectnumber=$projectnumber&project_id=$form->{project_id}&title=$title";
277
    "$form->{script}?path=$form->{path}&action=list_transactions&accno=$form->{accno}&login=$form->{login}&password=$form->{password}&fromdate=$form->{fromdate}&todate=$form->{todate}&description=$description&accounttype=$form->{accounttype}&l_heading=$form->{l_heading}&l_subtotal=$form->{l_subtotal}&department=$department&projectnumber=$projectnumber&project_id=$form->{project_id}&title=$title";
292 278

  
293 279
  # figure out which column comes first
294 280
  $column_header{transdate} =
......
310 296
  @column_index =
311 297
    $form->sort_columns(qw(transdate reference description debit credit));
312 298

  
313
  if ($form->{accounttype} eq 'gifi') {
314
    map { $form->{$_} = $form->{"gifi_$_"} } qw(accno description);
315
  }
316 299
  if ($form->{accno}) {
317 300
    push @column_index, "balance";
318 301
  }
319 302

  
320
  $form->{title} =
321
    ($form->{accounttype} eq 'gifi')
322
    ? $locale->text('GIFI')
323
    : $locale->text('Account');
324

  
325
  $form->{title} .= " $form->{accno} - $form->{description}";
303
  $form->{title} = $locale->text('Account') .
304
    " $form->{accno} - $form->{description}";
326 305

  
327 306
  if ($form->{department}) {
328 307
    ($department) = split /--/, $form->{department};
bin/mozilla/gl.pl
339 339
		    <td>| . $locale->text('Source') . qq|</td>
340 340
		    <td align=right><input name="l_accno" class=checkbox type=checkbox value=Y checked></td>
341 341
		    <td>| . $locale->text('Account') . qq|</td>
342
		    <td align=right><input name="l_gifi_accno" class=checkbox type=checkbox value=Y></td>
343
		    <td>| . $locale->text('GIFI') . qq|</td>
344 342
		  </tr>
345 343
		  <tr>
346 344
		    <td align=right><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
......
412 410
      $locale->text('Account')
413 411
      . " : $form->{accno} $form->{account_description}";
414 412
  }
415
  if ($form->{gifi_accno}) {
416
    $href     .= "&gifi_accno=" . $form->escape($form->{gifi_accno});
417
    $callback .= "&gifi_accno=" . $form->escape($form->{gifi_accno}, 1);
418
    $option   .= "\n<br>" if $option;
419
    $option   .=
420
      $locale->text('GIFI')
421
      . " : $form->{gifi_accno} $form->{gifi_account_description}";
422
  }
423 413
  if ($form->{source}) {
424 414
    $href     .= "&source=" . $form->escape($form->{source});
425 415
    $callback .= "&source=" . $form->escape($form->{source}, 1);
......
482 472
       transdate       id                reference         description  
483 473
       notes           source            debit             debit_accno  
484 474
       credit          credit_accno      debit_tax         debit_tax_accno
485
       credit_tax      credit_tax_accno  accno             gifi_accno
475
       credit_tax      credit_tax_accno  accno
486 476
       projectnumbers  
487 477
       )
488 478
  );
489 479

  
490
  if ($form->{accno} || $form->{gifi_accno}) {
491
    @columns = grep !/(accno|gifi_accno)/, @columns;
480
  if ($form->{accno}) {
481
    @columns = grep !/accno/, @columns;
492 482
    push @columns, "balance";
493 483
    $form->{l_balance} = "Y";
494 484

  
......
569 559
      "<th><a class=listheading href=$href&sort=accno>"
570 560
    . $locale->text('Credit Tax Account')
571 561
    . "</a></th>";
572
  $column_header{gifi_accno} =
573
      "<th><a class=listheading href=$href&sort=gifi_accno>"
574
    . $locale->text('GIFI')
575
    . "</a></th>";
576 562
  $column_header{balance} = "<th>" . $locale->text('Balance') . "</th>";
577 563
  $column_header{projectnumbers} =
578 564
      "<th class=listheading>"  . $locale->text('Project Numbers') . "</th>";
......
617 603
    $sameitem = $form->{GL}->[0]->{ $form->{sort} };
618 604
  }
619 605

  
620
  if (($form->{accno} || $form->{gifi_accno}) && $form->{balance}) {
606
  if ($form->{accno} && $form->{balance}) {
621 607

  
622 608
    map { $column_data{$_} = "<td>&nbsp;</td>" } @column_index;
623 609
    $column_data{balance} =
......
793 779
      ? "<td align=right>$debittax</td>"
794 780
      : "<td></td>";
795 781
    $column_data{debit_tax_accno} = "<td align=center>$debittaxaccno</td>";
796
    $column_data{gifi_accno}      =
797
      "<td><a href=$href&gifi_accno=$ref->{gifi_accno}&callback=$callback>$ref->{gifi_accno}</a>&nbsp;</td>";
798 782
    $column_data{credit_tax} =
799 783
      ($ref->{credit_tax_accno} ne "")
800 784
      ? "<td align=right>$credittax</td>"
801 785
      : "<td></td>";
802 786
    $column_data{credit_tax_accno} = "<td align=center>$credittaxaccno</td>";
803
    $column_data{gifi_accno}       =
804
      "<td><a href=$href&gifi_accno=$ref->{gifi_accno}&callback=$callback>$ref->{gifi_accno}</a>&nbsp;</td>";
805 787
    $column_data{balance} =
806 788
      "<td align=right>"
807 789
      . $form->format_amount(\%myconfig, $form->{balance}, 2, 0) . "</td>";
bin/mozilla/rp.pl
703 703
  }
704 704

  
705 705
  if ($form->{report} =~ /^tax_/) {
706
    $gifi = "";
707

  
708 706
    $form->{db} = ($form->{report} =~ /_collected/) ? "ar" : "ap";
709 707

  
710 708
    RP->get_taxaccounts(\%myconfig, \%$form);
......
741 739

  
742 740
	  </td>
743 741
	</tr>
744
|;
745

  
746
    if (@{ $form->{gifi_taxaccounts} }) {
747
      print qq|
748
        <tr>
749
	  <th align=right>| . $locale->text('GIFI') . qq|</th>
750
	  <td colspan=3>
751
|;
752

  
753
      foreach $ref (@{ $form->{gifi_taxaccounts} }) {
754

  
755
        print
756
          qq|<input name=accno class=radio type=radio value="gifi_$ref->{accno}">&nbsp;$ref->{description}
757

  
758
      <input name="gifi_$ref->{accno}_description" type=hidden value="$ref->{description}">
759
      <input name="gifi_$ref->{accno}_rate" type=hidden value="$ref->{rate}">|;
760

  
761
      }
762

  
763
      print qq|
764
	  </td>
765
	</tr>
766
|;
767
    }
768

  
769
    print qq|
770 742
	<tr>
771 743
	  <th align=right>| . $locale->text('Method') . qq|</th>
772 744
	  <td colspan=3><input name=method class=radio type=radio value=accrual $accrual>|
......
823 795
  }
824 796

  
825 797
  if ($form->{report} =~ /^nontaxable_/) {
826
    $gifi = "";
827

  
828 798
    $form->{db} = ($form->{report} =~ /_sales/) ? "ar" : "ap";
829 799

  
830 800
    print qq|
......
888 858
  }
889 859

  
890 860
  if (($form->{report} eq "ar_aging") || ($form->{report} eq "ap_aging")) {
891
    $gifi = "";
892

  
893 861
    if ($form->{report} eq 'ar_aging') {
894 862
      $label = $locale->text('Customer');
895 863
      $form->{vc} = 'customer';
......
938 906
  # above action can be removed if there is more than one input field
939 907

  
940 908
  if ($form->{report} =~ /(receipts|payments)$/) {
941
    $gifi = "";
942

  
943 909
    $form->{db} = ($form->{report} =~ /payments$/) ? "ap" : "ar";
944 910

  
945 911
    RP->paymentaccounts(\%myconfig, \%$form);
......
1358 1324
  $column_header{endbalance} =
1359 1325
    qq|<th class=listheading>| . $locale->text('Balance') . qq|</th>|;
1360 1326

  
1361
  if ($form->{accounttype} eq 'gifi') {
1362
    $column_header{accno} =
1363
      qq|<th class=listheading>| . $locale->text('GIFI') . qq|</th>|;
1364
  }
1365

  
1366 1327
  $form->header;
1367 1328

  
1368 1329
  print qq|
......
1393 1354
    $description = $form->escape($ref->{description});
1394 1355

  
1395 1356
    $href =
1396
      qq|ca.pl?path=$form->{path}&action=list_transactions&accounttype=$form->{accounttype}&login=$form->{login}&password=$form->{password}&fromdate=$form->{fromdate}&todate=$form->{todate}&sort=transdate&l_heading=$form->{l_heading}&l_subtotal=$form->{l_subtotal}&department=$department&eur=$form->{eur}&projectnumber=$projectnumber&project_id=$form->{project_id}&title=$title&nextsub=$form->{nextsub}|;
1397

  
1398
    if ($form->{accounttype} eq 'gifi') {
1399
      $href .= "&gifi_accno=$ref->{accno}&gifi_description=$description";
1400
      $na = $locale->text('N/A');
1401
      map { $ref->{$_} = $na } qw(accno description) unless $ref->{accno};
1402
    } else {
1403
      $href .= "&accno=$ref->{accno}&description=$description";
1404
    }
1357
      qq|ca.pl?path=$form->{path}&action=list_transactions&accounttype=$form->{accounttype}&login=$form->{login}&password=$form->{password}&fromdate=$form->{fromdate}&todate=$form->{todate}&sort=transdate&l_heading=$form->{l_heading}&l_subtotal=$form->{l_subtotal}&department=$department&eur=$form->{eur}&projectnumber=$projectnumber&project_id=$form->{project_id}&title=$title&nextsub=$form->{nextsub}&accno=$ref->{accno}&description=$description";
1405 1358

  
1406 1359
    $ml = ($ref->{category} =~ /(A|C|E)/) ? -1 : 1;
1407 1360

  
......
2167 2120
  $description = $form->escape($form->{$descvar});
2168 2121
  $ratevar     = "$form->{accno}_rate";
2169 2122

  
2170
  if ($form->{accno} =~ /^gifi_/) {
2171
    $descvar     = "gifi_$form->{accno}_description";
2172
    $description = $form->escape($form->{$descvar});
2173
    $ratevar     = "gifi_$form->{accno}_rate";
2174
  }
2175

  
2176 2123
  $department = $form->escape($form->{department});
2177 2124

  
2178 2125
  # construct href
......
2185 2132
  $callback    =
2186 2133
    "$form->{script}?path=$form->{path}&action=generate_tax_report&login=$form->{login}&password=$form->{password}&fromdate=$form->{fromdate}&todate=$form->{todate}&db=$form->{db}&method=$form->{method}&accno=$form->{accno}&$descvar=$description&department=$department&$ratevar=$taxrate&report=$form->{report}";
2187 2134

  
2188
  $form->{title} = $locale->text('GIFI') . " - "
2189
    if ($form->{accno} =~ /^gifi_/);
2190

  
2191 2135
  $title = $form->escape($form->{title});
2192 2136
  $href .= "&title=$title";
2193 2137
  $title = $form->escape($form->{title}, 1);
locale/de/all
493 493
  'Free report period'          => 'Freier Zeitraum',
494 494
  'Fristsetzung'                => 'Fristsetzung',
495 495
  'From'                        => 'Von',
496
  'GIFI'                        => 'GIFI',
497 496
  'GL Transaction'              => 'Dialogbuchung',
498 497
  'General Ledger'              => 'Finanzbuchhaltung',
499 498
  'Gesch?ftsvolumen'            => 'Gesch?ftsvolumen',
......
677 676
  'Multibyte Encoding'          => 'Schriftsatz',
678 677
  'MwSt. inkl.'                 => 'MwSt. inkl.',
679 678
  'M?chten Sie Ihre Suche <b>spezialisieren</b>?' => 'M?chten Sie Ihre Suche <b>spezialisieren</b>?',
680
  'N/A'                         => 'N.Z.',
681 679
  'Name'                        => 'Name',
682 680
  'Name missing!'               => 'Name fehlt!',
683 681
  'National'                    => 'Inand',
......
993 991
  'Tax collected'               => 'vereinnahmte Steuer',
994 992
  'Tax number'                  => 'Steuernummer',
995 993
  'Tax paid'                    => 'Vorsteuer',
996
  'Taxable'                     => 'Steuerpflichtig',
997 994
  'Taxaccount'                  => 'Steuer Konto',
998 995
  'Taxation'                    => 'Versteuerungs Verfahren',
999 996
  'Taxdescription'              => 'Steuerkonto<br />Beschreibung',
locale/de/ca
16 16
  'Feb'                         => 'Feb',
17 17
  'February'                    => 'Februar',
18 18
  'From'                        => 'Von',
19
  'GIFI'                        => 'GIFI',
20 19
  'Include in Report'           => 'In Bericht aufnehmen',
21 20
  'Jan'                         => 'Jan',
22 21
  'January'                     => 'Januar',
locale/de/ct
43 43
  'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s',
44 44
  'Fax'                         => 'Fax',
45 45
  'From'                        => 'Von',
46
  'GIFI'                        => 'GIFI',
47 46
  'Given Name'                  => 'Vorname',
48 47
  'Greeting'                    => 'Anrede',
49 48
  'History'                     => 'Historie',
......
118 117
  'Shipping Address'            => 'Lieferadresse',
119 118
  'Steuersatz'                  => 'Steuersatz',
120 119
  'Street'                      => 'Stra?e',
121
  'Tax Included'                => 'Steuer im Preis inbegriffen',
122 120
  'Tax Number'                  => 'Steuernummer',
123 121
  'Tax Number / SSN'            => 'Steuernummer',
124
  'Taxable'                     => 'Steuerpflichtig',
125 122
  'The \'tag\' field must only consist of alphanumeric characters or the carachters - _ ( )' => 'Das Feld \'tag\' darf nur aus alphanumerischen Zeichen und den Zeichen - _ ( ) bestehen.',
126 123
  'This customer number is already in use.' => 'Diese Kundennummer wird bereits verwendet.',
127 124
  'This vendor number is already in use.' => 'Diese Lieferantennummer wird bereits verwendet.',
locale/de/gl
60 60
  'Feb'                         => 'Feb',
61 61
  'February'                    => 'Februar',
62 62
  'From'                        => 'Von',
63
  'GIFI'                        => 'GIFI',
64 63
  'GL Transaction'              => 'Dialogbuchung',
65 64
  'General Ledger'              => 'Finanzbuchhaltung',
66 65
  'History'                     => 'Historie',
locale/de/rp
51 51
  'February'                    => 'Februar',
52 52
  'Free report period'          => 'Freier Zeitraum',
53 53
  'From'                        => 'Von',
54
  'GIFI'                        => 'GIFI',
55 54
  'HTML'                        => 'HTML',
56 55
  'Heading'                     => '?berschrift',
57 56
  'History'                     => 'Historie',
......
79 78
  'Missing \'tag\' field.'      => 'Fehlendes Feld \'tag\'.',
80 79
  'Monthly'                     => 'monatlich',
81 80
  'More than one control file with the tag \'%s\' exist.' => 'Es gibt mehr als eine Kontrolldatei mit dem Tag \'%s\'.',
82
  'N/A'                         => 'N.Z.',
83 81
  'Name'                        => 'Name',
84 82
  'No Customer was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Endkunde gefunden',
85 83
  'No Vendor was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein H?ndler gefunden',
lx-erp.conf
81 81
#
82 82
# Beipiel: 
83 83
#   $LXDebug::global_level = LXDebug::TRACE | LXDebug::QUERY;
84
$LXDebug::global_level = LXDebug::NONE;
84
$LXDebug::global_level = LXDebug::ALL;
85 85

  
86 86
1;
87 87

  
sql/Austria-gifi.sql
1
-- ?sterreichischer Einheitskontenrahmen / Kontenplan (?SV ?sterreichischer Steuerverein)
2
--
3
INSERT INTO gifi (accno, description) VALUES ('0', 'Anlageverm?gen und Aufwendungen f?r das Ingangsetzen und Erweitern eines Betriebes');
4
--
5
INSERT INTO gifi (accno, description) VALUES ('00', 'Aufwendungen f?r das Ingangsetzen und Erweitern eines Betriebes');
6
INSERT INTO gifi (accno, description) VALUES ('001', 'Aufwendungen f?r das Ingangsetzen und Erweitern eines Betriebes');
7
INSERT INTO gifi (accno, description) VALUES ('009', 'Kumulierte Abschreibungen');
8
--
9
INSERT INTO gifi (accno, description) VALUES ('01', 'Immaterielle Verm?gensgegenst?nde');
10
INSERT INTO gifi (accno, description) VALUES ('010', 'Konzessionen');
11
INSERT INTO gifi (accno, description) VALUES ('011', 'Patentrechte und Lizenzen');
12
INSERT INTO gifi (accno, description) VALUES ('012', 'Datenverarbeitungsprogramme');
13
INSERT INTO gifi (accno, description) VALUES ('013', 'Marken, Warenzeichen und Musterschutzrechte, sonstige Urheberrechte');
14
INSERT INTO gifi (accno, description) VALUES ('014', 'Pacht- und Mietrechte');
15
INSERT INTO gifi (accno, description) VALUES ('015', 'Gesch?fts(Firmen)wert');
16
INSERT INTO gifi (accno, description) VALUES ('018', 'Geleistete Anzahlungen');
17
INSERT INTO gifi (accno, description) VALUES ('019', 'Kumulierte Abschreibungen');
18
--
19
INSERT INTO gifi (accno, description) VALUES ('02-03', 'Grundst?cke, grundst?cksgleiche Rechte und Bauten, einschlie?lich der Bauten auf fremden Grund');
20
INSERT INTO gifi (accno, description) VALUES ('020', 'Unbebaute Grundst?cke');
21
INSERT INTO gifi (accno, description) VALUES ('021', 'Bebaute Grundst?cke (Grundwert)');
22
INSERT INTO gifi (accno, description) VALUES ('022', 'Grundst?cksgleiche Rechte');
23
INSERT INTO gifi (accno, description) VALUES ('030', 'Betriebs- und Gesch?ftsgeb?ude auf eigenem Grund');
24
INSERT INTO gifi (accno, description) VALUES ('031', 'Wohn- und Sozialgeb?ude auf eigenem Grund');
25
INSERT INTO gifi (accno, description) VALUES ('032', 'Betriebs- und Gesch?ftsgeb?ude auf fremdem Grund');
26
INSERT INTO gifi (accno, description) VALUES ('033', 'Wohn- und Sozialgeb?ude auf fremdem Grund');
27
INSERT INTO gifi (accno, description) VALUES ('034', 'Grundst?ckseinrichtungen auf eigenem Grund');
28
INSERT INTO gifi (accno, description) VALUES ('035', 'Grundst?ckseinrichtungen auf fremdem Grund');
29
INSERT INTO gifi (accno, description) VALUES ('036', 'Bauliche Investitionen in fremden (gepachteten) Betriebs- und Gesch?ftsgeb?uden');
30
INSERT INTO gifi (accno, description) VALUES ('037', 'Bauliche Investitionen in fremden (gepachteten) Wohn- und Sozialgeb?uden');
31
INSERT INTO gifi (accno, description) VALUES ('039', 'Kumulierte Abschreibungen');
32
--
33
INSERT INTO gifi (accno, description) VALUES ('04-05', 'Technische Anlagen und Maschinen');
34
INSERT INTO gifi (accno, description) VALUES ('040', 'Fertigungsmaschinen');
35
INSERT INTO gifi (accno, description) VALUES ('041', 'Antriebsmaschinen');
36
INSERT INTO gifi (accno, description) VALUES ('042', 'Energieversorgungsanlagen');
37
INSERT INTO gifi (accno, description) VALUES ('043', 'Transportanlagen');
38
INSERT INTO gifi (accno, description) VALUES ('044-049', 'Sonstige Maschinen und maschinelle Anlagen');
39
INSERT INTO gifi (accno, description) VALUES ('050', 'Maschinenwerkzeuge');
40
INSERT INTO gifi (accno, description) VALUES ('051', 'Allgemeine Werkzeuge und Handwerkzeuge');
41
INSERT INTO gifi (accno, description) VALUES ('052', 'Vorrichtungen, Formen und Modelle');
42
INSERT INTO gifi (accno, description) VALUES ('053', 'Andere Erzeugungshilfsmittel');
43
INSERT INTO gifi (accno, description) VALUES ('054', 'Hebezeuge und Montageanlagen');
44
INSERT INTO gifi (accno, description) VALUES ('055', 'Geringwertige Verm?gensgegenst?nde, soweit im Erzeugungsproze? verwendet');
45
--
46
INSERT INTO gifi (accno, description) VALUES ('06', 'Andere Anlagen, Betriebs- und Gesch?ftsausstattung');
47
INSERT INTO gifi (accno, description) VALUES ('060', 'Beheizungs- und Beleuchtungsanlagen');
48
INSERT INTO gifi (accno, description) VALUES ('061', 'Nachrichten- und Kontrollanlagen');
49
INSERT INTO gifi (accno, description) VALUES ('062', 'B?romaschinen, EDV-Anlagen');
50
INSERT INTO gifi (accno, description) VALUES ('063', 'PKW');
51
INSERT INTO gifi (accno, description) VALUES ('064', 'LKW');
52
INSERT INTO gifi (accno, description) VALUES ('065', 'Andere Bef?rderungsmittel');
53
INSERT INTO gifi (accno, description) VALUES ('066', 'Andere Betriebs- und Gesch?ftsausstattung');
54
INSERT INTO gifi (accno, description) VALUES ('067', 'Gebinde');
55
INSERT INTO gifi (accno, description) VALUES ('068', 'Geringwertige Verm?gensgegenst?nde, soweit nicht im Erzeugungsproze? verwendet');
56
INSERT INTO gifi (accno, description) VALUES ('069', 'Kumulierte Abschreibungen');
57
--
58
INSERT INTO gifi (accno, description) VALUES ('07', 'Geleistete Anzahlungen und Anlagen in Bau');
59
INSERT INTO gifi (accno, description) VALUES ('070', 'Geleistete Anzahlungen');
60
INSERT INTO gifi (accno, description) VALUES ('071', 'Anlagen in Bau');
61
INSERT INTO gifi (accno, description) VALUES ('079', 'Kumulierte Abschreibungen');
62
--
63
INSERT INTO gifi (accno, description) VALUES ('08-09', 'Finanzanlagen');
64
INSERT INTO gifi (accno, description) VALUES ('080', 'Anteile an verbundenen Unternehmen');
65
INSERT INTO gifi (accno, description) VALUES ('081', 'Beteiligungen an Gemeinschaftsunternehmen');
66
INSERT INTO gifi (accno, description) VALUES ('082', 'Beteiligungen an angeschlossenen (assoziierten) Unternehmen');
67
INSERT INTO gifi (accno, description) VALUES ('083', 'Sonstige Beteiligungen');
68
INSERT INTO gifi (accno, description) VALUES ('084', 'Ausleihungen an verbundene Unternehmen');
69
INSERT INTO gifi (accno, description) VALUES ('085', 'Ausleihungen an Unternehmen, mit denen ein Beteiligungsverh?ltnis besteht');
70
INSERT INTO gifi (accno, description) VALUES ('086', 'Sonstige Ausleihungen');
71
INSERT INTO gifi (accno, description) VALUES ('087', 'Anteile an Kapitalgesellschaften ohne Beteiligungscharakter');
72
INSERT INTO gifi (accno, description) VALUES ('088', 'Anteile an Personengesellschaften ohne Beteiligungscharakter');
73
INSERT INTO gifi (accno, description) VALUES ('090', 'Genossenschaftsanteile ohne Beteiligungscharakter');
74
INSERT INTO gifi (accno, description) VALUES ('091', 'Anteile an Investmentfonds');
75
INSERT INTO gifi (accno, description) VALUES ('092-093', 'Festverzinsliche Wertpapiere des Anlageverm?gens');
76
INSERT INTO gifi (accno, description) VALUES ('094-097', 'Sonstige Finanzanlagen, Wertrechte');
77
INSERT INTO gifi (accno, description) VALUES ('098', 'Geleistete Anzahlungen');
78
INSERT INTO gifi (accno, description) VALUES ('099', 'Kumulierte Abschreibungen');
79
--
80
INSERT INTO gifi (accno, description) VALUES ('1', 'Vorr?te');
81
INSERT INTO gifi (accno, description) VALUES ('100-109', 'Bezugsverrechnung');
82
INSERT INTO gifi (accno, description) VALUES ('110-119', 'Rohstoffe');
83
INSERT INTO gifi (accno, description) VALUES ('120-129', 'Bezogene Teile');
84
INSERT INTO gifi (accno, description) VALUES ('130-134', 'Hilfsstoffe');
85
INSERT INTO gifi (accno, description) VALUES ('135-139', 'Betriebsstoffe');
86
INSERT INTO gifi (accno, description) VALUES ('140-149', 'Unfertige Erzeugnisse');
87
INSERT INTO gifi (accno, description) VALUES ('150-159', 'Fertige Erzeugnisse');
88
INSERT INTO gifi (accno, description) VALUES ('160-169', 'Waren');
89
INSERT INTO gifi (accno, description) VALUES ('170-179', 'Noch nicht abrechenbare Leistungen');
90
INSERT INTO gifi (accno, description) VALUES ('180', 'Geleistete Anzahlungen');
91
INSERT INTO gifi (accno, description) VALUES ('190-199', 'Wertberichtigungen');
92
--
93
INSERT INTO gifi (accno, description) VALUES ('2', 'Sonstiges Umlaufverm?gen, Rechnungsabgrenzungsposten');
94
INSERT INTO gifi (accno, description) VALUES ('20-21', 'Forderungen aus Lieferungen und Leistungen');
95
INSERT INTO gifi (accno, description) VALUES ('200-207', 'Forderungen aus Lieferungen und Leistungen Inland');
96
INSERT INTO gifi (accno, description) VALUES ('208', 'Einzelwertberichtigungen zu Forderungen aus Lieferungen und Leistungen Inland');
97
INSERT INTO gifi (accno, description) VALUES ('209', 'Pauschalwertberichtigungen zu Forderungen aus Lieferungen und Leistungen Inland');
98
INSERT INTO gifi (accno, description) VALUES ('210-212', 'Forderungen aus Lieferungen und Leistungen W?hrungsunion');
99
INSERT INTO gifi (accno, description) VALUES ('213', 'Einzelwertberichtigungen zu Forderungen aus Lieferungen und Leistungen W?hrungsunion');
100
INSERT INTO gifi (accno, description) VALUES ('214', 'Pauschalwertberichtigungen zu Forderungen aus Lieferungen und Leistungen W?hrungsunion');
101
INSERT INTO gifi (accno, description) VALUES ('215-217', 'Forderungen aus Lieferungen und Leistungen sonstiges Ausland');
102
INSERT INTO gifi (accno, description) VALUES ('218', 'Einzelwertberichtigungen zu Forderungen aus Lieferungen und Leistungen sonstiges Ausland');
103
INSERT INTO gifi (accno, description) VALUES ('219', 'Pauschalwertberichtigungen zu Forderungen aus Lieferungen und Leistungen sonstiges Ausland');
104
--
105
INSERT INTO gifi (accno, description) VALUES ('22', 'Forderungen gegen?ber verbundenen Unternehmen und Unternehmen, mit denen ein Beteiligungsverh?ltnis besteht');
106
INSERT INTO gifi (accno, description) VALUES ('220-222', 'Forderungen gegen?ber verbundenen Unternehmen');
107
INSERT INTO gifi (accno, description) VALUES ('223', 'Einzelwertberichtigungen zu Forderungen gegen?ber verbundenen Unternehmen');
108
INSERT INTO gifi (accno, description) VALUES ('224', 'Pauschalwertberichtigungen zu Forderungen gegen?ber verbundenen Unternehmen');
109
INSERT INTO gifi (accno, description) VALUES ('225-227', 'Forderungen gegen?ber Unternehmen, mit denen ein Beteiligungsverh?ltnis besteht');
110
INSERT INTO gifi (accno, description) VALUES ('228', 'Einzelwertberichtigungen zu Forderungen gegen?ber Unternehmen, mit denen ein Beteiligungsverh?ltnis besteht');
111
INSERT INTO gifi (accno, description) VALUES ('229', 'Pauschalwertberichtigungen zu Forderungen gegen?ber Unternehmen, mit denen ein Beteiligungsverh?ltnis besteht');
112
--
113
INSERT INTO gifi (accno, description) VALUES ('23-24', 'Sonstige Forderungen und Verm?gensgegenst?nde');
114
INSERT INTO gifi (accno, description) VALUES ('230-246', 'Sonstige Forderungen und Verm?gensgegenst?nde');
115
INSERT INTO gifi (accno, description) VALUES ('247', 'Eingeforderte, aber noch nicht eingezahlte Einlagen');
116
INSERT INTO gifi (accno, description) VALUES ('248', 'Einzelwertberichtigungen zu sonstigen Forderungen und Verm?gensgegenst?nden');
117
INSERT INTO gifi (accno, description) VALUES ('249', 'Pauschalwertberichtigungen zu sonstigen Forderungen und Verm?gensgegenst?nden');
118
--
119
INSERT INTO gifi (accno, description) VALUES ('25', 'Forderungen aus der Abgabenverrechnung');
120
INSERT INTO gifi (accno, description) VALUES ('250-259', 'Forderungen aus der Abgabenverrechnung');
121
--
122
INSERT INTO gifi (accno, description) VALUES ('26', 'Wertpapiere und Anteile');
123
INSERT INTO gifi (accno, description) VALUES ('260', 'Eigene Anteile');
124
INSERT INTO gifi (accno, description) VALUES ('261', 'Anteile an verbundenen Unternehmen');
125
INSERT INTO gifi (accno, description) VALUES ('262', 'Sonstige Anteile');
126
INSERT INTO gifi (accno, description) VALUES ('263-267', 'Sonstige Wertpapiere');
127
INSERT INTO gifi (accno, description) VALUES ('268', 'Besitzwechsel, soweit dem Unternehmen nicht die der Ausstellung zugrundeliegenden Forderungen zustehen');
128
INSERT INTO gifi (accno, description) VALUES ('269', 'Wertberichtigungen');
129
--
130
INSERT INTO gifi (accno, description) VALUES ('27-28', 'Kassenbestand, Schecks, Guthaben bei Kreditinstituten');
131
INSERT INTO gifi (accno, description) VALUES ('270-272', 'Kassenbest?nde in Inlandsw?hrung');
132
INSERT INTO gifi (accno, description) VALUES ('273', 'Postwertzeichen');
133
INSERT INTO gifi (accno, description) VALUES ('274', 'Stempelmarken');
134
INSERT INTO gifi (accno, description) VALUES ('275-277', 'Kassenbest?nde in Fremdw?hrung');
135
INSERT INTO gifi (accno, description) VALUES ('278', 'Schecks in Inlandsw?hrung');
136
INSERT INTO gifi (accno, description) VALUES ('280-288', 'Guthaben bei Kreditinstituten');
137
INSERT INTO gifi (accno, description) VALUES ('289', 'Wertberichtigungen');
138
--
139
INSERT INTO gifi (accno, description) VALUES ('29', 'Rechnungsabgrenzungsposten');
140
INSERT INTO gifi (accno, description) VALUES ('290', 'Aktive Rechnungsabgrenzungsposten');
141
INSERT INTO gifi (accno, description) VALUES ('295', 'Disagio');
142
INSERT INTO gifi (accno, description) VALUES ('296', 'Unterschiedsbetrag zur gebotenen Pensionsr?ckstellung');
143
INSERT INTO gifi (accno, description) VALUES ('297', 'Unterschiedsbetrag gem. Abschnitt XII Pensionskassengesetz');
144
INSERT INTO gifi (accno, description) VALUES ('298', 'Steuerabgrenzung');
145
--
146
INSERT INTO gifi (accno, description) VALUES ('3', 'R?ckstellungen, Verbindlichkeiten und Rechnungsabgrenzungsposten');
147
--
148
INSERT INTO gifi (accno, description) VALUES ('30', 'R?ckstellungen');
149
INSERT INTO gifi (accno, description) VALUES ('300', 'R?ckstellungen f?r Abfertigungen');
150
INSERT INTO gifi (accno, description) VALUES ('301', 'R?ckstellungen f?r Pensionen');
151
INSERT INTO gifi (accno, description) VALUES ('302-303', 'Steuerr?ckstellungen');
152
INSERT INTO gifi (accno, description) VALUES ('304-309', 'Sonstige R?ckstellungen');
153
--
154
INSERT INTO gifi (accno, description) VALUES ('31', 'Anleihen, Verbindlichkeiten gegen?ber Kreditinstituten und Finanzinstituten');
155
INSERT INTO gifi (accno, description) VALUES ('310', 'Anleihen (einschlie?lich konvertibler)');
156
INSERT INTO gifi (accno, description) VALUES ('311-317', 'Verbindlichkeiten gegen?ber Kreditinstituten');
157
INSERT INTO gifi (accno, description) VALUES ('318-319', 'Verbindlichkeiten gegen?ber Finanzinstituten');
158
--
159
INSERT INTO gifi (accno, description) VALUES ('32', 'Erhaltene Anzahlungen auf Bestellungen');
160
INSERT INTO gifi (accno, description) VALUES ('320', 'Erhaltene Anzahlungen auf Bestellungen');
161
INSERT INTO gifi (accno, description) VALUES ('321', 'Umsatzsteuer-Evidenzkonto f?r erhaltene Anzahlungen auf Bestellungen');
162
--
163
INSERT INTO gifi (accno, description) VALUES ('33', 'Verbindlichkeiten aus Lieferungen und Leistungen, Verbindlichkeiten aus der Annahme gezogener und der Ausstellung eigener Wechsel');
164
INSERT INTO gifi (accno, description) VALUES ('330-335', 'Verbindlichkeiten aus Lieferungen und Leistungen Inland');
165
INSERT INTO gifi (accno, description) VALUES ('336', 'Verbindlichkeiten aus Lieferungen und Leistungen W?hrungsunion');
166
INSERT INTO gifi (accno, description) VALUES ('337', 'Verbindlichkeiten aus Lieferungen und Leistungen sonstiges Ausland');
167
INSERT INTO gifi (accno, description) VALUES ('338-339', 'Verbindlichkeiten aus der Annahme gezogener Wechsel und der Ausstellung eigener Wechsel');
168
--
169
INSERT INTO gifi (accno, description) VALUES ('34', 'Verbindlichkeiten gegen?ber verbundenen Unternehmen, gegen?ber Unternehmen, mit denen ein Beteiligungsverh?ltnis besteht und gegen?ber Gesellschaftern');
170
INSERT INTO gifi (accno, description) VALUES ('340-347', 'Verbindlichkeiten gegen?ber verbundenen Unternehmen, Verbindlichkeiten gegen?ber Unternehmen, mit denen ein Beteiligungsverh?ltnis besteht');
171
INSERT INTO gifi (accno, description) VALUES ('348', 'Verbindlichkeiten gegen?ber Gesellschaftern');
172
--
173
INSERT INTO gifi (accno, description) VALUES ('35', 'Verbindlichkeiten aus Steuern');
174
INSERT INTO gifi (accno, description) VALUES ('350-359', 'Verbindlichkeiten aus Steuern');
175
--
176
INSERT INTO gifi (accno, description) VALUES ('36', 'Verbindlichkeiten im Rahmen der sozialen Sicherheit');
177
INSERT INTO gifi (accno, description) VALUES ('360-369', 'Verbindlichkeiten im Rahmen der sozialen Sicherheit');
178
--
179
INSERT INTO gifi (accno, description) VALUES ('37-38', '?brige sonstige Verbindlichkeiten');
180
INSERT INTO gifi (accno, description) VALUES ('370-389', '?brige sonstige Verbindlichkeiten');
181
--
182
INSERT INTO gifi (accno, description) VALUES ('39', 'Rechnungsabgrenzungsposten');
183
INSERT INTO gifi (accno, description) VALUES ('390-399', 'Passive Rechnungsabgrenzungsposten');
184
--
185
INSERT INTO gifi (accno, description) VALUES ('4', 'Betriebliche Ertr?ge');
186
--
187
INSERT INTO gifi (accno, description) VALUES ('40-44', 'Brutto-Umsatzerl?se und Erl?sschm?lerungen');
188
INSERT INTO gifi (accno, description) VALUES ('400-439', 'Brutto-Umsatzerl?se');
189
INSERT INTO gifi (accno, description) VALUES ('440-449', 'Erl?sschm?lerungen');
190
--
191
INSERT INTO gifi (accno, description) VALUES ('45', 'Bestandsver?nderungen und aktivierte Eigenleistungen');
192
INSERT INTO gifi (accno, description) VALUES ('450-457', 'Ver?nderungen des Bestandes an fertigen und unfertigen Erzeugnissen sowie an noch nicht abrechenbaren Leistungen');
193
INSERT INTO gifi (accno, description) VALUES ('458-459', 'andere aktivierte Eigenleistungen');
194
--
195
INSERT INTO gifi (accno, description) VALUES ('46-49', 'Sonstige betriebliche Ertr?ge');
196
INSERT INTO gifi (accno, description) VALUES ('460-462', 'Erl?se aus dem Abgang vom Anlageverm?gen, ausgenommen Finanzanlagen');
197
INSERT INTO gifi (accno, description) VALUES ('463-465', 'Ertr?ge aus dem Abgang vom Anlageverm?gen, ausgenommen Finanzanlagen');
198
INSERT INTO gifi (accno, description) VALUES ('466-467', 'Ertr?ge aus der Zuschreibung zum Anlageverm?gen, ausgenommen Finanzanlagen');
199
INSERT INTO gifi (accno, description) VALUES ('470-479', 'Ertr?ge aus der Aufl?sung von R?ckstellungen');
200
INSERT INTO gifi (accno, description) VALUES ('480-499', '?brige betriebliche Ertr?ge');
201
--
202
INSERT INTO gifi (accno, description) VALUES ('5', 'Materialaufwand und sonstige bezogene Herstellungsleistungen');
203
INSERT INTO gifi (accno, description) VALUES ('500-509', 'Wareneinsatz');
204
INSERT INTO gifi (accno, description) VALUES ('510-519', 'Verbrauch von Rohstoffen');
205
INSERT INTO gifi (accno, description) VALUES ('520-529', 'Verbrauch von bezogenen Fertig- und Einzelteilen');
206
INSERT INTO gifi (accno, description) VALUES ('530-539', 'Verbrauch von Hilfsstoffen');
207
INSERT INTO gifi (accno, description) VALUES ('540-549', 'Verbrauch von Betriebsstoffen');
208
INSERT INTO gifi (accno, description) VALUES ('550-559', 'Verbrauch von Werkzeugen und anderen Erzeugungshilfsmitteln');
209
INSERT INTO gifi (accno, description) VALUES ('560-569', 'Verbrauch von Brenn- und Treibstoffen, Energie und Wasser');
210
INSERT INTO gifi (accno, description) VALUES ('570-579', 'Sonstige bezogene Herstellungsleistungen');
211
INSERT INTO gifi (accno, description) VALUES ('580', 'Skontoertr?ge auf Materialaufwand');
212
INSERT INTO gifi (accno, description) VALUES ('581', 'Skontoertr?ge auf sonstige bezogene Herstellungsleistungen');
213
INSERT INTO gifi (accno, description) VALUES ('590', 'Aufwandsstellenrechnung');
214
--
215
INSERT INTO gifi (accno, description) VALUES ('6', 'Personalaufwand');
216
INSERT INTO gifi (accno, description) VALUES ('600-619', 'L?hne');
217
INSERT INTO gifi (accno, description) VALUES ('620-639', 'Geh?lter');
218
INSERT INTO gifi (accno, description) VALUES ('640-644', 'Aufwendungen f?r Abfertigungen');
219
INSERT INTO gifi (accno, description) VALUES ('645-649', 'Aufwendungen f?r Altersversorgung');
220
INSERT INTO gifi (accno, description) VALUES ('650-655', 'Gesetzlicher Sozialaufwand Arbeiter');
221
INSERT INTO gifi (accno, description) VALUES ('656-659', 'Gesetzlicher Sozialaufwand Angestellte');
222
INSERT INTO gifi (accno, description) VALUES ('660-665', 'Lohnabh?ngige Abgaben und Pflichtbeitr?ge');
223
INSERT INTO gifi (accno, description) VALUES ('666-669', 'Gehaltsabh?ngige Abgaben und Pflichtbeitr?ge');
224
INSERT INTO gifi (accno, description) VALUES ('670-689', 'Sonstige Sozialaufwendungen');
225
INSERT INTO gifi (accno, description) VALUES ('690', 'Aufwandsstellenrechnung');
226
--
227
INSERT INTO gifi (accno, description) VALUES ('7', 'Abschreibungen und sonstige betriebliche Aufwendunge');
228
--
229
INSERT INTO gifi (accno, description) VALUES ('70', 'Abschreibungen');
230
INSERT INTO gifi (accno, description) VALUES ('700', 'Abschreibungen auf aktivierte Aufwendungen f?r das Ingangsetzen und Erweitern eines Betriebes');
231
INSERT INTO gifi (accno, description) VALUES ('701-708', 'Abschreibungen auf das Anlageverm?gen (ausgenommen Finanzanlagen)');
232
INSERT INTO gifi (accno, description) VALUES ('709', 'Abschreibungen vom Umlaufverm?gen, soweit diese die im Unternehmen ?blichen Abschreibungen ?bersteigen');
233
--
234
INSERT INTO gifi (accno, description) VALUES ('71', 'Sonstige Steuern');
235
INSERT INTO gifi (accno, description) VALUES ('710-719', 'Sonstige Steuern');
236
--
237
INSERT INTO gifi (accno, description) VALUES ('72-78', '?brige betriebliche Aufwendungen');
238
--
239
INSERT INTO gifi (accno, description) VALUES ('72', 'Instandhaltung und Reinigung durch Dritte, Entsorgung, Beleuchtung');
240
INSERT INTO gifi (accno, description) VALUES ('720-729', 'Instandhaltung und Reinigung durch Dritte, Entsorgung, Beleuchtung');
241
--
242
INSERT INTO gifi (accno, description) VALUES ('73', 'Transport-, Reise- und Fahrtaufwand, Nachrichtenaufwand');
243
INSERT INTO gifi (accno, description) VALUES ('730-731', 'Transporte durch Dritte');
244
INSERT INTO gifi (accno, description) VALUES ('732-733', 'Kfz-Aufwand');
245
INSERT INTO gifi (accno, description) VALUES ('734-735', 'Reise- und Fahrtaufwand');
246
INSERT INTO gifi (accno, description) VALUES ('736-737', 'Tag- und N?chtigungsgelder');
247
INSERT INTO gifi (accno, description) VALUES ('738-739', 'Nachrichtenaufwand');
248
--
249
INSERT INTO gifi (accno, description) VALUES ('74', 'Miet-, Pacht-, Leasing- und Lizenzaufwand');
250
INSERT INTO gifi (accno, description) VALUES ('740-743', 'Miet- und Pachtaufwand');
251
INSERT INTO gifi (accno, description) VALUES ('744-747', 'Leasingaufwand');
252
INSERT INTO gifi (accno, description) VALUES ('748-749', 'Lizenzaufwand');
253
--
254
INSERT INTO gifi (accno, description) VALUES ('75', 'Aufwand f?r beigestelltes Personal, Provisionen an Dritte, Aufsichtsratsverg?tungen');
255
INSERT INTO gifi (accno, description) VALUES ('750-753', 'Aufwand f?r beigestelltes Personal');
256
INSERT INTO gifi (accno, description) VALUES ('754-757', 'Provisionen an Dritte');
257
INSERT INTO gifi (accno, description) VALUES ('758-759', 'Aufsichtsratsverg?tungen');
258
--
259
INSERT INTO gifi (accno, description) VALUES ('76', 'B?ro-, Werbe- und Repr?sentationsaufwand');
260
INSERT INTO gifi (accno, description) VALUES ('760', 'B?romaterial und Drucksorten');
261
INSERT INTO gifi (accno, description) VALUES ('761-762', 'Druckerzeugnisse und Vervielf?ltigungen');
262
INSERT INTO gifi (accno, description) VALUES ('763', 'Fachliteratur und Zeitungen');
263
INSERT INTO gifi (accno, description) VALUES ('765-768', 'Werbung und Repr?sentation');
264
INSERT INTO gifi (accno, description) VALUES ('769', 'Spenden und Trinkgelder');
265
--
266
INSERT INTO gifi (accno, description) VALUES ('77-78', 'Versicherungen, ?brige Aufwendungen');
267
INSERT INTO gifi (accno, description) VALUES ('770-774', 'Versicherungen');
268
INSERT INTO gifi (accno, description) VALUES ('775-776', 'Beratungs- und Pr?fungsaufwand');
269
INSERT INTO gifi (accno, description) VALUES ('777', 'Aus- und Fortbildung');
270
INSERT INTO gifi (accno, description) VALUES ('778', 'Mitgliedsbeitr?ge');
271
INSERT INTO gifi (accno, description) VALUES ('779', 'Spesen des Geldverkehrs');
272
INSERT INTO gifi (accno, description) VALUES ('780-781', 'Schadensf?lle');
273
INSERT INTO gifi (accno, description) VALUES ('782', 'Buchwert abgegangener Anlagen, ausgenommen Finanzanlagen');
274
INSERT INTO gifi (accno, description) VALUES ('783', 'Verluste aus dem Abgang vom Anlageverm?gen, ausgenommen Finanzanlagen');
275
INSERT INTO gifi (accno, description) VALUES ('784-788', 'Verschiedene betriebliche Aufwendungen');
276
INSERT INTO gifi (accno, description) VALUES ('789', 'Skontoertr?ge auf sonstige betriebliche Aufwendungen');
277
--
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff