Bezeichnung des Anlage-Gegenstandes | 12 |$!{av.Name} | 13 |||
---|---|---|---|
Anschaffungsdatum | 17 |$!{dateformat.format(${av.Anschaffungsdatum})} | 18 | 19 |Anschaffungskosten | 20 |$!{decimalformat.format(${av.Anschaffungskosten})} ${eur} | 21 |
Abschreibungsart | 25 |linear | 26 | 27 |Erinnerungswert | 28 |0,00 ${eur} | 29 |
Nutzungsdauer (in Jahren) | 33 |$!{av.Nutzungsdauer} | 34 | 35 |Restwert | 36 |$!{decimalformat.format(${av.getRestwert(${jahr})})} ${eur} | 37 |
41 | | |||
Buchwert zum $!{dateformat.format(${jahr.Beginn})} | 45 |$!{decimalformat.format($anfangsbestand)} ${eur} | 46 |||
- Abschreibung | 49 |$!{decimalformat.format(${av.getJahresAbschreibung(${jahr})})} ${eur} | 50 |||
(darin enthaltene Sonderabschreibung) | 53 |$!{decimalformat.format(${av.getJahresSonderAbschreibung(${jahr})})} ${eur} | 54 |||
57 | | |||
Restwert zum $!{dateformat.format(${jahr.Ende})} | 60 |$!{decimalformat.format(${av.getRestwert(${jahr})})} ${eur} | 61 |||
64 | |
Bezeichnung | 11 |Anschaffungsdatum | 12 |Anschaffungskosten | 13 |Nutzungsdauer (in Jahren) | 14 |Anfangsbestand | 15 |Jahres-AfA | 16 |Restwert | 17 |
---|---|---|---|---|---|---|
$!{av.Name} | 32 |$!{dateformat.format(${av.Anschaffungsdatum})} | 33 |$!{decimalformat.format(${anschaffungskosten})} ${eur} | 34 |$!{av.Nutzungsdauer} | 35 |$!{decimalformat.format(${anfangsbestand})} ${eur} | 36 |$!{decimalformat.format(${jahresabschreibung})} ${eur} | 37 |$!{decimalformat.format(${restwert})} ${eur} | 38 |
43 | | ||||||
Summen: | 47 |$!{decimalformat.format($math.get("anschaffungskosten"))} ${eur} | 48 |49 | | $!{decimalformat.format($math.get("anfangsbestand"))} ${eur} | 50 |$!{decimalformat.format($math.get("jahresabschreibung"))} ${eur} | 51 |$!{decimalformat.format($math.get("restwert"))} ${eur} | 52 ||
56 | |
Monat | 8 |Einnahmen | 9 |Ausgaben | 10 |Ergebnis | 11 |
---|---|---|---|
${name} | 23 |${decimalformat.format(${einnahmen})} ${eur} | 24 |${decimalformat.format(${ausgaben})} ${eur} | 25 |${decimalformat.format(${ergebnis})} ${eur} | 26 |
Gesamt | 30 |${decimalformat.format($math.get("gesamtEinnahmen"))} ${eur} | 31 |${decimalformat.format($math.get("gesamtAusgaben"))} ${eur} | 32 |${decimalformat.format($math.get("gesamtErgebnis"))} ${eur} | 33 |
Konto-Nr. | 19 |Konto-Bezeichnung | 20 |Anfangsbestand | 21 |Umsatz im Zeitraum | 22 |Saldo zum $!{dateformat.format(${end})} | 23 ||
---|---|---|---|---|---|
$!{konto.Kontonummer} | 28 |$!{konto.Name} | 29 | #if($konto.getAnfangsbestand(${jahr})) 30 | #set($ab = $konto.getAnfangsbestand(${jahr})) 31 | $math.add("ab",$ab.Betrag) 32 |$!{decimalformat.format(${ab.Betrag})} ${eur} | 33 | #else 34 |35 | #end 36 | 37 | #set($umsatz = $konto.getUmsatz($jahr,$start,$end)) 38 | #set($saldo = $konto.getSaldo($end)) 39 | $math.add("umsatz",$umsatz) 40 | $math.add("saldo",$saldo) 41 | 42 | | $!{decimalformat.format($umsatz)} ${eur} | 43 |$!{decimalformat.format($saldo)} ${eur} | 44 |
Summen | 48 |$!{decimalformat.format($math.get("ab"))} ${eur} | 49 |$!{decimalformat.format($math.get("umsatz"))} ${eur} | 50 |$!{decimalformat.format($math.get("saldo"))} ${eur} | 51 |
Kto-Nr. | 17 |Konto-Bezeichnung | 18 |Einnahmen | 19 |Ausgaben | 20 |
---|---|---|---|
$!{konto.Kontonummer} | 29 |$!{konto.Name} | 30 |$!{decimalformat.format(${umsatz})} ${eur} | 31 |32 | |
$!{konto.Kontonummer} | 43 |$!{konto.Name} | 44 |45 | | $!{decimalformat.format(${umsatz})} ${eur} | 46 |
Summen: | 52 |$!{decimalformat.format($math.get("einnahmen"))} ${eur} | 53 |$!{decimalformat.format($math.get("ausgaben"))} ${eur} | 54 |
Betriebseinnahmen | 63 |$!{decimalformat.format($math.get("einnahmen"))} ${eur} | 64 |
- Betriebsausgaben | 67 |$!{decimalformat.format($math.get("ausgaben"))} ${eur} | 68 |
71 | | |
Ergebnis | 74 |$!{decimalformat.format($ergebnis.Betriebsergebnis)} ${eur} | 75 |
de.willuhn.jameica.fibu.io.IO#getIOFormats(Class type)
19 | * kann ein Importer/Exporter abgefragt werden, welche Formate
20 | * er unterstuetzt.
21 | */
22 | public interface IOFormat
23 | {
24 | /**
25 | * Liefert einen sprechenden Namen fuer das Datei-Format.
26 | * Zum Beispiel "CSV-Datei"
27 | * @return Sprechender Name des Datei-Formats.
28 | */
29 | public String getName();
30 |
31 | /**
32 | * Liefert die Datei-Endungen des Formats.
33 | * Zum Beispiel "*.csv" oder "*.txt".
34 | * @return Datei-Endung.
35 | */
36 | public String[] getFileExtensions();
37 | }
38 |
39 |
40 | /*********************************************************************
41 | * $Log: IOFormat.java,v $
42 | * Revision 1.1 2010/08/27 11:19:40 willuhn
43 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert
44 | *
45 | **********************************************************************/
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/Importer.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 |
11 | package de.willuhn.jameica.fibu.io;
12 |
13 | import java.io.InputStream;
14 | import java.rmi.RemoteException;
15 |
16 | import de.willuhn.util.ApplicationException;
17 | import de.willuhn.util.ProgressMonitor;
18 |
19 | /**
20 | * Basis-Interface aller Importer.
21 | */
22 | public interface Importer extends IO
23 | {
24 |
25 | /**
26 | * Importiert Daten aus dem InputStream.
27 | * @param context Context, der dem Importer hilft, den Zusammenhang zu erkennen,
28 | * in dem er aufgerufen wurde. Das kann zum Beispiel ein Konto sein.
29 | * @param format das vom User ausgewaehlte Import-Format.
30 | * @param is der Stream, aus dem die Daten gelesen werden.
31 | * @param monitor ein Monitor, an den der Importer Ausgaben ueber seinen
32 | * Bearbeitungszustand ausgeben kann.
33 | * Der Importer muss den Import-Stream selbst schliessen!
34 | * @throws RemoteException
35 | * @throws ApplicationException
36 | */
37 | public void doImport(Object context, IOFormat format, InputStream is, ProgressMonitor monitor) throws RemoteException, ApplicationException;
38 |
39 | }
40 |
41 |
42 | /*********************************************************************
43 | * $Log: Importer.java,v $
44 | * Revision 1.1 2010/08/27 11:19:40 willuhn
45 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert
46 | *
47 | *********************************************************************/
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/XMLBuchungImporter.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/XMLBuchungImporter.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/XMLImporter.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/XMLImporter.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/AbstractReport.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 |
11 | package de.willuhn.jameica.fibu.io.report;
12 |
13 | import de.willuhn.jameica.fibu.Fibu;
14 | import de.willuhn.jameica.system.Application;
15 | import de.willuhn.util.I18N;
16 |
17 |
18 | /**
19 | * Abstrakte Basis-Implementierung eines Reports.
20 | */
21 | public abstract class AbstractReport implements Report
22 | {
23 | final static I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N();
24 |
25 | /**
26 | * @see de.willuhn.jameica.fibu.io.report.Report#createPreset()
27 | */
28 | public ReportData createPreset()
29 | {
30 | ReportData d = new ReportData();
31 | d.setNeedGeschaeftsjahr(true);
32 | d.setNeedKonto(true);
33 | d.setNeedDatum(true);
34 | return d;
35 | }
36 |
37 | /**
38 | * @see java.lang.Comparable#compareTo(java.lang.Object)
39 | */
40 | public int compareTo(Object o)
41 | {
42 | if (!(o instanceof Report))
43 | return -1;
44 |
45 | // Alphabetisch nach Name sortieren
46 | String name = ((Report)o).getName();
47 | return this.getName().compareTo(name);
48 | }
49 | }
50 |
51 |
52 | /**********************************************************************
53 | * $Log: AbstractReport.java,v $
54 | * Revision 1.1 2010/08/27 10:18:14 willuhn
55 | * @C Export umbenannt in Report
56 | *
57 | * Revision 1.2 2009/07/03 10:52:18 willuhn
58 | * @N Merged SYNTAX_1_3_BRANCH into HEAD
59 | *
60 | * Revision 1.1.2.1 2009/06/23 16:53:22 willuhn
61 | * @N Velocity-Export komplett ueberarbeitet
62 | *
63 | **********************************************************************/
64 |
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/AbstractVelocityReport.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/AbstractVelocityReport.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/IdeaFormatReport.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/IdeaFormatReport.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/Report.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 |
11 | package de.willuhn.jameica.fibu.io.report;
12 |
13 | import de.willuhn.jameica.system.OperationCanceledException;
14 | import de.willuhn.util.ApplicationException;
15 | import de.willuhn.util.ProgressMonitor;
16 |
17 | /**
18 | * Interface fuer alle unterstuetzten Reports.
19 | * Wenn die Liste der vefuegbaren Auswertungen um ein
20 | * Element erweitert werden soll, muss es dieses Interface
21 | * hier implementieren.
22 | */
23 | public interface Report extends Comparable
24 | {
25 | /**
26 | * Liefert einen sprechenden Namen fuer den Report.
27 | * @return Sprechender Name fuer den Report.
28 | */
29 | public String getName();
30 |
31 | /**
32 | * Fuehrt den Report aus.
33 | * @param data die Meta-Daten.
34 | * @param monitor Fortschritts-Monitor.
35 | * @throws ApplicationException
36 | * @throws OperationCanceledException
37 | */
38 | public void doReport(ReportData data, ProgressMonitor monitor) throws ApplicationException, OperationCanceledException;
39 |
40 | /**
41 | * Kann vom Report implementiert werden, wenn bereits Vorauswahlen getroffen werden sollen.
42 | * @return Preset-Objekt mit Vorauswahlen fuer den User.
43 | */
44 | public ReportData createPreset();
45 |
46 | }
47 |
48 |
49 | /**********************************************************************
50 | * $Log: Report.java,v $
51 | * Revision 1.1 2010/08/27 10:18:14 willuhn
52 | * @C Export umbenannt in Report
53 | *
54 | * Revision 1.2 2009/07/03 10:52:18 willuhn
55 | * @N Merged SYNTAX_1_3_BRANCH into HEAD
56 | *
57 | * Revision 1.1.2.1 2009/06/23 16:53:22 willuhn
58 | * @N Velocity-Export komplett ueberarbeitet
59 | *
60 | **********************************************************************/
61 |
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/VelocityReportAvEinzel.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/VelocityReportAvEinzel.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/VelocityReportAvGesamt.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/VelocityReportAvGesamt.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/VelocityReportBuchungList.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/VelocityReportBuchungList.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/VelocityReportEinnahmeUeberschussRechnung.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/VelocityReportEinnahmeUeberschussRechnung.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/VelocityReportErgebnisUebersichtMonatlich.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/VelocityReportErgebnisUebersichtMonatlich.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/VelocityReportKontoAuszug.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/VelocityReportKontoAuszug.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/io/report/VelocityReportSaldenListe.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 |
11 | package de.willuhn.jameica.fibu.io.report;
12 |
13 | import java.util.Date;
14 | import java.util.LinkedList;
15 | import java.util.List;
16 |
17 | import de.willuhn.jameica.fibu.rmi.Geschaeftsjahr;
18 | import de.willuhn.jameica.fibu.rmi.Konto;
19 |
20 | /**
21 | * Report fuer die Summen- und Saldenliste.
22 | */
23 | public class VelocityReportSaldenListe extends AbstractVelocityReport
24 | {
25 |
26 | /**
27 | * @see de.willuhn.jameica.fibu.io.report.AbstractVelocityReport#getData(de.willuhn.jameica.fibu.io.report.ReportData)
28 | */
29 | protected VelocityReportData getData(ReportData data) throws Exception
30 | {
31 | Geschaeftsjahr jahr = data.getGeschaeftsjahr();
32 | final Listnull
.
48 | * @throws RemoteException
49 | */
50 | public Konto findByKontonummer(String kto) throws RemoteException;
51 | }
52 |
53 |
54 | /*********************************************************************
55 | * $Log: Kontenrahmen.java,v $
56 | * Revision 1.13 2009/07/03 10:52:19 willuhn
57 | * @N Merged SYNTAX_1_3_BRANCH into HEAD
58 | *
59 | * Revision 1.10 2007/11/05 01:04:49 willuhn
60 | * @N Beim Speichern testen, ob fuer den Mandanten schon ein gleichnamiger Kontenrahmen existiert
61 | * @N findByKontonummer
62 | *
63 | * Revision 1.9 2007/10/08 22:54:47 willuhn
64 | * @N Kopieren eines kompletten Kontenrahmen auf einen Mandanten
65 | *
66 | * Revision 1.8 2006/05/08 22:44:18 willuhn
67 | * @N Debugging
68 | *
69 | * Revision 1.7 2006/01/02 15:18:29 willuhn
70 | * @N Buchungs-Vorlagen
71 | *
72 | * Revision 1.6 2005/09/01 21:08:41 willuhn
73 | * *** empty log message ***
74 | *
75 | * Revision 1.5 2005/08/10 17:48:02 willuhn
76 | * @C refactoring
77 | *
78 | * Revision 1.4 2005/08/08 22:54:16 willuhn
79 | * @N massive refactoring
80 | *
81 | * Revision 1.3 2004/01/25 19:44:03 willuhn
82 | * *** empty log message ***
83 | *
84 | * Revision 1.2 2003/12/11 21:00:35 willuhn
85 | * @C refactoring
86 | *
87 | * Revision 1.1 2003/11/24 15:18:21 willuhn
88 | * *** empty log message ***
89 | *
90 | *********************************************************************/
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/rmi/Konto.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/rmi/Konto.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/rmi/Kontotyp.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 |
11 | package de.willuhn.jameica.fibu.rmi;
12 |
13 | import java.rmi.RemoteException;
14 |
15 | import de.willuhn.datasource.rmi.DBObject;
16 |
17 | /**
18 | * Unterscheidet Konten zwischen Einnahmen und Ausgaben.
19 | * Das Objekt existiert eigentlich nur fuer die Konten,
20 | * bei denen anhand der Konto-Art noch nicht erkennbar
21 | * ist, ob es sich um ein Einahme- oder Ausgabe-Konto
22 | * handelt. Daher besitzen nur wenige Konten zusaetzlich
23 | * zur Konto-Art noch den Konto-Typ.
24 | * Konkret sind das derzeit nur die Steuerkonten. Die haben
25 | * als Konto-Art naemlich alle das Flag "Steuerkonto". Da
26 | * man daran allein aber noch nicht erkennen kann, wie
27 | * es sich auf der Ueberschuss-Rechnung auswirkt, besitzen
28 | * Sie ausserdem noch den Konto-Typ.
29 | * @author willuhn
30 | */
31 | public interface Kontotyp extends DBObject
32 | {
33 | /**
34 | * Konto-Typ ungueltig.
35 | */
36 | public final static int KONTOTYP_UNGUELTIG = 0;
37 |
38 | /**
39 | * Konto-Typ Einnahme.
40 | */
41 | public final static int KONTOTYP_EINNAHME = 1;
42 |
43 | /**
44 | * Konto-Typ Ausgabe.
45 | */
46 | public final static int KONTOTYP_AUSGABE = 2;
47 |
48 | /**
49 | * Liefert einen sprechenden Namen fuer den Konto-Typ.
50 | * @return Name.
51 | * @throws RemoteException
52 | */
53 | public String getName() throws RemoteException;
54 |
55 | /**
56 | * Liefert einen Int-Wert der den Typ des Kontos definiert.
57 | * @return Kontotyp.
58 | * @throws RemoteException
59 | */
60 | public int getKontoTyp() throws RemoteException;
61 | }
62 |
63 |
64 | /*********************************************************************
65 | * $Log: Kontotyp.java,v $
66 | * Revision 1.2 2006/05/08 22:44:18 willuhn
67 | * @N Debugging
68 | *
69 | * Revision 1.1 2005/09/02 17:35:07 willuhn
70 | * @N Kontotyp
71 | * @N Betriebsergebnis
72 | *
73 | *********************************************************************/
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/rmi/Kontozuordnung.java:
--------------------------------------------------------------------------------
1 | package de.willuhn.jameica.fibu.rmi;
2 |
3 | import java.rmi.RemoteException;
4 |
5 | /**
6 | * Zuordnung der Hibiscus Konten zu Syntax Konten.
7 | * Bei der Verwendung von Buchungstemplates wird
8 | * die Buchung dem Richtigen Geldkonto zugeordnet
9 | */
10 | public interface Kontozuordnung extends Transfer
11 | {
12 | /**
13 | * Liefert einen sprechenden Namen fuer die Kontozuordnung.
14 | * @return Name.
15 | * @throws RemoteException
16 | */
17 | public String getName() throws RemoteException;
18 |
19 | /**
20 | * Setzt den sprechenden Namen fuer die Kontozuordnung.
21 | * @param name Name.
22 | * @throws RemoteException
23 | */
24 | public void setName(String name) throws RemoteException;
25 |
26 | /**
27 | * Liefert das Konto.
28 | * @return Konto.
29 | * @throws RemoteException
30 | */
31 | public Konto getKonto() throws RemoteException;
32 |
33 | /**
34 | * Setzt das Konto.
35 | * @param konto das Konto.
36 | * @throws RemoteException
37 | */
38 | public void setKonto(Konto konto) throws RemoteException;
39 |
40 | /**
41 | * Liefert den Mandanten.
42 | * @return Mandant.
43 | * @throws RemoteException
44 | */
45 | public Mandant getMandant() throws RemoteException;
46 |
47 | /**
48 | * Setzt den Mandanten.
49 | * @param mandant Mandant.
50 | * @throws RemoteException
51 | */
52 | public void setMandant(Mandant mandant) throws RemoteException;
53 |
54 | /**
55 | * Liefert die ID des Hibscus-Konto.
56 | * @return die ID des Hibiscus-Kontos.
57 | * @throws RemoteException
58 | */
59 | public String getHibiscusKontoId() throws RemoteException;
60 |
61 | /**
62 | * Speichert die ID des Hibiscus Kontos.
63 | * @param id die ID des Hibiscus-Kontos.
64 | * @throws RemoteException
65 | */
66 | public void setHibiscusKontoId(String id) throws RemoteException;
67 | }
68 |
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/rmi/Mandant.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/rmi/Mandant.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/rmi/UserObject.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 | package de.willuhn.jameica.fibu.rmi;
11 |
12 | import java.rmi.RemoteException;
13 |
14 | import de.willuhn.datasource.rmi.DBObject;
15 |
16 | /**
17 | * Vom User erweiterbare Objekte.
18 | * @author willuhn
19 | */
20 | public interface UserObject extends DBObject
21 | {
22 |
23 | /**
24 | * Prueft, ob das Objekt vom User angelegt wurde.
25 | * Liefert genau dann true, wenn getMandant nicht null liefert.
26 | * @return true, wenn es ein vom User angelegtes Objekt ist.
27 | * @throws RemoteException
28 | */
29 | public boolean isUserObject() throws RemoteException;
30 |
31 | /**
32 | * Prueft, ob das Objekt vom User geaendert werden darf.
33 | * Liefert genau dann true, wenn getMandant nicht null liefert oder das
34 | * Schreiben im Systemkontenrahmen explizit erlaubt ist.
35 | * @return true, wenn das Objekt geaendert werden darf.
36 | * @throws RemoteException
37 | */
38 | public boolean canChange() throws RemoteException;
39 |
40 | /**
41 | * Liefert den Mandanten, wenn es ein vom User angelegtes Objekt ist, sonst immer null.
42 | * @return Mandant.
43 | * @throws RemoteException
44 | */
45 | public Mandant getMandant() throws RemoteException;
46 |
47 | /**
48 | * Speichert den Mandanten.
49 | * Laesst sich nur bei neu angelegten Objekten ausfuehren.
50 | * Andernfalls wird eine RemoteException geworfen.
51 | * @param mandant
52 | * @throws RemoteException
53 | */
54 | public void setMandant(Mandant mandant) throws RemoteException;
55 |
56 | }
57 |
58 | /*********************************************************************
59 | * $Log: UserObject.java,v $
60 | * Revision 1.4 2010/06/01 16:37:22 willuhn
61 | * @C Konstanten von Fibu zu Settings verschoben
62 | * @N Systemkontenrahmen nach expliziter Freigabe in den Einstellungen aenderbar
63 | * @C Unterscheidung zwischen canChange und isUserObject in UserObject
64 | * @C Code-Cleanup
65 | * @R alte CVS-Logs entfernt
66 | *
67 | * Revision 1.3 2009/07/03 10:52:19 willuhn
68 | * @N Merged SYNTAX_1_3_BRANCH into HEAD
69 | *
70 | * Revision 1.1 2006/01/02 15:18:29 willuhn
71 | * @N Buchungs-Vorlagen
72 | *
73 | **********************************************************************/
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/rmi/Version.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 | package de.willuhn.jameica.fibu.rmi;
11 |
12 | import de.willuhn.datasource.rmi.DBObject;
13 |
14 | /**
15 | * Diese Klasse bildet die Datenbank Versionen in Fibu ab.
16 | * @author willuhn
17 | */
18 | public interface Version extends DBObject
19 | {
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/search/AnlagevermoegenSearchProvider.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/search/AnlagevermoegenSearchProvider.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AbschreibungImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AbschreibungImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AbschreibungsBuchungImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AbschreibungsBuchungImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AbstractBaseBuchungImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AbstractBaseBuchungImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AbstractTransferImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AbstractTransferImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AbstractUpdate.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AbstractUpdate.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AbstractUserObjectImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AbstractUserObjectImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AnfangsbestandImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AnfangsbestandImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/AnlagevermoegenImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/AnlagevermoegenImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/BuchungImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/BuchungImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/BuchungsEngineImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/BuchungsEngineImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/BuchungstemplateImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/BuchungstemplateImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/DBPropertyImpl.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 |
11 | package de.willuhn.jameica.fibu.server;
12 |
13 | import java.rmi.RemoteException;
14 |
15 | import de.willuhn.datasource.db.AbstractDBObject;
16 | import de.willuhn.jameica.fibu.rmi.DBProperty;
17 |
18 | /**
19 | * Speichert ein einzelnes Property in der Datenbank.
20 | */
21 | public class DBPropertyImpl extends AbstractDBObject implements DBProperty
22 | {
23 |
24 | /**
25 | * ct
26 | * @throws RemoteException
27 | */
28 | public DBPropertyImpl() throws RemoteException
29 | {
30 | super();
31 | }
32 |
33 | /**
34 | * @see de.willuhn.datasource.db.AbstractDBObject#getPrimaryAttribute()
35 | */
36 | public String getPrimaryAttribute() throws RemoteException
37 | {
38 | return "name";
39 | }
40 |
41 | /**
42 | * @see de.willuhn.datasource.db.AbstractDBObject#getTableName()
43 | */
44 | protected String getTableName()
45 | {
46 | return "property";
47 | }
48 |
49 | /**
50 | * @see de.willuhn.jameica.fibu.rmi.DBProperty#getName()
51 | */
52 | public String getName() throws RemoteException
53 | {
54 | return (String) getAttribute("name");
55 | }
56 |
57 | /**
58 | * @see de.willuhn.jameica.fibu.rmi.DBProperty#getValue()
59 | */
60 | public String getValue() throws RemoteException
61 | {
62 | return (String) getAttribute("content");
63 | }
64 |
65 | /**
66 | * @see de.willuhn.jameica.fibu.rmi.DBProperty#setName(java.lang.String)
67 | */
68 | public void setName(String name) throws RemoteException
69 | {
70 | setAttribute("name",name);
71 | }
72 |
73 | /**
74 | * @see de.willuhn.jameica.fibu.rmi.DBProperty#setValue(java.lang.String)
75 | */
76 | public void setValue(String value) throws RemoteException
77 | {
78 | setAttribute("content",value);
79 | }
80 |
81 | }
82 |
83 |
84 | /*********************************************************************
85 | * $Log: DBPropertyImpl.java,v $
86 | * Revision 1.3 2010/06/03 10:25:47 willuhn
87 | * *** empty log message ***
88 | *
89 | * Revision 1.2 2010/06/03 10:25:09 willuhn
90 | * @B wrong import
91 | *
92 | * Revision 1.1 2010/06/02 15:52:34 willuhn
93 | * @N DBProperties jetzt auch in SynTAX
94 | *
95 | **********************************************************************/
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/DBServiceImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/DBServiceImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/DBSupportH2Impl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/DBSupportH2Impl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/DBSupportMcKoiImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/DBSupportMcKoiImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/DBSupportMySqlImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/DBSupportMySqlImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/FinanzamtImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/FinanzamtImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/GeschaeftsjahrImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/GeschaeftsjahrImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/HilfsBuchungImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/HilfsBuchungImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/KontenrahmenImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/KontenrahmenImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/KontoImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/KontoImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/KontoartImpl.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 | package de.willuhn.jameica.fibu.server;
11 |
12 | import java.rmi.RemoteException;
13 |
14 | import de.willuhn.datasource.db.AbstractDBObject;
15 | import de.willuhn.jameica.fibu.rmi.Kontoart;
16 | import de.willuhn.util.ApplicationException;
17 |
18 | /**
19 | * @author willuhn
20 | */
21 | public class KontoartImpl extends AbstractDBObject implements Kontoart
22 | {
23 |
24 | /**
25 | * Erzeugt eine neue Kontoart.
26 | * @throws RemoteException
27 | */
28 | public KontoartImpl() throws RemoteException
29 | {
30 | super();
31 | }
32 |
33 | /**
34 | * @see de.willuhn.datasource.db.AbstractDBObject#getTableName()
35 | */
36 | protected String getTableName()
37 | {
38 | return "kontoart";
39 | }
40 |
41 | /**
42 | * @see de.willuhn.datasource.GenericObject#getPrimaryAttribute()
43 | */
44 | public String getPrimaryAttribute() throws RemoteException
45 | {
46 | return "name";
47 | }
48 |
49 | /**
50 | * @see de.willuhn.jameica.fibu.rmi.Kontoart#getName()
51 | */
52 | public String getName() throws RemoteException
53 | {
54 | return (String) getAttribute("name");
55 | }
56 |
57 | /**
58 | * @see de.willuhn.jameica.fibu.rmi.Kontoart#getKontoArt()
59 | */
60 | public int getKontoArt() throws RemoteException
61 | {
62 | try {
63 | return Integer.parseInt(getID());
64 | }
65 | catch (NumberFormatException ne)
66 | {
67 | return KONTOART_UNGUELTIG;
68 | }
69 | }
70 |
71 | /**
72 | * @see de.willuhn.jameica.fibu.rmi.Kontoart#isSteuerpflichtig()
73 | */
74 | public boolean isSteuerpflichtig() throws RemoteException
75 | {
76 | return (getKontoArt() == Kontoart.KONTOART_ERLOES ||
77 | getKontoArt() == Kontoart.KONTOART_AUFWAND ||
78 | getKontoArt() == Kontoart.KONTOART_ANLAGE);
79 | }
80 |
81 | /**
82 | * @see de.willuhn.datasource.db.AbstractDBObject#delete()
83 | */
84 | @Override
85 | public void delete() throws RemoteException, ApplicationException
86 | {
87 | super.delete();
88 | Cache.clear(Kontoart.class);
89 | }
90 |
91 | /**
92 | * @see de.willuhn.datasource.db.AbstractDBObject#store()
93 | */
94 | @Override
95 | public void store() throws RemoteException, ApplicationException
96 | {
97 | super.store();
98 | Cache.clear(Kontoart.class);
99 | }
100 |
101 | }
102 |
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/KontotypImpl.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2004 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 | package de.willuhn.jameica.fibu.server;
11 |
12 | import java.rmi.RemoteException;
13 |
14 | import de.willuhn.datasource.db.AbstractDBObject;
15 | import de.willuhn.jameica.fibu.rmi.Kontotyp;
16 | import de.willuhn.util.ApplicationException;
17 |
18 | /**
19 | * @author willuhn
20 | */
21 | public class KontotypImpl extends AbstractDBObject implements Kontotyp
22 | {
23 |
24 | /**
25 | * Erzeugt einen neuen Kontotyp.
26 | * @throws RemoteException
27 | */
28 | public KontotypImpl() throws RemoteException
29 | {
30 | super();
31 | }
32 |
33 | /**
34 | * @see de.willuhn.datasource.db.AbstractDBObject#getTableName()
35 | */
36 | protected String getTableName()
37 | {
38 | return "kontotyp";
39 | }
40 |
41 | /**
42 | * @see de.willuhn.datasource.GenericObject#getPrimaryAttribute()
43 | */
44 | public String getPrimaryAttribute() throws RemoteException
45 | {
46 | return "name";
47 | }
48 |
49 | /**
50 | * @see de.willuhn.jameica.fibu.rmi.Kontotyp#getName()
51 | */
52 | public String getName() throws RemoteException
53 | {
54 | return (String) getAttribute("name");
55 | }
56 |
57 | /**
58 | * @see de.willuhn.jameica.fibu.rmi.Kontotyp#getKontoTyp()
59 | */
60 | public int getKontoTyp() throws RemoteException
61 | {
62 | try {
63 | return Integer.parseInt(getID());
64 | }
65 | catch (NumberFormatException ne)
66 | {
67 | return KONTOTYP_UNGUELTIG;
68 | }
69 | }
70 |
71 | /**
72 | * @see de.willuhn.datasource.db.AbstractDBObject#delete()
73 | */
74 | @Override
75 | public void delete() throws RemoteException, ApplicationException
76 | {
77 | super.delete();
78 | Cache.clear(Kontotyp.class);
79 | }
80 |
81 | /**
82 | * @see de.willuhn.datasource.db.AbstractDBObject#store()
83 | */
84 | @Override
85 | public void store() throws RemoteException, ApplicationException
86 | {
87 | super.store();
88 | Cache.clear(Kontotyp.class);
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/KontozuordnungImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/KontozuordnungImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/MandantImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/MandantImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/SaldenCache.java:
--------------------------------------------------------------------------------
1 | /**********************************************************************
2 | *
3 | * Copyright (c) 2021 Olaf Willuhn
4 | * All rights reserved.
5 | *
6 | * This software is copyrighted work licensed under the terms of the
7 | * Jameica License. Please consult the file "LICENSE" for details.
8 | *
9 | **********************************************************************/
10 |
11 | package de.willuhn.jameica.fibu.server;
12 |
13 | import java.rmi.RemoteException;
14 | import java.util.Enumeration;
15 |
16 | import de.willuhn.jameica.fibu.rmi.Geschaeftsjahr;
17 | import de.willuhn.util.Session;
18 |
19 | /**
20 | * Cache fuer die Salden.
21 | */
22 | public class SaldenCache
23 | {
24 | private static Session session = new Session();
25 |
26 | /**
27 | * Liefert den gecachten Saldo oder null.
28 | * @param jahr Geschaeftsjahr.
29 | * @param kontonummer Kontonummer.
30 | * @return Saldo.
31 | * @throws RemoteException
32 | */
33 | public static Double get(Geschaeftsjahr jahr, String kontonummer) throws RemoteException
34 | {
35 | if (jahr == null || kontonummer == null || kontonummer.length() == 0)
36 | return null;
37 |
38 | Session sj = (Session) session.get(jahr.getID());
39 | if (sj == null)
40 | return null;
41 | return (Double) sj.get(kontonummer);
42 | }
43 |
44 | /**
45 | * Entfernt den Saldo aus dem Cache.
46 | * @param kontonummer
47 | */
48 | public static void remove(String kontonummer)
49 | {
50 | if (kontonummer == null || kontonummer.length() == 0)
51 | return;
52 |
53 | Enumeration e = session.keys();
54 | while (e.hasMoreElements())
55 | {
56 | Session sj = (Session) session.get(e.nextElement());
57 | sj.remove(kontonummer);
58 | }
59 | }
60 |
61 | /**
62 | * Entfernt den Saldo aus dem Cache.
63 | * @param jahr Geschaeftsjahr.
64 | * @param kontonummer
65 | * @throws RemoteException
66 | */
67 | public static void remove(Geschaeftsjahr jahr, String kontonummer) throws RemoteException
68 | {
69 | if (jahr == null || kontonummer == null || kontonummer.length() == 0)
70 | return;
71 |
72 | Session sj = (Session) session.get(jahr.getID());
73 | sj.remove(kontonummer);
74 | }
75 |
76 | /**
77 | * Speichert den Saldo.
78 | * @param jahr Geschaeftsjahr.
79 | * @param kontonummer
80 | * @param d
81 | * @throws RemoteException
82 | */
83 | public static void put(Geschaeftsjahr jahr, String kontonummer, Double d) throws RemoteException
84 | {
85 | if (jahr == null || kontonummer == null || kontonummer.length() == 0)
86 | return;
87 |
88 | Session sj = (Session) session.get(jahr.getID());
89 | if (sj == null)
90 | {
91 | sj = new Session();
92 | session.put(jahr.getID(),sj);
93 | }
94 | sj.put(kontonummer,d);
95 | }
96 |
97 | }
98 |
99 |
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/SteuerImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/SteuerImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/server/VersionImpl.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/server/VersionImpl.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/util/BuchungUtil.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/util/BuchungUtil.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/util/KontenrahmenUtil.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/util/KontenrahmenUtil.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/util/KontoUtil.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/util/KontoUtil.java
--------------------------------------------------------------------------------
/src/de/willuhn/jameica/fibu/util/NumberUtil.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/util/NumberUtil.java
--------------------------------------------------------------------------------
/src/help/de_de/de.willuhn.jameica.fibu.gui.views.AnlagevermoegenNeu2.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/help/de_de/de.willuhn.jameica.fibu.gui.views.AnlagevermoegenNeu2.txt
--------------------------------------------------------------------------------
/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart1CreateDatabase.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart1CreateDatabase.txt
--------------------------------------------------------------------------------
/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart2CreateFinanzamt.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart2CreateFinanzamt.txt
--------------------------------------------------------------------------------
/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart3CreateMandant.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart3CreateMandant.txt
--------------------------------------------------------------------------------
/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart4CreateGeschaeftsjahr.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/help/de_de/de.willuhn.jameica.fibu.gui.views.FirstStart4CreateGeschaeftsjahr.txt
--------------------------------------------------------------------------------
/src/help/de_de/de.willuhn.jameica.fibu.gui.views.KontozuordnungNeu.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/help/de_de/de.willuhn.jameica.fibu.gui.views.KontozuordnungNeu.txt
--------------------------------------------------------------------------------
/src/img/150/applications-office.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/150/applications-office.png
--------------------------------------------------------------------------------
/src/img/150/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/150/edit-copy.png
--------------------------------------------------------------------------------
/src/img/150/emblem-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/150/emblem-default.png
--------------------------------------------------------------------------------
/src/img/150/emblem-documents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/150/emblem-documents.png
--------------------------------------------------------------------------------
/src/img/150/system-file-manager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/150/system-file-manager.png
--------------------------------------------------------------------------------
/src/img/150/system-users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/150/system-users.png
--------------------------------------------------------------------------------
/src/img/150/x-office-spreadsheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/150/x-office-spreadsheet.png
--------------------------------------------------------------------------------
/src/img/200/applications-office.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/200/applications-office.png
--------------------------------------------------------------------------------
/src/img/200/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/200/edit-copy.png
--------------------------------------------------------------------------------
/src/img/200/emblem-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/200/emblem-default.png
--------------------------------------------------------------------------------
/src/img/200/emblem-documents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/200/emblem-documents.png
--------------------------------------------------------------------------------
/src/img/200/system-file-manager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/200/system-file-manager.png
--------------------------------------------------------------------------------
/src/img/200/system-users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/200/system-users.png
--------------------------------------------------------------------------------
/src/img/200/x-office-spreadsheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/200/x-office-spreadsheet.png
--------------------------------------------------------------------------------
/src/img/300/applications-office.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/300/applications-office.png
--------------------------------------------------------------------------------
/src/img/300/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/300/edit-copy.png
--------------------------------------------------------------------------------
/src/img/300/emblem-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/300/emblem-default.png
--------------------------------------------------------------------------------
/src/img/300/emblem-documents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/300/emblem-documents.png
--------------------------------------------------------------------------------
/src/img/300/system-file-manager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/300/system-file-manager.png
--------------------------------------------------------------------------------
/src/img/300/system-users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/300/system-users.png
--------------------------------------------------------------------------------
/src/img/300/x-office-spreadsheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/300/x-office-spreadsheet.png
--------------------------------------------------------------------------------
/src/img/applications-office.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/applications-office.png
--------------------------------------------------------------------------------
/src/img/edit-copy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/edit-copy.png
--------------------------------------------------------------------------------
/src/img/emblem-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/emblem-default.png
--------------------------------------------------------------------------------
/src/img/emblem-documents.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/emblem-documents.png
--------------------------------------------------------------------------------
/src/img/system-file-manager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/system-file-manager.png
--------------------------------------------------------------------------------
/src/img/system-users.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/system-users.png
--------------------------------------------------------------------------------
/src/img/x-office-spreadsheet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/img/x-office-spreadsheet.png
--------------------------------------------------------------------------------
/updates/.gitignore:
--------------------------------------------------------------------------------
1 | *.class
2 |
--------------------------------------------------------------------------------
/updates/htwo-update0011.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE kontozuordnung (
2 | id IDENTITY(1),
3 | name varchar(255) NOT NULL,
4 | mandant_id int(10) NOT NULL,
5 | konto_id int(10) NOT NULL,
6 | hb_konto_id int(10) NOT NULL,
7 | UNIQUE (id),
8 | PRIMARY KEY (id)
9 | );
10 |
11 | ALTER TABLE kontozuordnung ADD CONSTRAINT FK_kontozuordnung_konto FOREIGN KEY (konto_id) REFERENCES konto (id) DEFERRABLE;
12 | ALTER TABLE kontozuordnung ADD CONSTRAINT FK_kontozuordnung_mandant FOREIGN KEY (mandant_id) REFERENCES mandant (id) DEFERRABLE;
13 |
14 | COMMIT;
15 |
--------------------------------------------------------------------------------
/updates/htwo-update0012.sql:
--------------------------------------------------------------------------------
1 | ----------------------------
2 | --Steuer zu steuer_id umziehen
3 | ----------------------------
4 |
5 | ALTER TABLE buchung add steuer_id INT(10) NULL;
6 | ALTER TABLE buchung add CONSTRAINT fk_buchung_steuer FOREIGN KEY (steuer_id) REFERENCES steuer (id) DEFERRABLE;
7 |
8 | ----------------------------
9 | --Fehlende Steuersaetze anlegen
10 | ----------------------------
11 | INSERT INTO steuer (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(CASE WHEN stk.kontotyp_id = 1 THEN 'Umsatzsteuer' ELSE 'Vorsteuer' END,b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchung b, konto k, steuer s, konto stk, geschaeftsjahr gj WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and gj.id = b.geschaeftsjahr_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = gj.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id);
12 |
13 | ----------------------------
14 | ---Steuer_id bei templates hinzufuegen
15 | ---------------------------
16 | ALTER TABLE buchungstemplate add steuer_id INT(10) NULL;
17 | ALTER TABLE buchungstemplate add CONSTRAINT fk_buchungstemplate_steuer FOREIGN KEY (steuer_id) REFERENCES steuer (id) DEFERRABLE;
18 |
19 | ----------------------------
20 | --Fehlende Steuersaetze anlegen
21 | ----------------------------
22 | INSERT INTO steuer (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(CASE WHEN stk.kontotyp_id = 1 THEN 'Umsatzsteuer' ELSE 'Vorsteuer' END,b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchungstemplate b, konto k, steuer s, konto stk WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = b.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id);
23 |
24 | COMMIT;
25 |
--------------------------------------------------------------------------------
/updates/mckoi-update0001.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erzeugt die Tabelle "version"
3 | -- ----------------------------------------------------------------------
4 |
5 | CREATE TABLE version (
6 | id NUMERIC default UNIQUEKEY('version'),
7 | name varchar(255) NOT NULL,
8 | version int(5) NOT NULL,
9 | UNIQUE (id),
10 | PRIMARY KEY (id)
11 | );
12 |
13 | COMMIT;
14 |
15 | INSERT INTO version (name,version) values ('db',0);
16 |
17 | COMMIT;
18 |
19 | -- ----------------------------------------------------------------------
20 | -- $Log: mckoi-update0001.sql,v $
21 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
22 | -- @B Da fehlten ein paar Commits
23 | --
24 | -- Revision 1.1 2010/06/02 15:47:42 willuhn
25 | -- @N Separierte SQL-Scripts fuer McKoi und MySQL - dann brauchen wir nicht dauernd eine extra Update-Klasse sondern koennen Plain-SQL-Scripts nehmen
26 | --
27 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mckoi-update0002.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erzeugt die Tabelle "property"
3 | -- ----------------------------------------------------------------------
4 |
5 | CREATE TABLE property (
6 | id NUMERIC default UNIQUEKEY('property'),
7 | name varchar(1000) NOT NULL,
8 | content varchar(1000) NULL,
9 | UNIQUE (id),
10 | UNIQUE (name),
11 | PRIMARY KEY (id)
12 | );
13 |
14 | COMMIT;
15 |
16 | -- ----------------------------------------------------------------------
17 | -- $Log: mckoi-update0002.sql,v $
18 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
19 | -- @B Da fehlten ein paar Commits
20 | --
21 | -- Revision 1.1 2010/06/02 15:47:42 willuhn
22 | -- @N Separierte SQL-Scripts fuer McKoi und MySQL - dann brauchen wir nicht dauernd eine extra Update-Klasse sondern koennen Plain-SQL-Scripts nehmen
23 | --
24 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mckoi-update0003.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "buchungstemplate" um die Spalte "hb_umsatztyp_id" aus Hibiscus
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE buchungstemplate add hb_umsatztyp_id varchar(10);
6 |
7 | COMMIT;
8 |
9 | -- ----------------------------------------------------------------------
10 | -- $Log: mckoi-update0003.sql,v $
11 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
12 | -- @B Da fehlten ein paar Commits
13 | --
14 | -- Revision 1.1 2010/06/03 14:26:16 willuhn
15 | -- @N Extension zum Zuordnen von Hibiscus-Kategorien zu SynTAX-Buchungsvorlagen
16 | -- @C Code-Cleanup
17 | --
18 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mckoi-update0004.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Korrigiert die Bezeichnung des Steuerkontos (16%) in SKR03 und die Zuordnung zum Steuersatz
3 | -- ----------------------------------------------------------------------
4 |
5 | update konto set name='Abziehbare Vorsteuer 19%' where id=135 and name='Abziehbare Vorsteuer 16%';
6 | update steuer set steuerkonto_id=1 where id=1 and steuerkonto_id=135 and satz='16';
7 | update steuer set steuerkonto_id=135 where id=8 and steuerkonto_id=1 and satz='19';
8 |
9 | COMMIT;
10 |
11 | -- ----------------------------------------------------------------------
12 | -- $Log: mckoi-update0004.sql,v $
13 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
14 | -- @B Da fehlten ein paar Commits
15 | --
16 | -- Revision 1.1 2010/06/04 09:26:28 willuhn
17 | -- @N Korrektur der 16%-Steuerkonten in SKR03 jetzt auch als Update
18 | --
19 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mckoi-update0005.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "steuer"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE steuer add ust_nr_steuer varchar(10);
6 | ALTER TABLE steuer add ust_nr_bemessung varchar(10);
7 |
8 | COMMIT;
9 |
10 | -- SKR03
11 | update steuer set ust_nr_steuer='66' where id = 1;
12 | update steuer set ust_nr_steuer='66' where id = 2;
13 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 3;
14 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 4;
15 | update steuer set ust_nr_bemessung='86' where id = 5;
16 | update steuer set ust_nr_bemessung='48' where id = 7;
17 | update steuer set ust_nr_steuer='66' where id = 8;
18 | update steuer set ust_nr_bemessung='81' where id = 9;
19 |
20 | COMMIT;
21 |
22 | -- SKR04
23 | update steuer set ust_nr_steuer='66' where id = 1001;
24 | update steuer set ust_nr_steuer='66' where id = 1002;
25 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 1003;
26 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 1004;
27 | update steuer set ust_nr_bemessung='86' where id = 1005;
28 | update steuer set ust_nr_bemessung='48' where id = 1007;
29 | update steuer set ust_nr_steuer='66' where id = 1008;
30 | update steuer set ust_nr_bemessung='81' where id = 1009;
31 |
32 | COMMIT;
33 |
34 | -- ----------------------------------------------------------------------
35 | -- $Log: mckoi-update0005.sql,v $
36 | -- Revision 1.2 2010/06/04 13:49:48 willuhn
37 | -- @N Kennzeichen fuer Steuer und Bemessungsgrundlage fuer UST-Voranmeldung
38 | --
39 | -- Revision 1.1 2010/06/04 13:34:45 willuhn
40 | -- @B Da fehlten ein paar Commits
41 | --
42 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mckoi-update0006.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "anlagevermoegen"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE anlagevermoegen add status int(2) null;
6 |
7 | COMMIT;
8 |
9 | -- ----------------------------------------------------------------------
10 | -- $Log: mckoi-update0006.sql,v $
11 | -- Revision 1.1 2010/09/20 10:27:36 willuhn
12 | -- @N Neuer Status fuer Anlagevermoegen - damit kann ein Anlagegut auch dann noch in der Auswertung erscheinen, wenn es zwar abgeschrieben ist aber sich noch im Bestand befindet. Siehe http://www.onlinebanking-forum.de/phpBB2/viewtopic.php?p=69910#69910
13 | --
14 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mckoi-update0007.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "buchung"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE buchung add kommentar varchar(1000) null;
6 |
7 | COMMIT;
8 |
--------------------------------------------------------------------------------
/updates/mckoi-update0008.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "mandant"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE mandant add kuerzel varchar(10) NULL;
6 |
7 | COMMIT;
8 |
--------------------------------------------------------------------------------
/updates/mckoi-update0009.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Spalte "kontonummer"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER CREATE TABLE konto (
6 | id NUMERIC default UNIQUEKEY('konto'),
7 | kontoart_id int(10) NOT NULL,
8 | kontotyp_id int(10) NULL,
9 | kontonummer varchar(6) NOT NULL,
10 | name varchar(255) NOT NULL,
11 | kontenrahmen_id int(10) NOT NULL,
12 | steuer_id int(10) NULL,
13 | mandant_id int(10) NULL,
14 | UNIQUE (id),
15 | UNIQUE (kontenrahmen_id,kontonummer),
16 | PRIMARY KEY (id)
17 | );
18 |
19 | COMMIT;
20 |
--------------------------------------------------------------------------------
/updates/mckoi-update0010.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE buchung add split_id INT(10) NULL;
2 | ALTER TABLE buchung add CONSTRAINT fk_buchung_buchung FOREIGN KEY (split_id) REFERENCES buchung (id) DEFERRABLE;
3 |
4 | COMMIT ;
5 |
--------------------------------------------------------------------------------
/updates/mckoi-update0011.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE kontozuordnung (
2 | id NUMERIC default UNIQUEKEY('kontozuordnung'),
3 | name varchar(255) NOT NULL,
4 | mandant_id int(10) NOT NULL,
5 | konto_id int(10) NOT NULL,
6 | hb_konto_id int(10) NOT NULL,
7 | UNIQUE (id),
8 | PRIMARY KEY (id)
9 | );
10 |
11 | ALTER TABLE kontozuordnung ADD CONSTRAINT FK_kontozuordnung_konto FOREIGN KEY (konto_id) REFERENCES konto (id) DEFERRABLE;
12 | ALTER TABLE kontozuordnung ADD CONSTRAINT FK_kontozuordnung_mandant FOREIGN KEY (mandant_id) REFERENCES mandant (id) DEFERRABLE;
13 |
14 | COMMIT;
15 |
--------------------------------------------------------------------------------
/updates/mckoi-update0012.sql:
--------------------------------------------------------------------------------
1 | ----------------------------
2 | --Steuer zu steuer_id umziehen
3 | ----------------------------
4 |
5 | ALTER TABLE buchung add steuer_id INT(10) NULL;
6 | ALTER TABLE buchung add CONSTRAINT fk_buchung_steuer FOREIGN KEY (steuer_id) REFERENCES steuer (id);
7 |
8 | ---------------------------
9 | --Fehlende Steuersaetze anlegen
10 | ---------------------------
11 | INSERT INTO steuer (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(IF (stk.kontotyp_id = 1,'Umsatzsteuer ','Vorsteuer '),b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchung b, konto k, steuer s, konto stk, geschaeftsjahr gj WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and gj.id = b.geschaeftsjahr_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = gj.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id);
12 |
13 | ----------------------------
14 | ---Steuer_id bei templates hinzufuegen
15 | ---------------------------
16 | ALTER TABLE buchungstemplate add steuer_id INT(10) NULL;
17 | ALTER TABLE buchungstemplate add CONSTRAINT fk_buchungstemplate_steuer FOREIGN KEY (steuer_id) REFERENCES steuer (id);
18 |
19 | ---------------------------
20 | --Fehlende Steuersaetze anlegen
21 | ---------------------------
22 | INSERT INTO steuer (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(IF (stk.kontotyp_id = 1,'Umsatzsteuer ','Vorsteuer '),b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchungstemplate b, konto k, steuer s, konto stk WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = b.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id);
23 |
24 | COMMIT;
--------------------------------------------------------------------------------
/updates/mysql-update0001.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erzeugt die Tabelle "version"
3 | -- ----------------------------------------------------------------------
4 |
5 | CREATE TABLE version (
6 | id int(10) AUTO_INCREMENT,
7 | name varchar(255) NOT NULL,
8 | version int(5) NOT NULL,
9 | UNIQUE (id),
10 | PRIMARY KEY (id)
11 | ) ENGINE = InnoDB;
12 |
13 | COMMIT;
14 |
15 | INSERT INTO version (name,version) values ('db',0);
16 |
17 | COMMIT;
18 |
19 | -- ----------------------------------------------------------------------
20 | -- $Log: mysql-update0001.sql,v $
21 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
22 | -- @B Da fehlten ein paar Commits
23 | --
24 | -- Revision 1.1 2010/06/02 15:47:42 willuhn
25 | -- @N Separierte SQL-Scripts fuer McKoi und MySQL - dann brauchen wir nicht dauernd eine extra Update-Klasse sondern koennen Plain-SQL-Scripts nehmen
26 | --
27 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mysql-update0002.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erzeugt die Tabelle "version"
3 | -- ----------------------------------------------------------------------
4 |
5 | CREATE TABLE property (
6 | id int(10) AUTO_INCREMENT,
7 | name text NOT NULL,
8 | content text NULL,
9 | UNIQUE (id),
10 | UNIQUE KEY name (name(255)),
11 | PRIMARY KEY (id)
12 | ) ENGINE = InnoDB;
13 |
14 | COMMIT;
15 |
16 | -- ----------------------------------------------------------------------
17 | -- $Log: mysql-update0002.sql,v $
18 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
19 | -- @B Da fehlten ein paar Commits
20 | --
21 | -- Revision 1.1 2010/06/02 15:47:42 willuhn
22 | -- @N Separierte SQL-Scripts fuer McKoi und MySQL - dann brauchen wir nicht dauernd eine extra Update-Klasse sondern koennen Plain-SQL-Scripts nehmen
23 | --
24 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mysql-update0003.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "buchungstemplate" um die Spalte "hb_umsatztyp_id" aus Hibiscus
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE buchungstemplate add hb_umsatztyp_id varchar(10);
6 |
7 | COMMIT;
8 |
9 | -- ----------------------------------------------------------------------
10 | -- $Log: mysql-update0003.sql,v $
11 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
12 | -- @B Da fehlten ein paar Commits
13 | --
14 | -- Revision 1.1 2010/06/03 14:26:16 willuhn
15 | -- @N Extension zum Zuordnen von Hibiscus-Kategorien zu SynTAX-Buchungsvorlagen
16 | -- @C Code-Cleanup
17 | --
18 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mysql-update0004.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Korrigiert die Bezeichnung des Steuerkontos (16%) in SKR03 und die Zuordnung zum Steuersatz
3 | -- ----------------------------------------------------------------------
4 |
5 | update konto set name='Abziehbare Vorsteuer 19%' where id=135 and name='Abziehbare Vorsteuer 16%';
6 | update steuer set steuerkonto_id=1 where id=1 and steuerkonto_id=135 and satz='16';
7 | update steuer set steuerkonto_id=135 where id=8 and steuerkonto_id=1 and satz='19';
8 |
9 | COMMIT;
10 |
11 | -- ----------------------------------------------------------------------
12 | -- $Log: mysql-update0004.sql,v $
13 | -- Revision 1.2 2010/06/04 13:34:45 willuhn
14 | -- @B Da fehlten ein paar Commits
15 | --
16 | -- Revision 1.1 2010/06/04 09:26:28 willuhn
17 | -- @N Korrektur der 16%-Steuerkonten in SKR03 jetzt auch als Update
18 | --
19 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mysql-update0005.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "steuer"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE steuer add ust_nr_steuer varchar(10);
6 | ALTER TABLE steuer add ust_nr_bemessung varchar(10);
7 |
8 | COMMIT;
9 |
10 | -- SKR03
11 | update steuer set ust_nr_steuer='66' where id = 1;
12 | update steuer set ust_nr_steuer='66' where id = 2;
13 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 3;
14 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 4;
15 | update steuer set ust_nr_bemessung='86' where id = 5;
16 | update steuer set ust_nr_bemessung='48' where id = 7;
17 | update steuer set ust_nr_steuer='66' where id = 8;
18 | update steuer set ust_nr_bemessung='81' where id = 9;
19 |
20 | COMMIT;
21 |
22 | -- SKR04
23 | update steuer set ust_nr_steuer='66' where id = 1001;
24 | update steuer set ust_nr_steuer='66' where id = 1002;
25 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 1003;
26 | update steuer set ust_nr_steuer='36',ust_nr_bemessung='35' where id = 1004;
27 | update steuer set ust_nr_bemessung='86' where id = 1005;
28 | update steuer set ust_nr_bemessung='48' where id = 1007;
29 | update steuer set ust_nr_steuer='66' where id = 1008;
30 | update steuer set ust_nr_bemessung='81' where id = 1009;
31 |
32 | COMMIT;
33 |
34 | -- ----------------------------------------------------------------------
35 | -- $Log: mysql-update0005.sql,v $
36 | -- Revision 1.2 2010/06/04 13:49:48 willuhn
37 | -- @N Kennzeichen fuer Steuer und Bemessungsgrundlage fuer UST-Voranmeldung
38 | --
39 | -- Revision 1.1 2010/06/04 13:34:45 willuhn
40 | -- @B Da fehlten ein paar Commits
41 | --
42 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mysql-update0006.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "anlagevermoegen"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE anlagevermoegen add status int(2) null;
6 |
7 | COMMIT;
8 |
9 | -- ----------------------------------------------------------------------
10 | -- $Log: mysql-update0006.sql,v $
11 | -- Revision 1.1 2010/09/20 10:27:36 willuhn
12 | -- @N Neuer Status fuer Anlagevermoegen - damit kann ein Anlagegut auch dann noch in der Auswertung erscheinen, wenn es zwar abgeschrieben ist aber sich noch im Bestand befindet. Siehe http://www.onlinebanking-forum.de/phpBB2/viewtopic.php?p=69910#69910
13 | --
14 | -- ----------------------------------------------------------------------
--------------------------------------------------------------------------------
/updates/mysql-update0007.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "buchung"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE buchung add kommentar text NULL;
6 |
7 | COMMIT;
8 |
--------------------------------------------------------------------------------
/updates/mysql-update0008.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Tabelle "mandant"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE mandant add kuerzel varchar(10) NULL;
6 |
7 | COMMIT;
8 |
--------------------------------------------------------------------------------
/updates/mysql-update0009.sql:
--------------------------------------------------------------------------------
1 | -- ----------------------------------------------------------------------
2 | -- Erweitert die Spalte "kontonummer"
3 | -- ----------------------------------------------------------------------
4 |
5 | ALTER TABLE konto change kontonummer kontonummer varchar(6) NOT NULL;
6 |
7 | COMMIT;
8 |
--------------------------------------------------------------------------------
/updates/mysql-update0010.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE buchung add split_id INT(10) NULL;
2 | ALTER TABLE buchung add CONSTRAINT fk_buchung_buchung FOREIGN KEY (split_id) REFERENCES buchung (id);
3 |
4 | COMMIT ;
5 |
--------------------------------------------------------------------------------
/updates/mysql-update0011.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE IF NOT EXISTS kontozuordnung (
2 | id int(10) NOT NULL AUTO_INCREMENT,
3 | name varchar(255) NOT NULL,
4 | mandant_id int(10) NOT NULL,
5 | konto_id int(10) NOT NULL,
6 | hb_konto_id int(10) NOT NULL,
7 | UNIQUE (id),
8 | PRIMARY KEY (id)
9 | ) ENGINE = InnoDB;
10 |
11 | ALTER TABLE kontozuordnung ADD CONSTRAINT FK_kontozuordnung_konto FOREIGN KEY (konto_id) REFERENCES konto (id);
12 | ALTER TABLE kontozuordnung ADD CONSTRAINT FK_kontozuordnung_mandant FOREIGN KEY (mandant_id) REFERENCES mandant (id);
13 |
14 | COMMIT;
15 |
--------------------------------------------------------------------------------
/updates/mysql-update0012.sql:
--------------------------------------------------------------------------------
1 | ----------------------------
2 | --Steuer zu steuer_id umziehen
3 | ----------------------------
4 |
5 | ALTER TABLE buchung add steuer_id INT(10) NULL;
6 | ALTER TABLE buchung add CONSTRAINT fk_buchung_steuer FOREIGN KEY (steuer_id) REFERENCES steuer (id);
7 |
8 | ----------------------------
9 | --Fehlende Steuersaetze anlegen
10 | ----------------------------
11 | INSERT INTO steuer (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(IF (stk.kontotyp_id = 1,'Umsatzsteuer ','Vorsteuer '),b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchung b, konto k, steuer s, konto stk, geschaeftsjahr gj WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and gj.id = b.geschaeftsjahr_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = gj.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id);
12 |
13 | ----------------------------
14 | ---Steuer_id bei templates hinzufuegen
15 | ---------------------------
16 | ALTER TABLE buchungstemplate add steuer_id INT(10) NULL;
17 | ALTER TABLE buchungstemplate add CONSTRAINT fk_buchungstemplate_steuer FOREIGN KEY (steuer_id) REFERENCES steuer (id);
18 |
19 | ----------------------------
20 | --Fehlende Steuersaetze anlegen
21 | ----------------------------
22 | INSERT INTO steuer (name, satz, steuerkonto_id,ust_nr_steuer,ust_nr_bemessung) SELECT DISTINCT CONCAT(IF (stk.kontotyp_id = 1,'Umsatzsteuer ','Vorsteuer '),b.steuer,'%'), b.steuer,s.steuerkonto_id,s.ust_nr_steuer,s.ust_nr_bemessung FROM buchungstemplate b, konto k, steuer s, konto stk WHERE b.steuer is not null and ((k.id = b.habenkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5)) or (k.id = b.sollkonto_id and (k.kontoart_id != 3 and k.kontoart_id != 5))) and s.steuerkonto_id is not null and s.id = k.steuer_id and stk.id = s.steuerkonto_id and concat(stk.kontenrahmen_id,stk.kontotyp_id, b.steuer) not in (SELECT DISTINCT concat(stk2.kontenrahmen_id,stk2.kontotyp_id, s2.satz) FROM steuer s2,konto stk2 WHERE stk2.kontotyp_id is not null and (s2.mandant_id = b.mandant_id or s2.mandant_id is null) and s2.steuerkonto_id = stk2.id);
23 |
24 | COMMIT;
25 |
--------------------------------------------------------------------------------