├── .classpath ├── .cvsignore ├── .gitignore ├── .project ├── .settings └── org.eclipse.core.resources.prefs ├── COPYING ├── LICENSE ├── build ├── BUILD ├── ChangeLog ├── build.properties └── build.xml ├── doku ├── datev │ ├── DATEV SKR03 2010.pdf │ ├── dvrewe_assci_import_datenformate.pdf │ └── dvrewe_standard_importformate2.pdf └── idea-format │ ├── Beschreibungsstandard-GDPdU-01-08-2002.pdf │ ├── index.xml │ └── komprimiert.xml ├── lib └── velocity │ ├── anlagevermoegen-einzel.vm │ ├── anlagevermoegen.vm │ ├── buchungsjournal.vm │ ├── ergebnisuebersicht.monatlich.vm │ ├── idea.xml.vm │ ├── kontoauszug.anlagevermoegen.vm │ ├── kontoauszug.aufwaende.vm │ ├── kontoauszug.brutto.vm │ ├── kontoauszug.erloese.vm │ ├── kontoauszug.geldkonto.vm │ ├── kontoauszug.netto.vm │ ├── kontoauszug.privatkonto.vm │ ├── kontoauszug.steuer-sammelkonto.vm │ ├── kontoauszug.vm │ ├── saldenliste.vm │ ├── template.vm │ ├── ueberschussrechnung.vm │ └── ustva.vm ├── plugin.xml ├── sql ├── create_htwo.sql ├── create_mckoi.sql ├── create_mysql.sql └── init.sql ├── src ├── de │ └── willuhn │ │ └── jameica │ │ └── fibu │ │ ├── Fibu.java │ │ ├── Settings.java │ │ ├── UpdateProvider.java │ │ ├── ext │ │ └── hibiscus │ │ │ ├── Buchungstemplate.java │ │ │ ├── UmsatzListMenu.java │ │ │ └── UmsatzListPart.java │ │ ├── gui │ │ ├── action │ │ │ ├── AbschreibungDelete.java │ │ │ ├── AnfangsbestandDelete.java │ │ │ ├── AnfangsbestandListe.java │ │ │ ├── AnfangsbestandNeu.java │ │ │ ├── AnlagevermoegenAbschreiben.java │ │ │ ├── AnlagevermoegenDelete.java │ │ │ ├── AnlagevermoegenListe.java │ │ │ ├── AnlagevermoegenNeu.java │ │ │ ├── Auswertungen.java │ │ │ ├── BuchungDelete.java │ │ │ ├── BuchungDuplicate.java │ │ │ ├── BuchungExport.java │ │ │ ├── BuchungImport.java │ │ │ ├── BuchungListe.java │ │ │ ├── BuchungMarkChecked.java │ │ │ ├── BuchungNeu.java │ │ │ ├── BuchungReversal.java │ │ │ ├── BuchungSplitNeu.java │ │ │ ├── BuchungstemplateExport.java │ │ │ ├── BuchungstemplateImport.java │ │ │ ├── BuchungstemplateNeu.java │ │ │ ├── DBObjectDelete.java │ │ │ ├── Einstellungen.java │ │ │ ├── FinanzamtDelete.java │ │ │ ├── FinanzamtListe.java │ │ │ ├── FinanzamtNeu.java │ │ │ ├── GeschaeftsjahrChoose.java │ │ │ ├── GeschaeftsjahrClose.java │ │ │ ├── GeschaeftsjahrDelete.java │ │ │ ├── GeschaeftsjahrNeu.java │ │ │ ├── KontenrahmenClone.java │ │ │ ├── KontoDelete.java │ │ │ ├── KontoListe.java │ │ │ ├── KontoNeu.java │ │ │ ├── KontozuordnungNeu.java │ │ │ ├── MandantDelete.java │ │ │ ├── MandantListe.java │ │ │ ├── MandantNeu.java │ │ │ ├── SteuerDelete.java │ │ │ └── SteuerNeu.java │ │ ├── boxes │ │ │ ├── FirstStart.java │ │ │ └── H2Migration.java │ │ ├── controller │ │ │ ├── AnfangsbestandControl.java │ │ │ ├── AnlagevermoegenControl.java │ │ │ ├── AuswertungControl.java │ │ │ ├── BuchungControl.java │ │ │ ├── BuchungSplitControl.java │ │ │ ├── BuchungstemplateControl.java │ │ │ ├── EinstellungenControl.java │ │ │ ├── FinanzamtControl.java │ │ │ ├── FirstStartControl.java │ │ │ ├── GeschaeftsjahrControl.java │ │ │ ├── KontoControl.java │ │ │ ├── KontozuordnungControl.java │ │ │ ├── MandantControl.java │ │ │ └── SteuerControl.java │ │ ├── dialogs │ │ │ ├── AbschreibungDialog.java │ │ │ ├── ExportDialog.java │ │ │ ├── GeschaeftsjahrAuswahlDialog.java │ │ │ ├── ImportDialog.java │ │ │ ├── KontenrahmenCloneDialog.java │ │ │ ├── KontoAuswahlDialog.java │ │ │ └── MandantAuswahlDialog.java │ │ ├── input │ │ │ └── KontoInput.java │ │ ├── menus │ │ │ ├── AbschreibungListMenu.java │ │ │ ├── AnfangsbestandListMenu.java │ │ │ ├── AnlagevermoegenListMenu.java │ │ │ ├── BuchungListMenu.java │ │ │ ├── BuchungSplitListMenu.java │ │ │ ├── BuchungstemplateListMenu.java │ │ │ ├── FinanzamtListMenu.java │ │ │ ├── GJCheckedContextMenuItem.java │ │ │ ├── GJCheckedSingleContextMenuItem.java │ │ │ ├── GJContextMenuItem.java │ │ │ ├── GeschaeftsjahrListMenu.java │ │ │ ├── KontoListMenu.java │ │ │ ├── KontozuordnungListMenu.java │ │ │ ├── MandantListMenu.java │ │ │ └── SteuerListMenu.java │ │ ├── part │ │ │ ├── AbschreibungList.java │ │ │ ├── AnfangsbestandList.java │ │ │ ├── AnlagevermoegenList.java │ │ │ ├── BuchungList.java │ │ │ ├── BuchungSplitList.java │ │ │ ├── BuchungstemplateList.java │ │ │ ├── FinanzamtList.java │ │ │ ├── GeschaeftsjahrList.java │ │ │ ├── KontenrahmenList.java │ │ │ ├── KontoList.java │ │ │ ├── KontoZuordnungList.java │ │ │ ├── MandantList.java │ │ │ └── SteuerList.java │ │ ├── util │ │ │ └── CustomDateFormat.java │ │ └── views │ │ │ ├── AnfangsbestandListe.java │ │ │ ├── AnfangsbestandNeu.java │ │ │ ├── AnlagevermoegenListe.java │ │ │ ├── AnlagevermoegenNeu.java │ │ │ ├── Auswertungen.java │ │ │ ├── BuchungListe.java │ │ │ ├── BuchungNeu.java │ │ │ ├── BuchungSplit.java │ │ │ ├── BuchungstemplateNeu.java │ │ │ ├── Einstellungen.java │ │ │ ├── FinanzamtListe.java │ │ │ ├── FinanzamtNeu.java │ │ │ ├── FirstStart1CreateDatabase.java │ │ │ ├── FirstStart2CreateFinanzamt.java │ │ │ ├── FirstStart3CreateMandant.java │ │ │ ├── FirstStart4CreateGeschaeftsjahr.java │ │ │ ├── GeschaeftsjahrNeu.java │ │ │ ├── KontoListe.java │ │ │ ├── KontoNeu.java │ │ │ ├── KontozuordnungNeu.java │ │ │ ├── MandantListe.java │ │ │ ├── MandantNeu.java │ │ │ └── SteuerNeu.java │ │ ├── io │ │ ├── DatevExporter.java │ │ ├── Exporter.java │ │ ├── IO.java │ │ ├── IOFormat.java │ │ ├── IORegistry.java │ │ ├── Importer.java │ │ ├── XMLBuchungImporter.java │ │ ├── XMLExporter.java │ │ ├── XMLImporter.java │ │ └── report │ │ │ ├── AbstractReport.java │ │ │ ├── AbstractVelocityReport.java │ │ │ ├── IdeaFormatReport.java │ │ │ ├── Report.java │ │ │ ├── ReportData.java │ │ │ ├── ReportRegistry.java │ │ │ ├── VelocityReportAvEinzel.java │ │ │ ├── VelocityReportAvGesamt.java │ │ │ ├── VelocityReportBuchungList.java │ │ │ ├── VelocityReportData.java │ │ │ ├── VelocityReportEinnahmeUeberschussRechnung.java │ │ │ ├── VelocityReportErgebnisUebersichtMonatlich.java │ │ │ ├── VelocityReportKontoAuszug.java │ │ │ ├── VelocityReportSaldenListe.java │ │ │ ├── VelocityReportUstVoranmeldung.java │ │ │ └── idea │ │ │ ├── AbschreibungTable.java │ │ │ ├── AnfangsbestandTable.java │ │ │ ├── AnlagevermoegenTable.java │ │ │ ├── BuchungTable.java │ │ │ ├── KontoTable.java │ │ │ ├── KontoartTable.java │ │ │ ├── KontotypTable.java │ │ │ ├── SteuerTable.java │ │ │ └── Table.java │ │ ├── messaging │ │ ├── BuchungImportMessageConsumer.java │ │ ├── HibiscusUmsatzMarkCheckedMessageConsumer.java │ │ ├── ObjectChangedMessage.java │ │ ├── ObjectDeletedMessage.java │ │ ├── ObjectImportedMessage.java │ │ ├── ReportMessage.java │ │ └── ReportMessageConsumer.java │ │ ├── migration │ │ ├── AbstractDatabaseMigrationTask.java │ │ └── McKoiToH2MigrationTask.java │ │ ├── rmi │ │ ├── Abschreibung.java │ │ ├── AbschreibungsBuchung.java │ │ ├── Anfangsbestand.java │ │ ├── Anlagevermoegen.java │ │ ├── BaseBuchung.java │ │ ├── Betriebsergebnis.java │ │ ├── Buchung.java │ │ ├── BuchungsEngine.java │ │ ├── Buchungstemplate.java │ │ ├── CustomSerializer.java │ │ ├── DBProperty.java │ │ ├── DBService.java │ │ ├── DBSupport.java │ │ ├── Finanzamt.java │ │ ├── Geschaeftsjahr.java │ │ ├── HilfsBuchung.java │ │ ├── Kontenrahmen.java │ │ ├── Konto.java │ │ ├── Kontoart.java │ │ ├── Kontotyp.java │ │ ├── Kontozuordnung.java │ │ ├── Mandant.java │ │ ├── Steuer.java │ │ ├── Transfer.java │ │ ├── UserObject.java │ │ └── Version.java │ │ ├── search │ │ ├── AnlagevermoegenSearchProvider.java │ │ ├── BuchungSearchProvider.java │ │ └── KontoSearchProvider.java │ │ ├── server │ │ ├── AbschreibungImpl.java │ │ ├── AbschreibungsBuchungImpl.java │ │ ├── AbstractBaseBuchungImpl.java │ │ ├── AbstractDBSupportImpl.java │ │ ├── AbstractTransferImpl.java │ │ ├── AbstractUpdate.java │ │ ├── AbstractUserObjectImpl.java │ │ ├── AnfangsbestandImpl.java │ │ ├── AnlagevermoegenImpl.java │ │ ├── BetriebsergebnisImpl.java │ │ ├── BuchungImpl.java │ │ ├── BuchungsEngineImpl.java │ │ ├── BuchungstemplateImpl.java │ │ ├── Cache.java │ │ ├── DBPropertyImpl.java │ │ ├── DBServiceImpl.java │ │ ├── DBSupportH2Impl.java │ │ ├── DBSupportMcKoiImpl.java │ │ ├── DBSupportMySqlImpl.java │ │ ├── FinanzamtImpl.java │ │ ├── GeschaeftsjahrImpl.java │ │ ├── HilfsBuchungImpl.java │ │ ├── KontenrahmenImpl.java │ │ ├── KontoImpl.java │ │ ├── KontoartImpl.java │ │ ├── KontotypImpl.java │ │ ├── KontozuordnungImpl.java │ │ ├── MandantImpl.java │ │ ├── Math.java │ │ ├── SaldenCache.java │ │ ├── SteuerImpl.java │ │ └── VersionImpl.java │ │ └── util │ │ ├── BuchungUtil.java │ │ ├── DBPropertyUtil.java │ │ ├── GeschaeftsjahrUtil.java │ │ ├── KontenrahmenUtil.java │ │ ├── KontoUtil.java │ │ └── NumberUtil.java ├── help │ └── de_de │ │ ├── de.willuhn.jameica.fibu.gui.views.AnlagevermoegenNeu2.txt │ │ ├── de.willuhn.jameica.fibu.gui.views.FirstStart1CreateDatabase.txt │ │ ├── de.willuhn.jameica.fibu.gui.views.FirstStart2CreateFinanzamt.txt │ │ ├── de.willuhn.jameica.fibu.gui.views.FirstStart3CreateMandant.txt │ │ ├── de.willuhn.jameica.fibu.gui.views.FirstStart4CreateGeschaeftsjahr.txt │ │ └── de.willuhn.jameica.fibu.gui.views.KontozuordnungNeu.txt ├── img │ ├── 150 │ │ ├── applications-office.png │ │ ├── edit-copy.png │ │ ├── emblem-default.png │ │ ├── emblem-documents.png │ │ ├── system-file-manager.png │ │ ├── system-users.png │ │ └── x-office-spreadsheet.png │ ├── 200 │ │ ├── applications-office.png │ │ ├── edit-copy.png │ │ ├── emblem-default.png │ │ ├── emblem-documents.png │ │ ├── system-file-manager.png │ │ ├── system-users.png │ │ └── x-office-spreadsheet.png │ ├── 300 │ │ ├── applications-office.png │ │ ├── edit-copy.png │ │ ├── emblem-default.png │ │ ├── emblem-documents.png │ │ ├── system-file-manager.png │ │ ├── system-users.png │ │ └── x-office-spreadsheet.png │ ├── applications-office.png │ ├── edit-copy.png │ ├── emblem-default.png │ ├── emblem-documents.png │ ├── system-file-manager.png │ ├── system-users.png │ └── x-office-spreadsheet.png └── res │ └── gdpdu-01-08-2002.dtd ├── test └── de │ └── willuhn │ └── jameica │ └── fibu │ └── util │ └── TestGeschaeftsjahrUtil.java └── updates ├── .gitignore ├── htwo-update0011.sql ├── htwo-update0012.sql ├── mckoi-update0001.sql ├── mckoi-update0002.sql ├── mckoi-update0003.sql ├── mckoi-update0004.sql ├── mckoi-update0005.sql ├── mckoi-update0006.sql ├── mckoi-update0007.sql ├── mckoi-update0008.sql ├── mckoi-update0009.sql ├── mckoi-update0010.sql ├── mckoi-update0011.sql ├── mckoi-update0012.sql ├── mysql-update0001.sql ├── mysql-update0002.sql ├── mysql-update0003.sql ├── mysql-update0004.sql ├── mysql-update0005.sql ├── mysql-update0006.sql ├── mysql-update0007.sql ├── mysql-update0008.sql ├── mysql-update0009.sql ├── mysql-update0010.sql ├── mysql-update0011.sql └── mysql-update0012.sql /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.cvsignore: -------------------------------------------------------------------------------- 1 | bin 2 | doc 3 | releases 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | releases 3 | test-bin 4 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | syntax 4 | 5 | 6 | jameica 7 | 8 | 9 | 10 | org.eclipse.jdt.core.javabuilder 11 | 12 | 13 | 14 | 15 | 16 | org.eclipse.jdt.core.javanature 17 | 18 | 19 | -------------------------------------------------------------------------------- /.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//lib/velocity/template.vm=ISO-8859-15 3 | encoding//sql/init.sql=ISO-8859-15 4 | encoding/=ISO-8859-15 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | May 14, 2018 2 | 3 | Jameica is licensed under the terms of the GNU General Public License. 4 | 5 | Linking this program statically or dynamically with other modules is making a 6 | combined work based on this program. Thus, the terms and conditions of the 7 | GNU General Public License cover the whole combination. 8 | 9 | As a special exception, the copyright holders of this program give you 10 | permission to link this proram with independent modules to produce an 11 | executable, regardless of the license terms of these independent modules, and 12 | to copy and distribute the resulting executable under terms of your choice, 13 | provided that you also meet, for each linked independent module, the terms and 14 | conditions of the license of that module. An independent module is a module 15 | which is not derived from or based on this program. If you modify this program, 16 | you may extend this exception to your version of the program, but you are not 17 | obligated to do so. If you do not wish to do so, delete this exception 18 | statement from your version. 19 | 20 | You should have received a copy of the GNU General Public License along with 21 | Jameica; see the file COPYING. If not, write to 22 | 23 | Free Software Foundation 24 | 59 Temple Place - Suite 330 25 | Boston 26 | MA 02111-1307 27 | USA 28 | 29 | -------------------------------------------------------------------------------- /build/BUILD: -------------------------------------------------------------------------------- 1 | #Build Number for ANT. Do not edit! 2 | #Mon May 14 11:07:11 CEST 2018 3 | build.number=183 4 | -------------------------------------------------------------------------------- /build/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/build/ChangeLog -------------------------------------------------------------------------------- /build/build.properties: -------------------------------------------------------------------------------- 1 | define.encoding = ISO-8859-1 2 | define.jameica.dir = ../jameica 3 | define.hibiscus.dir = ../hibiscus 4 | define.compilepath = ${define.jameica.dir}/lib/swt/linux/swt.jar;\ 5 | ${define.jameica.dir}/bin/;\ 6 | ${define.jameica.dir}/releases/jameica-lib.jar;\ 7 | ${define.jameica.dir}/lib/de_willuhn_ds/de_willuhn_ds.jar;\ 8 | ${define.jameica.dir}/lib/de_willuhn_util/de_willuhn_util.jar;\ 9 | ${define.jameica.dir}/lib/jakarta_commons/commons-lang-2.6.jar;\ 10 | ${define.jameica.dir}/lib/velocity/velocity-1.7.jar;\ 11 | ${define.hibiscus.dir}/releases/hibiscus-lib.jar;\ 12 | ${define.hibiscus.dir}/bin/ 13 | define.javadoc.package = de.willuhn.jameica 14 | 15 | define.java.version = 1.8 16 | 17 | signjar.keystore = /home/willuhn/.jameica/jameica.ca/jameica.ca.keystore 18 | signjar.storepass = /home/willuhn/.jameica/jameica.ca/jameica.ca.storepass 19 | signjar.alias = cn=jameica updates,o=olaf willuhn,ou=jameica.org,c=de 20 | -------------------------------------------------------------------------------- /doku/datev/DATEV SKR03 2010.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/doku/datev/DATEV SKR03 2010.pdf -------------------------------------------------------------------------------- /doku/datev/dvrewe_assci_import_datenformate.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/doku/datev/dvrewe_assci_import_datenformate.pdf -------------------------------------------------------------------------------- /doku/datev/dvrewe_standard_importformate2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/doku/datev/dvrewe_standard_importformate2.pdf -------------------------------------------------------------------------------- /doku/idea-format/Beschreibungsstandard-GDPdU-01-08-2002.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/doku/idea-format/Beschreibungsstandard-GDPdU-01-08-2002.pdf -------------------------------------------------------------------------------- /doku/idea-format/komprimiert.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1.2 5 | 6 | Audicon GmbH 7 | Germany 8 | A compressed sample DataSet 9 | 10 | uncompress.bat 11 | 12 | Disk 1 13 | 14 | dummy.csv 15 | 16 | 17 | dummy 18 | 19 | 20 | 21 |
22 |
23 |
24 | -------------------------------------------------------------------------------- /lib/velocity/anlagevermoegen-einzel.vm: -------------------------------------------------------------------------------- 1 | #set($anlagevermoegen = $!{export.getObjects("anlagevermoegen")}) 2 | 3 | #foreach($av in $anlagevermoegen) 4 | 5 | #set($anfangsbestand = $av.getAnfangsbestand(${jahr})) 6 | 7 |

8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 |
Bezeichnung des Anlage-Gegenstandes$!{av.Name}
Anschaffungsdatum$!{dateformat.format(${av.Anschaffungsdatum})}Anschaffungskosten$!{decimalformat.format(${av.Anschaffungskosten})} ${eur}
AbschreibungsartlinearErinnerungswert0,00 ${eur}
Nutzungsdauer (in Jahren)$!{av.Nutzungsdauer}Restwert$!{decimalformat.format(${av.getRestwert(${jahr})})} ${eur}
 
Buchwert zum $!{dateformat.format(${jahr.Beginn})}$!{decimalformat.format($anfangsbestand)} ${eur}
- Abschreibung$!{decimalformat.format(${av.getJahresAbschreibung(${jahr})})} ${eur}
  (darin enthaltene Sonderabschreibung)$!{decimalformat.format(${av.getJahresSonderAbschreibung(${jahr})})} ${eur}
 
Restwert zum $!{dateformat.format(${jahr.Ende})}$!{decimalformat.format(${av.getRestwert(${jahr})})} ${eur}
 
66 | #end 67 | 68 | -------------------------------------------------------------------------------- /lib/velocity/anlagevermoegen.vm: -------------------------------------------------------------------------------- 1 | #set($anlagevermoegen = $!{export.getObjects("anlagevermoegen")}) 2 | 3 | $math.reset("anschaffungskosten") 4 | $math.reset("anfangsbestand") 5 | $math.reset("jahresabschreibung") 6 | $math.reset("restwert") 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | #foreach($av in $anlagevermoegen) 20 | #set($anschaffungskosten = $av.Anschaffungskosten) 21 | #set($anfangsbestand = $av.getAnfangsbestand(${jahr})) 22 | #set($jahresabschreibung = $av.getJahresAbschreibung(${jahr})) 23 | #set($restwert = $av.getRestwert(${jahr})) 24 | 25 | $math.add("anschaffungskosten",${anschaffungskosten}) 26 | $math.add("anfangsbestand",${anfangsbestand}) 27 | $math.add("jahresabschreibung",${jahresabschreibung}) 28 | $math.add("restwert",${restwert}) 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | #end 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 |
BezeichnungAnschaffungsdatumAnschaffungskostenNutzungsdauer (in Jahren)AnfangsbestandJahres-AfARestwert
$!{av.Name}$!{dateformat.format(${av.Anschaffungsdatum})}$!{decimalformat.format(${anschaffungskosten})} ${eur}$!{av.Nutzungsdauer}$!{decimalformat.format(${anfangsbestand})} ${eur}$!{decimalformat.format(${jahresabschreibung})} ${eur}$!{decimalformat.format(${restwert})} ${eur}
 
Summen:$!{decimalformat.format($math.get("anschaffungskosten"))} ${eur} $!{decimalformat.format($math.get("anfangsbestand"))} ${eur}$!{decimalformat.format($math.get("jahresabschreibung"))} ${eur}$!{decimalformat.format($math.get("restwert"))} ${eur}
 
-------------------------------------------------------------------------------- /lib/velocity/buchungsjournal.vm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/lib/velocity/buchungsjournal.vm -------------------------------------------------------------------------------- /lib/velocity/ergebnisuebersicht.monatlich.vm: -------------------------------------------------------------------------------- 1 | #set($monate = ${jahr.BetriebsergebnisseMonatlich.entrySet()}) 2 | $math.reset("gesamtEinnahmen") 3 | $math.reset("gesamtAusgaben") 4 | $math.reset("gesamtErgebnis") 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | #foreach($monat in $monate) 13 | #set($name = ${monat.key}) 14 | #set($betriebsergebnis = ${monat.value}) 15 | #set($ausgaben = ${betriebsergebnis.AusgabenWert}) 16 | $math.add("gesamtAusgaben",${ausgaben}) 17 | #set($einnahmen = ${betriebsergebnis.EinnahmenWert}) 18 | $math.add("gesamtEinnahmen",${einnahmen}) 19 | #set($ergebnis = ${betriebsergebnis.Betriebsergebnis}) 20 | $math.add("gesamtErgebnis",${ergebnis}) 21 | 22 | 23 | 24 | 25 | 26 | 27 | #end 28 | 29 | 30 | 31 | 32 | 33 | 34 |
MonatEinnahmenAusgabenErgebnis
${name}${decimalformat.format(${einnahmen})} ${eur}${decimalformat.format(${ausgaben})} ${eur}${decimalformat.format(${ergebnis})} ${eur}
Gesamt${decimalformat.format($math.get("gesamtEinnahmen"))} ${eur}${decimalformat.format($math.get("gesamtAusgaben"))} ${eur}${decimalformat.format($math.get("gesamtErgebnis"))} ${eur}
35 | -------------------------------------------------------------------------------- /lib/velocity/idea.xml.vm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/lib/velocity/idea.xml.vm -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.anlagevermoegen.vm: -------------------------------------------------------------------------------- 1 | #parse("kontoauszug.netto.vm") 2 | -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.aufwaende.vm: -------------------------------------------------------------------------------- 1 | #parse("kontoauszug.netto.vm") 2 | -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.brutto.vm: -------------------------------------------------------------------------------- 1 | #* Konto-Auszug, der mit Brutto-Betraegen rechnet *# 2 | 3 | #set($buchungen = $!{export.getObjects("buchungen.${konto.Kontonummer}")}) 4 | #foreach($buchung in $buchungen) 5 | 6 | #set($brutto = $buchung.BruttoBetrag) 7 | 8 | 9 | $!{dateformat.format(${buchung.Datum})} 10 | $!{buchung.Belegnummer} 11 | $!{buchung.Text} 12 | 13 | #set($gegen = $buchung.SollKonto) 14 | #if ($gegen.Kontonummer == $konto.Kontonummer) 15 | $!{decimalformat.format(${brutto})} ${eur} 16 |   17 | #set($gegen = $buchung.HabenKonto) 18 | $math.add("soll",${brutto}) 19 | #else 20 |   21 | $!{decimalformat.format(${brutto})} ${eur} 22 | $math.add("haben",${brutto}) 23 | #end 24 | $!{decimalformat.format($buchung.Steuer)} % 25 | $!{gegen.Kontonummer} 26 | 27 | #end 28 | 29 | $math.substract("umsatz","soll",$math.get("haben")) 30 | -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.erloese.vm: -------------------------------------------------------------------------------- 1 | #parse("kontoauszug.netto.vm") 2 | -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.geldkonto.vm: -------------------------------------------------------------------------------- 1 | #parse("kontoauszug.brutto.vm") 2 | -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.netto.vm: -------------------------------------------------------------------------------- 1 | #* Konto-Auszug, der mit Netto-Betraegen rechnet *# 2 | 3 | #set($buchungen = $!{export.getObjects("buchungen.${konto.Kontonummer}")}) 4 | #foreach($buchung in $buchungen) 5 | 6 | #set($netto = $buchung.Betrag) 7 | 8 | $!{dateformat.format(${buchung.Datum})} 9 | $!{buchung.Belegnummer} 10 | $!{buchung.Text} 11 | 12 | #set($gegen = $buchung.SollKonto) 13 | #if ($gegen.Kontonummer == $konto.Kontonummer) 14 | $!{decimalformat.format(${netto})} ${eur} 15 |   16 | #set($gegen = $buchung.HabenKonto) 17 | $math.add("soll",${netto}) 18 | #else 19 |   20 | $!{decimalformat.format(${netto})} ${eur} 21 | $math.add("haben",${netto}) 22 | #end 23 | $!{decimalformat.format($buchung.Steuer)} % 24 | $!{gegen.Kontonummer} 25 | 26 | #end 27 | 28 | $math.substract("umsatz","soll",$math.get("haben")) 29 | -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.privatkonto.vm: -------------------------------------------------------------------------------- 1 | #parse("kontoauszug.brutto.vm") 2 | -------------------------------------------------------------------------------- /lib/velocity/kontoauszug.steuer-sammelkonto.vm: -------------------------------------------------------------------------------- 1 | #parse("kontoauszug.netto.vm") 2 | -------------------------------------------------------------------------------- /lib/velocity/saldenliste.vm: -------------------------------------------------------------------------------- 1 | #set($konten = $!{export.getObjects("konten")}) 2 | 3 | #set($start = $!{export.getObjects("start")}) 4 | #set($end = $!{export.getObjects("end")}) 5 | $math.reset("ab") 6 | $math.reset("saldo") 7 | $math.reset("umsatz") 8 | 9 | #if($start) 10 | #if($end) 11 |

Zeitraum: $!{dateformat.format(${start})} - $!{dateformat.format(${end})}

12 |
13 | #end 14 | #end 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | #foreach($konto in $konten) 26 | 27 | 28 | 29 | #if($konto.getAnfangsbestand(${jahr})) 30 | #set($ab = $konto.getAnfangsbestand(${jahr})) 31 | $math.add("ab",$ab.Betrag) 32 | 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 | 43 | 44 | 45 | #end 46 | 47 | 48 | 49 | 50 | 51 | 52 |
Konto-Nr.Konto-BezeichnungAnfangsbestandUmsatz im ZeitraumSaldo zum $!{dateformat.format(${end})}
$!{konto.Kontonummer}$!{konto.Name}$!{decimalformat.format(${ab.Betrag})} ${eur} $!{decimalformat.format($umsatz)} ${eur}$!{decimalformat.format($saldo)} ${eur}
Summen$!{decimalformat.format($math.get("ab"))} ${eur}$!{decimalformat.format($math.get("umsatz"))} ${eur}$!{decimalformat.format($math.get("saldo"))} ${eur}
53 | -------------------------------------------------------------------------------- /lib/velocity/ueberschussrechnung.vm: -------------------------------------------------------------------------------- 1 | #set($start = $!{export.getObjects("start")}) 2 | #set($end = $!{export.getObjects("end")}) 3 | #set($ergebnis = $!{jahr.getBetriebsergebnis($start,$end)}) 4 | #set($einnahmen = $!{ergebnis.Einnahmen}) 5 | #set($ausgaben = $!{ergebnis.Ausgaben}) 6 | 7 |

Zeitraum: $!{dateformat.format(${start})} - $!{dateformat.format(${end})}

8 | 9 |

I. Aufteilung der Beträge nach Konten:

10 | 11 | $math.reset("einnahmen") 12 | $math.reset("ausgaben") 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | #foreach($konto in $einnahmen) 23 | 24 | #set($umsatz = $konto.getUmsatz(${jahr},${start},${end})) 25 | $math.add("einnahmen",${umsatz}) 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | #end 35 | 36 | #foreach($konto in $ausgaben) 37 | 38 | #set($umsatz = $konto.getUmsatz(${jahr},${start},${end})) 39 | $math.add("ausgaben",${umsatz}) 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | #end 49 | 50 | 51 | 52 | 53 | 54 | 55 |
Kto-Nr.Konto-BezeichnungEinnahmenAusgaben
$!{konto.Kontonummer}$!{konto.Name}$!{decimalformat.format(${umsatz})} ${eur} 
$!{konto.Kontonummer}$!{konto.Name} $!{decimalformat.format(${umsatz})} ${eur}
Summen:$!{decimalformat.format($math.get("einnahmen"))} ${eur}$!{decimalformat.format($math.get("ausgaben"))} ${eur}
56 | 57 |

58 |

II.Ergebnis:

59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 |
Betriebseinnahmen$!{decimalformat.format($math.get("einnahmen"))} ${eur}
- Betriebsausgaben$!{decimalformat.format($math.get("ausgaben"))} ${eur}
 
Ergebnis$!{decimalformat.format($ergebnis.Betriebsergebnis)} ${eur}
77 | -------------------------------------------------------------------------------- /lib/velocity/ustva.vm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/lib/velocity/ustva.vm -------------------------------------------------------------------------------- /plugin.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/plugin.xml -------------------------------------------------------------------------------- /sql/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/sql/init.sql -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/Settings.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/Settings.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/ext/hibiscus/UmsatzListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/ext/hibiscus/UmsatzListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/AbschreibungDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/AbschreibungDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/AnfangsbestandDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/AnfangsbestandDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/AnfangsbestandListe.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Laden der Anfangsbestaende. 19 | */ 20 | public class AnfangsbestandListe implements Action 21 | { 22 | 23 | /** 24 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 25 | */ 26 | public void handleAction(Object context) throws ApplicationException 27 | { 28 | GUI.startView(de.willuhn.jameica.fibu.gui.views.AnfangsbestandListe.class,context); 29 | } 30 | 31 | } 32 | 33 | 34 | /********************************************************************* 35 | * $Log: AnfangsbestandListe.java,v $ 36 | * Revision 1.3 2005/09/26 15:15:39 willuhn 37 | * *** empty log message *** 38 | * 39 | * Revision 1.2 2005/09/01 16:34:45 willuhn 40 | * *** empty log message *** 41 | * 42 | * Revision 1.1 2005/08/22 16:37:22 willuhn 43 | * @N Anfangsbestaende 44 | * 45 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/AnlagevermoegenDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/AnlagevermoegenDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/AnlagevermoegenListe.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Laden der Anfangsbestaende. 19 | */ 20 | public class AnlagevermoegenListe implements Action 21 | { 22 | 23 | /** 24 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 25 | */ 26 | public void handleAction(Object context) throws ApplicationException 27 | { 28 | GUI.startView(de.willuhn.jameica.fibu.gui.views.AnlagevermoegenListe.class,context); 29 | } 30 | 31 | } 32 | 33 | 34 | /********************************************************************* 35 | * $Log: AnlagevermoegenListe.java,v $ 36 | * Revision 1.3 2005/09/26 15:15:39 willuhn 37 | * *** empty log message *** 38 | * 39 | * Revision 1.2 2005/09/01 16:34:44 willuhn 40 | * *** empty log message *** 41 | * 42 | * Revision 1.1 2005/08/29 14:26:56 willuhn 43 | * @N Anlagevermoegen, Abschreibungen 44 | * 45 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/AnlagevermoegenNeu.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.gui.action; 12 | 13 | import java.rmi.RemoteException; 14 | 15 | import de.willuhn.jameica.fibu.Settings; 16 | import de.willuhn.jameica.fibu.rmi.Anlagevermoegen; 17 | import de.willuhn.jameica.fibu.rmi.Mandant; 18 | import de.willuhn.jameica.gui.Action; 19 | import de.willuhn.jameica.gui.GUI; 20 | import de.willuhn.logging.Logger; 21 | import de.willuhn.util.ApplicationException; 22 | 23 | /** 24 | * Action zum Anlegen eines neuen Anlagevermoegens. 25 | */ 26 | public class AnlagevermoegenNeu implements Action 27 | { 28 | 29 | /** 30 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 31 | */ 32 | public void handleAction(Object context) throws ApplicationException 33 | { 34 | Anlagevermoegen a = null; 35 | if (context != null) 36 | { 37 | if (context instanceof Mandant) 38 | { 39 | try 40 | { 41 | a = (Anlagevermoegen) Settings.getDBService().createObject(Anlagevermoegen.class,null); 42 | a.setMandant((Mandant)context); 43 | } 44 | catch (RemoteException e) 45 | { 46 | Logger.error("error while creating anlagevermoegen",e); 47 | } 48 | } 49 | else 50 | { 51 | a = (Anlagevermoegen) context; 52 | } 53 | } 54 | 55 | GUI.startView(de.willuhn.jameica.fibu.gui.views.AnlagevermoegenNeu.class,a); 56 | } 57 | } 58 | 59 | 60 | /********************************************************************* 61 | * $Log: AnlagevermoegenNeu.java,v $ 62 | * Revision 1.3 2005/09/26 15:15:39 willuhn 63 | * *** empty log message *** 64 | * 65 | * Revision 1.2 2005/09/01 16:34:45 willuhn 66 | * *** empty log message *** 67 | * 68 | * Revision 1.1 2005/08/29 14:26:56 willuhn 69 | * @N Anlagevermoegen, Abschreibungen 70 | * 71 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/Auswertungen.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Start der Auswertungen. 19 | */ 20 | public class Auswertungen implements Action 21 | { 22 | 23 | /** 24 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 25 | */ 26 | public void handleAction(Object context) throws ApplicationException 27 | { 28 | GUI.startView(de.willuhn.jameica.fibu.gui.views.Auswertungen.class,null); 29 | } 30 | 31 | } 32 | 33 | 34 | /********************************************************************* 35 | * $Log: Auswertungen.java,v $ 36 | * Revision 1.1 2005/10/06 22:50:32 willuhn 37 | * @N auswertungen 38 | * 39 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungDuplicate.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungDuplicate.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungExport.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungExport.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungImport.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.gui.action; 11 | 12 | import de.willuhn.jameica.fibu.Fibu; 13 | import de.willuhn.jameica.fibu.gui.dialogs.ImportDialog; 14 | import de.willuhn.jameica.fibu.rmi.Buchung; 15 | import de.willuhn.jameica.gui.Action; 16 | import de.willuhn.jameica.messaging.StatusBarMessage; 17 | import de.willuhn.jameica.system.Application; 18 | import de.willuhn.jameica.system.OperationCanceledException; 19 | import de.willuhn.logging.Logger; 20 | import de.willuhn.util.ApplicationException; 21 | import de.willuhn.util.I18N; 22 | 23 | /** 24 | * Action, ueber die Buchungen importiert werden koennen. 25 | * Es wird kein Parameter erwartet. 26 | */ 27 | public class BuchungImport implements Action 28 | { 29 | private final static I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N(); 30 | 31 | /** 32 | * Erwartet keinen Parameter. 33 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 34 | */ 35 | public void handleAction(Object context) throws ApplicationException 36 | { 37 | 38 | try 39 | { 40 | ImportDialog d = new ImportDialog(null, Buchung.class); 41 | d.open(); 42 | } 43 | catch (OperationCanceledException oce) 44 | { 45 | // ignore 46 | } 47 | catch (ApplicationException ae) 48 | { 49 | throw ae; 50 | } 51 | catch (Exception e) 52 | { 53 | Logger.error("error while importing templates",e); 54 | Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Fehler beim Importieren der Buchungen: {0}",e.getMessage()),StatusBarMessage.TYPE_ERROR)); 55 | } 56 | } 57 | 58 | } 59 | 60 | 61 | /********************************************************************** 62 | * $Log: BuchungImport.java,v $ 63 | * Revision 1.1 2010/08/30 16:31:43 willuhn 64 | * @N Import und Export von Buchungen im XML-Format 65 | * 66 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungListe.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Laden der Liste der Buchungen. 19 | * @author willuhn 20 | */ 21 | public class BuchungListe implements Action 22 | { 23 | 24 | /** 25 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 26 | */ 27 | public void handleAction(Object context) throws ApplicationException 28 | { 29 | GUI.startView(de.willuhn.jameica.fibu.gui.views.BuchungListe.class,context); 30 | } 31 | 32 | } 33 | 34 | 35 | /********************************************************************* 36 | * $Log: BuchungListe.java,v $ 37 | * Revision 1.6 2006/05/08 22:44:18 willuhn 38 | * @N Debugging 39 | * 40 | * Revision 1.5 2005/09/26 15:15:39 willuhn 41 | * *** empty log message *** 42 | * 43 | * Revision 1.4 2005/08/16 17:39:24 willuhn 44 | * *** empty log message *** 45 | * 46 | * Revision 1.3 2005/08/15 23:38:27 willuhn 47 | * *** empty log message *** 48 | * 49 | * Revision 1.2 2005/08/12 00:10:59 willuhn 50 | * @B bugfixing 51 | * 52 | * Revision 1.1 2005/08/10 17:48:02 willuhn 53 | * @C refactoring 54 | * 55 | *********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungMarkChecked.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungMarkChecked.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungReversal.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungReversal.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungSplitNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungSplitNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungstemplateExport.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/BuchungstemplateExport.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungstemplateImport.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.gui.action; 11 | 12 | import de.willuhn.jameica.fibu.Fibu; 13 | import de.willuhn.jameica.fibu.gui.dialogs.ImportDialog; 14 | import de.willuhn.jameica.fibu.rmi.Buchungstemplate; 15 | import de.willuhn.jameica.gui.Action; 16 | import de.willuhn.jameica.messaging.StatusBarMessage; 17 | import de.willuhn.jameica.system.Application; 18 | import de.willuhn.jameica.system.OperationCanceledException; 19 | import de.willuhn.logging.Logger; 20 | import de.willuhn.util.ApplicationException; 21 | import de.willuhn.util.I18N; 22 | 23 | /** 24 | * Action, ueber die Buchungsvorlagen importiert werden koennen. 25 | * Es wird kein Parameter erwartet. 26 | */ 27 | public class BuchungstemplateImport implements Action 28 | { 29 | private final static I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N(); 30 | 31 | /** 32 | * Erwartet keinen Parameter. 33 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 34 | */ 35 | public void handleAction(Object context) throws ApplicationException 36 | { 37 | 38 | try 39 | { 40 | ImportDialog d = new ImportDialog(null, Buchungstemplate.class); 41 | d.open(); 42 | } 43 | catch (OperationCanceledException oce) 44 | { 45 | // ignore 46 | } 47 | catch (ApplicationException ae) 48 | { 49 | throw ae; 50 | } 51 | catch (Exception e) 52 | { 53 | Logger.error("error while importing templates",e); 54 | Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Fehler beim Importieren der Buchungsvorlagen: {0}",e.getMessage()),StatusBarMessage.TYPE_ERROR)); 55 | } 56 | } 57 | 58 | } 59 | 60 | 61 | /********************************************************************** 62 | * $Log: BuchungstemplateImport.java,v $ 63 | * Revision 1.1 2010/08/27 11:19:40 willuhn 64 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 65 | * 66 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/BuchungstemplateNeu.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Anlegen einer neuen Buchungsvorlage. 19 | */ 20 | public class BuchungstemplateNeu implements Action 21 | { 22 | 23 | /** 24 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 25 | */ 26 | public void handleAction(Object context) throws ApplicationException 27 | { 28 | GUI.startView(de.willuhn.jameica.fibu.gui.views.BuchungstemplateNeu.class,context); 29 | } 30 | 31 | } 32 | 33 | 34 | /********************************************************************* 35 | * $Log: BuchungstemplateNeu.java,v $ 36 | * Revision 1.1 2006/01/02 15:18:29 willuhn 37 | * @N Buchungs-Vorlagen 38 | * 39 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/DBObjectDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/DBObjectDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/Einstellungen.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Oeffnen der Einstellungen. 19 | * @author willuhn 20 | */ 21 | public class Einstellungen implements Action 22 | { 23 | 24 | /** 25 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 26 | */ 27 | public void handleAction(Object context) throws ApplicationException 28 | { 29 | GUI.startView(de.willuhn.jameica.fibu.gui.views.Einstellungen.class,null); 30 | } 31 | 32 | } 33 | 34 | 35 | /********************************************************************* 36 | * $Log: Einstellungen.java,v $ 37 | * Revision 1.1 2005/10/06 17:27:59 willuhn 38 | * @N KontoInput 39 | * @N Einstellungen 40 | * 41 | *********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/FinanzamtDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/FinanzamtDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/FinanzamtListe.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Laden der Liste der Finanzaemter. 19 | * @author willuhn 20 | */ 21 | public class FinanzamtListe implements Action 22 | { 23 | 24 | /** 25 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 26 | */ 27 | public void handleAction(Object context) throws ApplicationException 28 | { 29 | GUI.startView(de.willuhn.jameica.fibu.gui.views.FinanzamtListe.class,context); 30 | } 31 | 32 | } 33 | 34 | 35 | /********************************************************************* 36 | * $Log: FinanzamtListe.java,v $ 37 | * Revision 1.3 2006/05/08 22:44:18 willuhn 38 | * @N Debugging 39 | * 40 | * Revision 1.2 2005/08/12 00:10:59 willuhn 41 | * @B bugfixing 42 | * 43 | * Revision 1.1 2005/08/10 17:48:02 willuhn 44 | * @C refactoring 45 | * 46 | *********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/FinanzamtNeu.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Anlegen eines neuen Finanzamtes. 19 | */ 20 | public class FinanzamtNeu implements Action 21 | { 22 | 23 | /** 24 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 25 | */ 26 | public void handleAction(Object context) throws ApplicationException 27 | { 28 | GUI.startView(de.willuhn.jameica.fibu.gui.views.FinanzamtNeu.class,context); 29 | } 30 | 31 | } 32 | 33 | 34 | /********************************************************************* 35 | * $Log: FinanzamtNeu.java,v $ 36 | * Revision 1.3 2005/08/12 00:10:59 willuhn 37 | * @B bugfixing 38 | * 39 | * Revision 1.2 2005/08/09 23:53:34 willuhn 40 | * @N massive refactoring 41 | * 42 | * Revision 1.1 2005/08/08 21:35:46 willuhn 43 | * @N massive refactoring 44 | * 45 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrChoose.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrChoose.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrClose.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrClose.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/GeschaeftsjahrNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/KontoDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/KontoDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/KontoListe.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Laden der Liste der Konten. 19 | * @author willuhn 20 | */ 21 | public class KontoListe implements Action 22 | { 23 | 24 | /** 25 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 26 | */ 27 | public void handleAction(Object context) throws ApplicationException 28 | { 29 | GUI.startView(de.willuhn.jameica.fibu.gui.views.KontoListe.class,context); 30 | } 31 | 32 | } 33 | 34 | 35 | /********************************************************************* 36 | * $Log: KontoListe.java,v $ 37 | * Revision 1.6 2006/05/08 22:44:18 willuhn 38 | * @N Debugging 39 | * 40 | * Revision 1.5 2005/09/26 15:15:39 willuhn 41 | * *** empty log message *** 42 | * 43 | * Revision 1.4 2005/08/16 17:39:24 willuhn 44 | * *** empty log message *** 45 | * 46 | * Revision 1.3 2005/08/15 23:38:27 willuhn 47 | * *** empty log message *** 48 | * 49 | * Revision 1.2 2005/08/12 00:10:59 willuhn 50 | * @B bugfixing 51 | * 52 | * Revision 1.1 2005/08/10 17:48:02 willuhn 53 | * @C refactoring 54 | * 55 | *********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/KontoNeu.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Anlegen eines neuen Kontos. 19 | * @author willuhn 20 | */ 21 | public class KontoNeu implements Action 22 | { 23 | 24 | /** 25 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 26 | */ 27 | public void handleAction(Object context) throws ApplicationException 28 | { 29 | GUI.startView(de.willuhn.jameica.fibu.gui.views.KontoNeu.class,context); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/KontozuordnungNeu.java: -------------------------------------------------------------------------------- 1 | package de.willuhn.jameica.fibu.gui.action; 2 | 3 | import de.willuhn.jameica.gui.Action; 4 | import de.willuhn.jameica.gui.GUI; 5 | import de.willuhn.util.ApplicationException; 6 | 7 | /** 8 | * Action zum Anlegen einer neuen Kontozuordnung. 9 | */ 10 | public class KontozuordnungNeu implements Action 11 | { 12 | /** 13 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 14 | */ 15 | public void handleAction(Object context) throws ApplicationException 16 | { 17 | GUI.startView(de.willuhn.jameica.fibu.gui.views.KontozuordnungNeu.class,context); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/MandantDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/MandantDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/MandantListe.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Laden der Liste der Mandanten. 19 | * @author willuhn 20 | */ 21 | public class MandantListe implements Action 22 | { 23 | 24 | /** 25 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 26 | */ 27 | public void handleAction(Object context) throws ApplicationException 28 | { 29 | GUI.startView(de.willuhn.jameica.fibu.gui.views.MandantListe.class,context); 30 | } 31 | 32 | } 33 | 34 | 35 | /********************************************************************* 36 | * $Log: MandantListe.java,v $ 37 | * Revision 1.3 2006/05/08 22:44:18 willuhn 38 | * @N Debugging 39 | * 40 | * Revision 1.2 2005/08/12 00:10:59 willuhn 41 | * @B bugfixing 42 | * 43 | * Revision 1.1 2005/08/10 17:48:02 willuhn 44 | * @C refactoring 45 | * 46 | *********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/MandantNeu.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.gui.action; 12 | 13 | import de.willuhn.jameica.fibu.Settings; 14 | import de.willuhn.jameica.fibu.rmi.Mandant; 15 | import de.willuhn.jameica.gui.Action; 16 | import de.willuhn.jameica.gui.GUI; 17 | import de.willuhn.logging.Logger; 18 | import de.willuhn.util.ApplicationException; 19 | 20 | /** 21 | * Action zum Anlegen eines neuen Mandanten. 22 | */ 23 | public class MandantNeu implements Action 24 | { 25 | 26 | /** 27 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 28 | */ 29 | public void handleAction(Object context) throws ApplicationException 30 | { 31 | if (context == null) 32 | { 33 | try 34 | { 35 | context = Settings.getDBService().createObject(Mandant.class,null); 36 | } 37 | catch (Exception e) 38 | { 39 | Logger.error("unable to create mandant",e); 40 | } 41 | } 42 | GUI.startView(de.willuhn.jameica.fibu.gui.views.MandantNeu.class,context); 43 | } 44 | 45 | } 46 | 47 | 48 | /********************************************************************* 49 | * $Log: MandantNeu.java,v $ 50 | * Revision 1.5 2005/09/02 17:35:07 willuhn 51 | * @N Kontotyp 52 | * @N Betriebsergebnis 53 | * 54 | * Revision 1.4 2005/09/01 23:28:16 willuhn 55 | * *** empty log message *** 56 | * 57 | * Revision 1.3 2005/08/12 00:10:59 willuhn 58 | * @B bugfixing 59 | * 60 | * Revision 1.2 2005/08/09 23:53:34 willuhn 61 | * @N massive refactoring 62 | * 63 | * Revision 1.1 2005/08/08 21:35:46 willuhn 64 | * @N massive refactoring 65 | * 66 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/SteuerDelete.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/action/SteuerDelete.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/action/SteuerNeu.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.gui.action; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | import de.willuhn.jameica.gui.GUI; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Action zum Anlegen eines neuen Steuersatzes. 19 | */ 20 | public class SteuerNeu implements Action 21 | { 22 | 23 | /** 24 | * @see de.willuhn.jameica.gui.Action#handleAction(java.lang.Object) 25 | */ 26 | public void handleAction(Object context) throws ApplicationException 27 | { 28 | GUI.startView(de.willuhn.jameica.fibu.gui.views.SteuerNeu.class,context); 29 | } 30 | 31 | } 32 | 33 | 34 | /********************************************************************* 35 | * $Log: SteuerNeu.java,v $ 36 | * Revision 1.6 2005/09/26 15:15:39 willuhn 37 | * *** empty log message *** 38 | * 39 | * Revision 1.5 2005/08/16 17:39:24 willuhn 40 | * *** empty log message *** 41 | * 42 | * Revision 1.4 2005/08/15 23:38:27 willuhn 43 | * *** empty log message *** 44 | * 45 | * Revision 1.3 2005/08/12 00:10:59 willuhn 46 | * @B bugfixing 47 | * 48 | * Revision 1.2 2005/08/09 23:53:34 willuhn 49 | * @N massive refactoring 50 | * 51 | * Revision 1.1 2005/08/08 21:35:46 willuhn 52 | * @N massive refactoring 53 | * 54 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/boxes/FirstStart.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/boxes/FirstStart.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/boxes/H2Migration.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/boxes/H2Migration.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/AnfangsbestandControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/AnfangsbestandControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/AnlagevermoegenControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/AnlagevermoegenControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/AuswertungControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/AuswertungControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/BuchungControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/BuchungControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/BuchungSplitControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/BuchungSplitControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/BuchungstemplateControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/BuchungstemplateControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/EinstellungenControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/EinstellungenControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/FirstStartControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/FirstStartControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/GeschaeftsjahrControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/GeschaeftsjahrControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/KontoControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/KontoControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/KontozuordnungControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/KontozuordnungControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/MandantControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/MandantControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/controller/SteuerControl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/controller/SteuerControl.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/dialogs/AbschreibungDialog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/dialogs/AbschreibungDialog.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/dialogs/ExportDialog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/dialogs/ExportDialog.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/dialogs/GeschaeftsjahrAuswahlDialog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/dialogs/GeschaeftsjahrAuswahlDialog.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/dialogs/ImportDialog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/dialogs/ImportDialog.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/dialogs/KontenrahmenCloneDialog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/dialogs/KontenrahmenCloneDialog.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/dialogs/KontoAuswahlDialog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/dialogs/KontoAuswahlDialog.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/dialogs/MandantAuswahlDialog.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/dialogs/MandantAuswahlDialog.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/AbschreibungListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/AbschreibungListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/AnfangsbestandListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/AnfangsbestandListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/AnlagevermoegenListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/AnlagevermoegenListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/BuchungListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/BuchungListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/BuchungSplitListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/BuchungSplitListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/BuchungstemplateListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/BuchungstemplateListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/FinanzamtListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/FinanzamtListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/GJCheckedContextMenuItem.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.gui.menus; 12 | 13 | import java.rmi.RemoteException; 14 | 15 | import de.willuhn.jameica.fibu.Settings; 16 | import de.willuhn.jameica.gui.Action; 17 | import de.willuhn.jameica.gui.parts.CheckedContextMenuItem; 18 | import de.willuhn.logging.Logger; 19 | 20 | /** 21 | * Context-Menu-Item, das zusaetzlich noch prueft, ob das aktuelle 22 | * Geschaeftsjahr noch nicht geschlossen ist und bei Bedarf die Items 23 | * deaktiviert. 24 | */ 25 | public class GJCheckedContextMenuItem extends CheckedContextMenuItem 26 | { 27 | 28 | /** 29 | * @param text 30 | * @param a 31 | * @param icon 32 | */ 33 | public GJCheckedContextMenuItem(String text, Action a, String icon) 34 | { 35 | super(text, a, icon); 36 | } 37 | 38 | /** 39 | * @see de.willuhn.jameica.gui.parts.ContextMenuItem#isEnabledFor(java.lang.Object) 40 | */ 41 | public boolean isEnabledFor(Object o) 42 | { 43 | try 44 | { 45 | if (Settings.getActiveGeschaeftsjahr().isClosed()) 46 | return false; 47 | } 48 | catch (RemoteException e) 49 | { 50 | Logger.error("error while checking gj status",e); 51 | } 52 | return super.isEnabledFor(o); 53 | } 54 | } 55 | 56 | 57 | /********************************************************************* 58 | * $Log: GJCheckedContextMenuItem.java,v $ 59 | * Revision 1.2 2010/06/04 00:33:56 willuhn 60 | * @B Debugging 61 | * @N Mehr Icons 62 | * @C GUI-Cleanup 63 | * 64 | * Revision 1.1 2005/08/30 22:33:45 willuhn 65 | * @B bugfixing 66 | * 67 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/GJCheckedSingleContextMenuItem.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.gui.menus; 12 | 13 | import de.willuhn.jameica.gui.Action; 14 | 15 | /** 16 | * Context-Menu-Item, das zusaetzlich noch prueft, ob nur ein Element markiert ist. 17 | */ 18 | public class GJCheckedSingleContextMenuItem extends GJCheckedContextMenuItem 19 | { 20 | 21 | /** 22 | * @param text 23 | * @param a 24 | * @param icon 25 | */ 26 | public GJCheckedSingleContextMenuItem(String text, Action a, String icon) 27 | { 28 | super(text, a, icon); 29 | } 30 | 31 | /** 32 | * @see de.willuhn.jameica.gui.parts.ContextMenuItem#isEnabledFor(java.lang.Object) 33 | */ 34 | public boolean isEnabledFor(Object o) 35 | { 36 | if (o instanceof Object[]) 37 | return false; 38 | 39 | return super.isEnabledFor(o); 40 | } 41 | } 42 | 43 | 44 | /********************************************************************* 45 | * $Log: GJCheckedSingleContextMenuItem.java,v $ 46 | * Revision 1.1 2010/08/27 11:19:40 willuhn 47 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 48 | * 49 | * Revision 1.2 2010/06/04 00:33:56 willuhn 50 | * @B Debugging 51 | * @N Mehr Icons 52 | * @C GUI-Cleanup 53 | * 54 | * Revision 1.1 2005/08/30 22:33:45 willuhn 55 | * @B bugfixing 56 | * 57 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/GJContextMenuItem.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.gui.menus; 12 | 13 | import java.rmi.RemoteException; 14 | 15 | import de.willuhn.jameica.fibu.Settings; 16 | import de.willuhn.jameica.gui.Action; 17 | import de.willuhn.jameica.gui.parts.ContextMenuItem; 18 | import de.willuhn.logging.Logger; 19 | 20 | /** 21 | * Context-Menu-Item, das zusaetzlich noch prueft, ob das aktuelle 22 | * Geschaeftsjahr noch nicht geschlossen ist und bei Bedarf die Items 23 | * deaktiviert. 24 | */ 25 | public class GJContextMenuItem extends ContextMenuItem 26 | { 27 | 28 | /** 29 | * @param text 30 | * @param a 31 | * @param icon 32 | */ 33 | public GJContextMenuItem(String text, Action a, String icon) 34 | { 35 | super(text, a, icon); 36 | } 37 | 38 | /** 39 | * @see de.willuhn.jameica.gui.parts.ContextMenuItem#isEnabledFor(java.lang.Object) 40 | */ 41 | public boolean isEnabledFor(Object o) 42 | { 43 | try 44 | { 45 | if (Settings.getActiveGeschaeftsjahr().isClosed()) 46 | return false; 47 | } 48 | catch (RemoteException e) 49 | { 50 | Logger.error("error while checking gj status",e); 51 | } 52 | return super.isEnabledFor(o); 53 | } 54 | } 55 | 56 | 57 | /********************************************************************* 58 | * $Log: GJContextMenuItem.java,v $ 59 | * Revision 1.2 2010/06/04 00:33:56 willuhn 60 | * @B Debugging 61 | * @N Mehr Icons 62 | * @C GUI-Cleanup 63 | * 64 | * Revision 1.1 2005/08/30 22:33:45 willuhn 65 | * @B bugfixing 66 | * 67 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/GeschaeftsjahrListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/GeschaeftsjahrListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/KontoListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/KontoListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/KontozuordnungListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/KontozuordnungListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/MandantListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/MandantListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/menus/SteuerListMenu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/menus/SteuerListMenu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/part/BuchungList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/part/BuchungList.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/part/BuchungSplitList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/part/BuchungSplitList.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/part/FinanzamtList.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.gui.part; 12 | 13 | import java.rmi.RemoteException; 14 | 15 | import de.willuhn.datasource.GenericIterator; 16 | import de.willuhn.datasource.rmi.DBIterator; 17 | import de.willuhn.jameica.fibu.Fibu; 18 | import de.willuhn.jameica.fibu.Settings; 19 | import de.willuhn.jameica.fibu.gui.menus.FinanzamtListMenu; 20 | import de.willuhn.jameica.fibu.rmi.Finanzamt; 21 | import de.willuhn.jameica.gui.Action; 22 | import de.willuhn.jameica.gui.parts.TablePart; 23 | import de.willuhn.jameica.system.Application; 24 | import de.willuhn.util.I18N; 25 | 26 | /** 27 | */ 28 | public class FinanzamtList extends TablePart 29 | { 30 | 31 | /** 32 | * @param action 33 | * @throws RemoteException 34 | */ 35 | public FinanzamtList(Action action) throws RemoteException 36 | { 37 | super(init(), action); 38 | I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N(); 39 | addColumn(i18n.tr("Name"),"name"); 40 | addColumn(i18n.tr("Strasse"),"strasse"); 41 | addColumn(i18n.tr("Postfach"),"postfach"); 42 | addColumn(i18n.tr("PLZ"),"plz"); 43 | addColumn(i18n.tr("Ort"),"ort"); 44 | setContextMenu(new FinanzamtListMenu()); 45 | setRememberColWidths(true); 46 | setRememberOrder(true); 47 | } 48 | 49 | private static GenericIterator init() throws RemoteException 50 | { 51 | DBIterator list = Settings.getDBService().createList(Finanzamt.class); 52 | list.setOrder("order by name desc"); 53 | return list; 54 | } 55 | 56 | } 57 | 58 | 59 | /********************************************************************* 60 | * $Log: FinanzamtList.java,v $ 61 | * Revision 1.3 2006/05/29 13:02:30 willuhn 62 | * @N Behandlung von Sonderabschreibungen 63 | * 64 | * Revision 1.2 2005/08/16 23:14:35 willuhn 65 | * @N velocity export 66 | * @N context menus 67 | * @B bugfixes 68 | * 69 | * Revision 1.1 2005/08/08 22:54:15 willuhn 70 | * @N massive refactoring 71 | * 72 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/part/KontenrahmenList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/part/KontenrahmenList.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/part/KontoList.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/part/KontoList.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/AnfangsbestandListe.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/AnfangsbestandListe.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/AnfangsbestandNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/AnfangsbestandNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/AnlagevermoegenListe.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/AnlagevermoegenListe.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/AnlagevermoegenNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/AnlagevermoegenNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/Auswertungen.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.gui.views; 12 | 13 | import de.willuhn.jameica.fibu.Fibu; 14 | import de.willuhn.jameica.fibu.gui.controller.AuswertungControl; 15 | import de.willuhn.jameica.gui.AbstractView; 16 | import de.willuhn.jameica.gui.GUI; 17 | import de.willuhn.jameica.gui.parts.ButtonArea; 18 | import de.willuhn.jameica.gui.util.Container; 19 | import de.willuhn.jameica.gui.util.SimpleContainer; 20 | import de.willuhn.jameica.system.Application; 21 | import de.willuhn.util.I18N; 22 | 23 | /** 24 | * View fuer die Auswertungen. 25 | */ 26 | public class Auswertungen extends AbstractView 27 | { 28 | private final static I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N(); 29 | 30 | /** 31 | * @see de.willuhn.jameica.gui.AbstractView#bind() 32 | */ 33 | public void bind() throws Exception 34 | { 35 | GUI.getView().setTitle(i18n.tr("Auswertungen")); 36 | 37 | final AuswertungControl control = new AuswertungControl(this); 38 | 39 | Container group = new SimpleContainer(getParent()); 40 | 41 | group.addHeadline(i18n.tr("Eigenschaften")); 42 | group.addInput(control.getAuswertungen()); 43 | 44 | group.addHeadline(i18n.tr("Zeitraum")); 45 | group.addInput(control.getJahr()); 46 | group.addInput(control.getStart()); 47 | group.addInput(control.getEnd()); 48 | group.addInput(control.getNotiz()); 49 | 50 | group.addHeadline(i18n.tr("Konten")); 51 | group.addInput(control.getStartKonto()); 52 | group.addInput(control.getEndKonto()); 53 | group.addInput(control.getLeereKonten()); 54 | 55 | group.addSeparator(); 56 | group.addInput(control.getOpenAfterCreation()); 57 | 58 | ButtonArea buttonArea = new ButtonArea(); 59 | buttonArea.addButton(control.getStartButton()); 60 | buttonArea.paint(getParent()); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/BuchungListe.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.gui.views; 11 | 12 | import de.willuhn.jameica.fibu.Fibu; 13 | import de.willuhn.jameica.fibu.Settings; 14 | import de.willuhn.jameica.fibu.gui.action.BuchungNeu; 15 | import de.willuhn.jameica.fibu.gui.part.BuchungList; 16 | import de.willuhn.jameica.gui.AbstractView; 17 | import de.willuhn.jameica.gui.GUI; 18 | import de.willuhn.jameica.gui.Part; 19 | import de.willuhn.jameica.gui.parts.Button; 20 | import de.willuhn.jameica.gui.parts.ButtonArea; 21 | import de.willuhn.jameica.system.Application; 22 | import de.willuhn.util.I18N; 23 | 24 | /** 25 | * Zeigt die Liste der Buchungen an. 26 | * @author willuhn 27 | */ 28 | public class BuchungListe extends AbstractView 29 | { 30 | private final static I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N(); 31 | 32 | 33 | 34 | /** 35 | * @see de.willuhn.jameica.gui.AbstractView#bind() 36 | */ 37 | public void bind() throws Exception 38 | { 39 | GUI.getView().setTitle(i18n.tr("Buchungen")); 40 | 41 | Part p = new BuchungList(new BuchungNeu()); 42 | p.paint(getParent()); 43 | 44 | ButtonArea buttons = new ButtonArea(); 45 | 46 | Button create = new Button(i18n.tr("Neue Buchung"), new BuchungNeu(),null,false,"list-add.png"); 47 | create.setEnabled(!Settings.getActiveGeschaeftsjahr().isClosed()); 48 | buttons.addButton(create); 49 | 50 | buttons.paint(getParent()); 51 | } 52 | } 53 | 54 | /********************************************************************* 55 | * $Log: BuchungListe.java,v $ 56 | * Revision 1.30 2011/05/12 09:10:31 willuhn 57 | * @R Back-Buttons entfernt 58 | * @C GUI-Cleanup 59 | * 60 | * Revision 1.29 2010-06-02 00:02:59 willuhn 61 | * @N Mehr Icons 62 | * 63 | * Revision 1.28 2010/06/01 23:51:56 willuhn 64 | * @N Neue Icons - erster Teil 65 | * 66 | * Revision 1.27 2010/06/01 16:37:22 willuhn 67 | * @C Konstanten von Fibu zu Settings verschoben 68 | * @N Systemkontenrahmen nach expliziter Freigabe in den Einstellungen aenderbar 69 | * @C Unterscheidung zwischen canChange und isUserObject in UserObject 70 | * @C Code-Cleanup 71 | * @R alte CVS-Logs entfernt 72 | * 73 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/BuchungNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/BuchungNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/BuchungSplit.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/BuchungSplit.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/BuchungstemplateNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/BuchungstemplateNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/FinanzamtListe.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/FinanzamtListe.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/FinanzamtNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/FinanzamtNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/FirstStart2CreateFinanzamt.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.gui.views; 12 | 13 | import de.willuhn.jameica.fibu.Fibu; 14 | import de.willuhn.jameica.fibu.gui.controller.FirstStartControl; 15 | import de.willuhn.jameica.gui.AbstractView; 16 | import de.willuhn.jameica.gui.Action; 17 | import de.willuhn.jameica.gui.GUI; 18 | import de.willuhn.jameica.gui.util.ButtonArea; 19 | import de.willuhn.jameica.gui.util.Container; 20 | import de.willuhn.jameica.gui.util.LabelGroup; 21 | import de.willuhn.jameica.system.Application; 22 | import de.willuhn.util.ApplicationException; 23 | import de.willuhn.util.I18N; 24 | 25 | /** 26 | * View zum Erstellen des Finanz-Amtes. 27 | */ 28 | public class FirstStart2CreateFinanzamt extends AbstractView 29 | { 30 | 31 | /** 32 | * @see de.willuhn.jameica.gui.AbstractView#bind() 33 | */ 34 | public void bind() throws Exception 35 | { 36 | final FirstStartControl control = (FirstStartControl) getCurrentObject(); 37 | 38 | I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N(); 39 | GUI.getView().setTitle(i18n.tr("SynTAX: Schritt 2 von 4 - Festlegen des Finanzamtes")); 40 | 41 | Container group = new LabelGroup(getParent(),i18n.tr("Neues Finanzamt"),true); 42 | group.addLabelPair(i18n.tr("Name") , control.getFinanzamtControl().getName()); 43 | group.addLabelPair(i18n.tr("Strasse") , control.getFinanzamtControl().getStrasse()); 44 | group.addLabelPair(i18n.tr("Postfach"), control.getFinanzamtControl().getPostfach()); 45 | group.addLabelPair(i18n.tr("PLZ") , control.getFinanzamtControl().getPLZ()); 46 | group.addLabelPair(i18n.tr("Ort") , control.getFinanzamtControl().getOrt()); 47 | 48 | ButtonArea buttons = group.createButtonArea(1); 49 | buttons.addButton(i18n.tr("Weiter >>"),new Action() { 50 | public void handleAction(Object context) throws ApplicationException 51 | { 52 | control.handleForward(); 53 | } 54 | },null,true,"go-next.png"); 55 | 56 | } 57 | 58 | } 59 | 60 | 61 | /********************************************************************* 62 | * $Log: FirstStart2CreateFinanzamt.java,v $ 63 | * Revision 1.5 2010/06/01 16:37:22 willuhn 64 | * @C Konstanten von Fibu zu Settings verschoben 65 | * @N Systemkontenrahmen nach expliziter Freigabe in den Einstellungen aenderbar 66 | * @C Unterscheidung zwischen canChange und isUserObject in UserObject 67 | * @C Code-Cleanup 68 | * @R alte CVS-Logs entfernt 69 | * 70 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/FirstStart3CreateMandant.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/FirstStart3CreateMandant.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/FirstStart4CreateGeschaeftsjahr.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/FirstStart4CreateGeschaeftsjahr.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/GeschaeftsjahrNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/GeschaeftsjahrNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/KontoListe.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/KontoListe.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/KontoNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/KontoNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/KontozuordnungNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/KontozuordnungNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/MandantListe.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.gui.views; 11 | 12 | import de.willuhn.jameica.fibu.Fibu; 13 | import de.willuhn.jameica.fibu.gui.action.MandantNeu; 14 | import de.willuhn.jameica.fibu.gui.part.MandantList; 15 | import de.willuhn.jameica.gui.AbstractView; 16 | import de.willuhn.jameica.gui.GUI; 17 | import de.willuhn.jameica.gui.Part; 18 | import de.willuhn.jameica.gui.parts.ButtonArea; 19 | import de.willuhn.jameica.system.Application; 20 | import de.willuhn.util.I18N; 21 | 22 | /** 23 | * Zeigt eine Liste aller Mandanten an. 24 | * @author willuhn 25 | */ 26 | public class MandantListe extends AbstractView 27 | { 28 | private final static I18N i18n = Application.getPluginLoader().getPlugin(Fibu.class).getResources().getI18N(); 29 | 30 | /** 31 | * @see de.willuhn.jameica.gui.AbstractView#bind() 32 | */ 33 | public void bind() throws Exception 34 | { 35 | GUI.getView().setTitle(i18n.tr("Liste der Mandanten")); 36 | 37 | Part p = new MandantList(new MandantNeu()); 38 | p.paint(getParent()); 39 | 40 | ButtonArea buttons = new ButtonArea(); 41 | buttons.addButton(i18n.tr("Neuer Mandant"), new MandantNeu(),null,true,"list-add.png"); 42 | buttons.paint(getParent()); 43 | } 44 | } 45 | 46 | /********************************************************************* 47 | * $Log: MandantListe.java,v $ 48 | * Revision 1.19 2011/05/12 09:10:31 willuhn 49 | * @R Back-Buttons entfernt 50 | * @C GUI-Cleanup 51 | * 52 | * Revision 1.18 2010-06-02 00:02:59 willuhn 53 | * @N Mehr Icons 54 | * 55 | * Revision 1.17 2010/06/01 23:51:56 willuhn 56 | * @N Neue Icons - erster Teil 57 | * 58 | * Revision 1.16 2010/06/01 16:37:22 willuhn 59 | * @C Konstanten von Fibu zu Settings verschoben 60 | * @N Systemkontenrahmen nach expliziter Freigabe in den Einstellungen aenderbar 61 | * @C Unterscheidung zwischen canChange und isUserObject in UserObject 62 | * @C Code-Cleanup 63 | * @R alte CVS-Logs entfernt 64 | * 65 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/MandantNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/MandantNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/gui/views/SteuerNeu.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/gui/views/SteuerNeu.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/DatevExporter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/DatevExporter.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/Exporter.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.OutputStream; 14 | import java.rmi.RemoteException; 15 | 16 | import de.willuhn.util.ApplicationException; 17 | import de.willuhn.util.ProgressMonitor; 18 | 19 | /** 20 | * Basis-Interface aller Exporter. 21 | * Alle Klassen, die dieses Interface implementieren, werden automatisch 22 | * von SynTAX erkannt und dem Benutzer als Export-Moeglichkeit angeboten 23 | * insofern sie einen parameterlosen Konstruktor mit dem Modifier "public" 24 | * besitzen (Java-Bean-Konvention). 25 | */ 26 | public interface Exporter extends IO 27 | { 28 | /** 29 | * Exportiert die genannten Objekte in den angegebenen OutputStream. 30 | * @param objects die zu exportierenden Objekte. 31 | * @param format das vom User ausgewaehlte Export-Format. 32 | * @param os der Ziel-Ausgabe-Stream. 33 | * Der Exporter muss den OutputStream selbst schliessen! 34 | * @param monitor ein Monitor, an den der Exporter Ausgaben ueber seinen 35 | * Bearbeitungszustand ausgeben kann. 36 | * @throws RemoteException 37 | * @throws ApplicationException 38 | */ 39 | public void doExport(Object[] objects, IOFormat format, OutputStream os, ProgressMonitor monitor) throws RemoteException, ApplicationException; 40 | } 41 | 42 | 43 | /********************************************************************** 44 | * $Log: Exporter.java,v $ 45 | * Revision 1.1 2010/08/27 11:19:40 willuhn 46 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 47 | * 48 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/IO.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 | 14 | /** 15 | * Basis-Interface aller Importer und Exporter. 16 | */ 17 | public interface IO 18 | { 19 | /** 20 | * Liefert einen sprechenden Namen des Exporters/Importers. 21 | * @return Name 22 | */ 23 | public String getName(); 24 | 25 | /** 26 | * Liefert eine Liste der von diesem unterstuetzten Datei-Formate. 27 | * @param objectType Art der zu exportierenden/importierenden Objekte. 28 | * Z.Bsb.: Buchung.class. 29 | * Abhaengig davon kann der Exporter/Importer eine unterschiedliche 30 | * Liste von Dateiformaten liefern, die er zu dieser Objektart unterstuetzt. 31 | * @return Liste der Export-Formate. 32 | */ 33 | public IOFormat[] getIOFormats(Class objectType); 34 | } 35 | 36 | 37 | /********************************************************************* 38 | * $Log: IO.java,v $ 39 | * Revision 1.1 2010/08/27 11:19:40 willuhn 40 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 41 | * 42 | *********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/IOFormat.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 | 14 | /** 15 | * Dieses Interface kapselt die Datei-Formate. 16 | * Jeder Importer oder Exporter unterstuetzt ein oder mehrere 17 | * Dateiformate. Ueber 18 | * 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 List konten = this.getKonten(data); 33 | 34 | final List list = new LinkedList(); 35 | for (Konto k:konten) 36 | { 37 | if (!data.isLeereKonten() && k.getNumBuchungen(jahr,null,null) == 0) 38 | continue; // hier gibts nichts anzuzeigen 39 | list.add(k); 40 | } 41 | 42 | VelocityReportData export = new VelocityReportData(); 43 | export.addObject("konten",list); 44 | export.addObject("start",data.getStartDatum()); 45 | export.addObject("end",data.getEndDatum()); 46 | export.setTemplate("saldenliste.vm"); 47 | return export; 48 | } 49 | 50 | /** 51 | * @see de.willuhn.jameica.fibu.io.report.AbstractReport#createPreset() 52 | */ 53 | public ReportData createPreset() 54 | { 55 | ReportData data = super.createPreset(); 56 | data.setNeedLeereKonten(true); 57 | data.setNeedDatum(true); 58 | data.setTarget(i18n.tr("syntax-{0}-salden.html",DATEFORMAT.format(new Date()))); 59 | return data; 60 | } 61 | 62 | /** 63 | * @see de.willuhn.jameica.fibu.io.report.Report#getName() 64 | */ 65 | public String getName() 66 | { 67 | return i18n.tr("Konten: Summen- und Saldenliste"); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/report/VelocityReportUstVoranmeldung.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/io/report/VelocityReportUstVoranmeldung.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/report/idea/AnfangsbestandTable.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.idea; 12 | 13 | import java.util.ArrayList; 14 | import java.util.List; 15 | 16 | import de.willuhn.datasource.rmi.DBIterator; 17 | import de.willuhn.jameica.fibu.Settings; 18 | import de.willuhn.jameica.fibu.rmi.Anfangsbestand; 19 | import de.willuhn.jameica.fibu.rmi.Geschaeftsjahr; 20 | import de.willuhn.jameica.fibu.rmi.Konto; 21 | 22 | /** 23 | * Implementierung fuer die Tabelle mit den Anfangsbestaenden der Konten. 24 | */ 25 | public class AnfangsbestandTable implements Table 26 | { 27 | /** 28 | * @see de.willuhn.jameica.fibu.io.report.idea.Table#getLines(de.willuhn.jameica.fibu.rmi.Geschaeftsjahr) 29 | */ 30 | public List> getLines(Geschaeftsjahr jahr) throws Exception 31 | { 32 | DBIterator list = jahr.getAnfangsbestaende(); 33 | 34 | List> result = new ArrayList>(); 35 | while (list.hasNext()) 36 | { 37 | Anfangsbestand ab = (Anfangsbestand) list.next(); 38 | Konto k = ab.getKonto(); 39 | 40 | List line = new ArrayList(); 41 | line.add(ab.getID()); 42 | line.add(k == null ? "" : k.getID()); 43 | line.add(Settings.DECIMALFORMAT.format(ab.getBetrag())); 44 | result.add(line); 45 | } 46 | return result; 47 | } 48 | 49 | } 50 | 51 | 52 | /********************************************************************** 53 | * $Log: AnfangsbestandTable.java,v $ 54 | * Revision 1.1 2010/08/27 10:18:15 willuhn 55 | * @C Export umbenannt in Report 56 | * 57 | * Revision 1.3 2010/06/01 16:37:22 willuhn 58 | * @C Konstanten von Fibu zu Settings verschoben 59 | * @N Systemkontenrahmen nach expliziter Freigabe in den Einstellungen aenderbar 60 | * @C Unterscheidung zwischen canChange und isUserObject in UserObject 61 | * @C Code-Cleanup 62 | * @R alte CVS-Logs entfernt 63 | * 64 | * Revision 1.2 2009/07/03 10:52:18 willuhn 65 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 66 | * 67 | * Revision 1.1.2.1 2009/06/26 13:56:56 willuhn 68 | * @N IDEA-Export (Buchungen und Anfangsbestaende) 69 | * 70 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/report/idea/KontoTable.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.idea; 12 | 13 | import java.util.ArrayList; 14 | import java.util.List; 15 | 16 | import de.willuhn.datasource.rmi.DBIterator; 17 | import de.willuhn.jameica.fibu.rmi.Geschaeftsjahr; 18 | import de.willuhn.jameica.fibu.rmi.Konto; 19 | import de.willuhn.jameica.fibu.rmi.Kontoart; 20 | import de.willuhn.jameica.fibu.rmi.Kontotyp; 21 | import de.willuhn.jameica.fibu.rmi.Steuer; 22 | 23 | /** 24 | * Implementierung fuer die Konto-Tabelle. 25 | */ 26 | public class KontoTable implements Table 27 | { 28 | /** 29 | * @see de.willuhn.jameica.fibu.io.report.idea.Table#getLines(de.willuhn.jameica.fibu.rmi.Geschaeftsjahr) 30 | */ 31 | public List> getLines(Geschaeftsjahr jahr) throws Exception 32 | { 33 | DBIterator list = jahr.getKontenrahmen().getKonten(); 34 | 35 | List> result = new ArrayList>(); 36 | while (list.hasNext()) 37 | { 38 | Konto k = (Konto) list.next(); 39 | Kontoart ka = k.getKontoArt(); 40 | Kontotyp kt = k.getKontoTyp(); 41 | Steuer s = k.getSteuer(); 42 | 43 | List line = new ArrayList(); 44 | line.add(k.getID()); 45 | line.add(ka == null ? "" : ka.getID()); 46 | line.add(kt == null ? "" : kt.getID()); 47 | line.add(s == null ? "" : s.getID()); 48 | line.add(k.getName()); 49 | line.add(k.getKontonummer()); 50 | 51 | result.add(line); 52 | } 53 | return result; 54 | } 55 | 56 | } 57 | 58 | 59 | /********************************************************************** 60 | * $Log: KontoTable.java,v $ 61 | * Revision 1.1 2010/08/27 10:18:15 willuhn 62 | * @C Export umbenannt in Report 63 | * 64 | * Revision 1.2 2009/07/03 10:52:18 willuhn 65 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 66 | * 67 | * Revision 1.1.2.1 2009/06/25 16:33:17 willuhn 68 | * @N Erste CSV-Daten fuer Steuer, Kontoart, Kontotyp und Konto 69 | * 70 | **********************************************************************/ 71 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/report/idea/KontoartTable.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.idea; 12 | 13 | import java.util.ArrayList; 14 | import java.util.List; 15 | 16 | import de.willuhn.datasource.rmi.DBIterator; 17 | import de.willuhn.jameica.fibu.Settings; 18 | import de.willuhn.jameica.fibu.rmi.Geschaeftsjahr; 19 | import de.willuhn.jameica.fibu.rmi.Kontoart; 20 | 21 | /** 22 | * Implementierung fuer die Kontoart-Tabelle. 23 | */ 24 | public class KontoartTable implements Table 25 | { 26 | /** 27 | * @see de.willuhn.jameica.fibu.io.report.idea.Table#getLines(de.willuhn.jameica.fibu.rmi.Geschaeftsjahr) 28 | */ 29 | public List> getLines(Geschaeftsjahr jahr) throws Exception 30 | { 31 | DBIterator list = Settings.getDBService().createList(Kontoart.class); 32 | list.setOrder("order by name"); 33 | 34 | List> result = new ArrayList>(); 35 | while (list.hasNext()) 36 | { 37 | Kontoart k = (Kontoart) list.next(); 38 | 39 | List line = new ArrayList(); 40 | line.add(k.getID()); 41 | line.add(k.getName()); 42 | 43 | result.add(line); 44 | } 45 | return result; 46 | } 47 | 48 | } 49 | 50 | 51 | /********************************************************************** 52 | * $Log: KontoartTable.java,v $ 53 | * Revision 1.1 2010/08/27 10:18:15 willuhn 54 | * @C Export umbenannt in Report 55 | * 56 | * Revision 1.2 2009/07/03 10:52:18 willuhn 57 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 58 | * 59 | * Revision 1.1.2.1 2009/06/25 16:33:17 willuhn 60 | * @N Erste CSV-Daten fuer Steuer, Kontoart, Kontotyp und Konto 61 | * 62 | **********************************************************************/ 63 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/report/idea/KontotypTable.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.idea; 12 | 13 | import java.util.ArrayList; 14 | import java.util.List; 15 | 16 | import de.willuhn.datasource.rmi.DBIterator; 17 | import de.willuhn.jameica.fibu.Settings; 18 | import de.willuhn.jameica.fibu.rmi.Geschaeftsjahr; 19 | import de.willuhn.jameica.fibu.rmi.Kontotyp; 20 | 21 | /** 22 | * Implementierung fuer die Kontotyp-Tabelle. 23 | */ 24 | public class KontotypTable implements Table 25 | { 26 | /** 27 | * @see de.willuhn.jameica.fibu.io.report.idea.Table#getLines(de.willuhn.jameica.fibu.rmi.Geschaeftsjahr) 28 | */ 29 | public List> getLines(Geschaeftsjahr jahr) throws Exception 30 | { 31 | DBIterator list = Settings.getDBService().createList(Kontotyp.class); 32 | list.setOrder("order by name"); 33 | 34 | List> result = new ArrayList>(); 35 | while (list.hasNext()) 36 | { 37 | Kontotyp k = (Kontotyp) list.next(); 38 | 39 | List line = new ArrayList(); 40 | line.add(k.getID()); 41 | line.add(k.getName()); 42 | 43 | result.add(line); 44 | } 45 | return result; 46 | } 47 | 48 | } 49 | 50 | 51 | /********************************************************************** 52 | * $Log: KontotypTable.java,v $ 53 | * Revision 1.1 2010/08/27 10:18:15 willuhn 54 | * @C Export umbenannt in Report 55 | * 56 | * Revision 1.2 2009/07/03 10:52:18 willuhn 57 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 58 | * 59 | * Revision 1.1.2.1 2009/06/25 16:33:17 willuhn 60 | * @N Erste CSV-Daten fuer Steuer, Kontoart, Kontotyp und Konto 61 | * 62 | **********************************************************************/ 63 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/io/report/idea/Table.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.idea; 12 | 13 | import java.util.List; 14 | 15 | import de.willuhn.jameica.fibu.rmi.Geschaeftsjahr; 16 | 17 | /** 18 | * Interface fuer eine einzelne Tabelle fuer den IDEA-Export. 19 | * Jede Implementierung muss einen parameterlosen Konstruktor 20 | * (Bean-Spec) haben. 21 | */ 22 | public interface Table 23 | { 24 | /** 25 | * Liefert die zu exportierenden Zeilen. 26 | * @param jahr 27 | * @return Liste der Zeilen. 28 | * @throws Exception 29 | */ 30 | public List> getLines(Geschaeftsjahr jahr) throws Exception; 31 | } 32 | 33 | 34 | /********************************************************************** 35 | * $Log: Table.java,v $ 36 | * Revision 1.1 2010/08/27 10:18:15 willuhn 37 | * @C Export umbenannt in Report 38 | * 39 | * Revision 1.2 2009/07/03 10:52:18 willuhn 40 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 41 | * 42 | * Revision 1.1.2.1 2009/06/25 16:33:17 willuhn 43 | * @N Erste CSV-Daten fuer Steuer, Kontoart, Kontotyp und Konto 44 | * 45 | **********************************************************************/ 46 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/messaging/BuchungImportMessageConsumer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/messaging/BuchungImportMessageConsumer.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/messaging/ObjectChangedMessage.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.messaging; 12 | 13 | import de.willuhn.jameica.messaging.QueryMessage; 14 | 15 | /** 16 | * Kann versendet werden, wenn ein Objekt geaendert wurde. 17 | */ 18 | public class ObjectChangedMessage extends QueryMessage 19 | { 20 | /** 21 | * ct. 22 | * @param data das geaenderte Objekt. 23 | */ 24 | public ObjectChangedMessage(Object data) 25 | { 26 | super(data); 27 | } 28 | } 29 | 30 | 31 | /********************************************************************** 32 | * $Log: ObjectChangedMessage.java,v $ 33 | * Revision 1.2 2009/07/03 10:52:19 willuhn 34 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 35 | * 36 | * Revision 1.1.2.2 2009/06/24 10:35:55 willuhn 37 | * @N Jameica 1.7 Kompatibilitaet 38 | * @N Neue Auswertungen funktionieren - werden jetzt im Hintergrund ausgefuehrt 39 | * 40 | * Revision 1.1.2.1 2009/06/23 10:45:53 willuhn 41 | * @N Buchung nach Aenderung live aktualisieren 42 | * 43 | **********************************************************************/ 44 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/messaging/ObjectDeletedMessage.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.messaging; 12 | 13 | import de.willuhn.jameica.messaging.QueryMessage; 14 | 15 | /** 16 | * Wird verschickt, wenn ein Datensatz geloescht wurde. 17 | */ 18 | public class ObjectDeletedMessage extends QueryMessage 19 | { 20 | /** 21 | * ct. 22 | * @param data 23 | */ 24 | public ObjectDeletedMessage(Object data) 25 | { 26 | super(data); 27 | } 28 | } 29 | 30 | 31 | 32 | /********************************************************************** 33 | * $Log: ObjectDeletedMessage.java,v $ 34 | * Revision 1.1 2010/08/27 11:19:40 willuhn 35 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 36 | * 37 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/messaging/ObjectImportedMessage.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.messaging; 12 | 13 | import de.willuhn.jameica.messaging.QueryMessage; 14 | 15 | /** 16 | * Wird verschickt, wenn ein Datensatz importiert wurde. 17 | */ 18 | public class ObjectImportedMessage extends QueryMessage 19 | { 20 | /** 21 | * ct. 22 | * @param data 23 | */ 24 | public ObjectImportedMessage(Object data) 25 | { 26 | super(data); 27 | } 28 | } 29 | 30 | 31 | 32 | /********************************************************************** 33 | * $Log: ObjectImportedMessage.java,v $ 34 | * Revision 1.1 2010/08/27 11:19:40 willuhn 35 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 36 | * 37 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/messaging/ReportMessage.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.messaging; 12 | 13 | import java.io.File; 14 | 15 | import de.willuhn.jameica.messaging.QueryMessage; 16 | 17 | /** 18 | * Wird versendet, wenn ein Report erstellt wurde. 19 | * Als Context-Data enthaelt die Message ein File-Objekt mit 20 | * dem erzeugten Report. 21 | */ 22 | public class ReportMessage extends QueryMessage 23 | { 24 | /** 25 | * ct. 26 | * @param text Hinweis-Text. 27 | * @param file die Report-Datei. 28 | */ 29 | public ReportMessage(String text, File file) 30 | { 31 | super(text,file); 32 | } 33 | } 34 | 35 | 36 | /********************************************************************** 37 | * $Log: ReportMessage.java,v $ 38 | * Revision 1.1 2010/08/27 11:19:40 willuhn 39 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 40 | * 41 | * Revision 1.2 2009/07/03 10:52:19 willuhn 42 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 43 | * 44 | * Revision 1.1.2.1 2009/06/24 10:35:55 willuhn 45 | * @N Jameica 1.7 Kompatibilitaet 46 | * @N Neue Auswertungen funktionieren - werden jetzt im Hintergrund ausgefuehrt 47 | * 48 | **********************************************************************/ 49 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/messaging/ReportMessageConsumer.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.messaging; 12 | 13 | import de.willuhn.jameica.gui.GUI; 14 | import de.willuhn.jameica.gui.internal.action.Program; 15 | import de.willuhn.jameica.messaging.Message; 16 | import de.willuhn.jameica.messaging.MessageConsumer; 17 | import de.willuhn.jameica.messaging.StatusBarMessage; 18 | import de.willuhn.jameica.system.Application; 19 | import de.willuhn.util.ApplicationException; 20 | 21 | /** 22 | * Empfaengt Messages ueber erstellte Reports und zeigt sie dem User an. 23 | */ 24 | public class ReportMessageConsumer implements MessageConsumer 25 | { 26 | 27 | /** 28 | * @see de.willuhn.jameica.messaging.MessageConsumer#autoRegister() 29 | */ 30 | public boolean autoRegister() 31 | { 32 | return true; 33 | } 34 | 35 | /** 36 | * @see de.willuhn.jameica.messaging.MessageConsumer#getExpectedMessageTypes() 37 | */ 38 | public Class[] getExpectedMessageTypes() 39 | { 40 | return new Class[]{ReportMessage.class}; 41 | } 42 | 43 | /** 44 | * @see de.willuhn.jameica.messaging.MessageConsumer#handleMessage(de.willuhn.jameica.messaging.Message) 45 | */ 46 | public void handleMessage(Message message) throws Exception 47 | { 48 | final ReportMessage m = (ReportMessage) message; 49 | 50 | Application.getMessagingFactory().sendMessage(new StatusBarMessage(m.getName(),StatusBarMessage.TYPE_SUCCESS)); 51 | 52 | if (Application.inServerMode()) 53 | return; 54 | 55 | GUI.getDisplay().asyncExec(new Runnable() 56 | { 57 | public void run() 58 | { 59 | try 60 | { 61 | new Program().handleAction(m.getData()); 62 | } 63 | catch (ApplicationException ae) 64 | { 65 | Application.getMessagingFactory().sendMessage(new StatusBarMessage(ae.getMessage(),StatusBarMessage.TYPE_ERROR)); 66 | } 67 | } 68 | }); 69 | } 70 | 71 | } 72 | 73 | 74 | /********************************************************************** 75 | * $Log: ReportMessageConsumer.java,v $ 76 | * Revision 1.1 2010/08/27 11:19:40 willuhn 77 | * @N Import-/Export-Framework incl. XML-Format aus Hibiscus portiert 78 | * 79 | * Revision 1.2 2009/07/03 10:52:19 willuhn 80 | * @N Merged SYNTAX_1_3_BRANCH into HEAD 81 | * 82 | * Revision 1.1.2.1 2009/06/24 10:35:55 willuhn 83 | * @N Jameica 1.7 Kompatibilitaet 84 | * @N Neue Auswertungen funktionieren - werden jetzt im Hintergrund ausgefuehrt 85 | * 86 | **********************************************************************/ 87 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/migration/AbstractDatabaseMigrationTask.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/migration/AbstractDatabaseMigrationTask.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/migration/McKoiToH2MigrationTask.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/migration/McKoiToH2MigrationTask.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/Abschreibung.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 | * Interface fuer eine einzelne Abschreibungsbuchung. 19 | */ 20 | public interface Abschreibung extends DBObject 21 | { 22 | /** 23 | * Liefert das zu dieser Abschreibung gehoerende Anlagevermoegen. 24 | * @return Anlagevermoegen. 25 | * @throws RemoteException 26 | */ 27 | public Anlagevermoegen getAnlagevermoegen() throws RemoteException; 28 | 29 | /** 30 | * Liefert die zugehoerige Buchung. 31 | * @return Buchung. 32 | * @throws RemoteException 33 | */ 34 | public AbschreibungsBuchung getBuchung() throws RemoteException; 35 | 36 | /** 37 | * Speichert das Anlagevermoegen zu dieser Abschreibung. 38 | * @param av Anlagevermoegen. 39 | * @throws RemoteException 40 | */ 41 | public void setAnlagevermoegen(Anlagevermoegen av) throws RemoteException; 42 | 43 | /** 44 | * Speichert die Buchung der Abschreibung. 45 | * @param b Buchung. 46 | * @throws RemoteException 47 | */ 48 | public void setBuchung(AbschreibungsBuchung b) throws RemoteException; 49 | 50 | /** 51 | * Prueft, ob es eine manuelle Sonderabschreibung ist. 52 | * @return true, wenn es eine Sonderabschreibung ist. 53 | * @throws RemoteException 54 | */ 55 | public boolean isSonderabschreibung() throws RemoteException; 56 | 57 | /** 58 | * Legt fest, ob es eine Sonderabschreibung ist. 59 | * @param b true, wenn es eine Sonderabschreibung ist. 60 | * @throws RemoteException 61 | */ 62 | public void setSonderabschreibung(boolean b) throws RemoteException; 63 | 64 | } 65 | 66 | 67 | /********************************************************************* 68 | * $Log: Abschreibung.java,v $ 69 | * Revision 1.5 2006/01/08 15:28:41 willuhn 70 | * @N Loeschen von Sonderabschreibungen 71 | * 72 | * Revision 1.4 2005/10/06 15:15:38 willuhn 73 | * *** empty log message *** 74 | * 75 | * Revision 1.3 2005/09/05 13:14:27 willuhn 76 | * *** empty log message *** 77 | * 78 | * Revision 1.2 2005/08/29 22:26:19 willuhn 79 | * @N Jahresabschluss 80 | * 81 | * Revision 1.1 2005/08/29 14:26:57 willuhn 82 | * @N Anlagevermoegen, Abschreibungen 83 | * 84 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/AbschreibungsBuchung.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 | /** 14 | * Interface fuer Abschreibungsbuchungen. 15 | * @author willuhn 16 | */ 17 | public interface AbschreibungsBuchung extends BaseBuchung 18 | { 19 | 20 | } 21 | 22 | 23 | /********************************************************************* 24 | * $Log: AbschreibungsBuchung.java,v $ 25 | * Revision 1.3 2006/05/08 22:44:18 willuhn 26 | * @N Debugging 27 | * 28 | * Revision 1.2 2005/10/06 15:15:38 willuhn 29 | * *** empty log message *** 30 | * 31 | * Revision 1.1 2005/10/06 14:48:40 willuhn 32 | * @N Sonderregelung fuer Abschreibunsgbuchungen 33 | * 34 | *********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/Anfangsbestand.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 | * Interface fuer den Anfangsbestand eines Kontos. 19 | */ 20 | public interface Anfangsbestand extends DBObject 21 | { 22 | /** 23 | * Liefert das Geschaeftsjahr des Anfangsbestandes. 24 | * @return Geschaeftsjahr. 25 | * @throws RemoteException 26 | */ 27 | public Geschaeftsjahr getGeschaeftsjahr() throws RemoteException; 28 | 29 | /** 30 | * Legt das Geschaeftsjahr des Anfangsbestandes fest. 31 | * @param jahr Geschaeftsjahr. 32 | * @throws RemoteException 33 | */ 34 | public void setGeschaeftsjahr(Geschaeftsjahr jahr) throws RemoteException; 35 | 36 | /** 37 | * Liefert das Konto des Anfangsbestandes. 38 | * @return Konto. 39 | * @throws RemoteException 40 | */ 41 | public Konto getKonto() throws RemoteException; 42 | 43 | /** 44 | * Legt das Konto des Anfangsbestandes fest. 45 | * @param k das Konto. 46 | * @throws RemoteException 47 | */ 48 | public void setKonto(Konto k) throws RemoteException; 49 | 50 | /** 51 | * Liefert den Betrag des Anfangsbestandes. 52 | * @return der Betrag des Anfangsbestandes. 53 | * @throws RemoteException 54 | */ 55 | public double getBetrag() throws RemoteException; 56 | 57 | /** 58 | * Legt den Betrag des Anfangsbestandes fest. 59 | * @param betrag Betrag des Anfangsbestandes. 60 | * @throws RemoteException 61 | */ 62 | public void setBetrag(double betrag) throws RemoteException; 63 | } 64 | 65 | 66 | /********************************************************************* 67 | * $Log: Anfangsbestand.java,v $ 68 | * Revision 1.2 2005/08/29 12:17:28 willuhn 69 | * @N Geschaeftsjahr 70 | * 71 | * Revision 1.1 2005/08/22 16:37:22 willuhn 72 | * @N Anfangsbestaende 73 | * 74 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/BaseBuchung.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 | import java.util.Date; 14 | 15 | /** 16 | * Diese Klasse bildet die Buchungen in Fibu ab. 17 | * @author willuhn 18 | */ 19 | public interface BaseBuchung extends Transfer 20 | { 21 | 22 | /** 23 | * Liefert das Datum der Buchung. 24 | * Wenn es eine neue Buchung ist, wird das aktuelle Datum geliefert. 25 | * @return Datum der Buchung. 26 | * @throws RemoteException 27 | */ 28 | public Date getDatum() throws RemoteException; 29 | 30 | /** 31 | * Liefert das Geschaeftsjahr zu dieser Buchung. 32 | * @return Geschaeftsjahr der Buchung. 33 | * @throws RemoteException 34 | */ 35 | public Geschaeftsjahr getGeschaeftsjahr() throws RemoteException; 36 | 37 | /** 38 | * Liefert die Belegnummer oder erzeugt eine neue, wenn sie null ist. 39 | * @return Belegnummer. 40 | * @throws RemoteException 41 | */ 42 | public int getBelegnummer() throws RemoteException; 43 | 44 | /** 45 | * Setzt das Datum der Buchung. 46 | * @param d Datum. 47 | * @throws RemoteException 48 | */ 49 | public void setDatum(Date d) throws RemoteException; 50 | 51 | /** 52 | * Setzt die Belegnummer. 53 | * @param belegnummer Belegnummer der Buchung. 54 | * @throws RemoteException 55 | */ 56 | public void setBelegnummer(int belegnummer) throws RemoteException; 57 | 58 | /** 59 | * Setzt das Geschaeftsjahr der Buchung. 60 | * @param jahr Geschaeftsjahr der Buchung. 61 | * @throws RemoteException 62 | */ 63 | public void setGeschaeftsjahr(Geschaeftsjahr jahr) throws RemoteException; 64 | 65 | /** 66 | * Liefert einen optionalen Kommentar fuer die Buchung. 67 | * @return optionaler Kommentar der Buchung. 68 | * @throws RemoteException 69 | */ 70 | public String getKommentar() throws RemoteException; 71 | 72 | /** 73 | * Speichert einen optionalen Kommentar fuer die Buchung. 74 | * @param kommentar optionaler Kommentar der Buchung. 75 | * @throws RemoteException 76 | */ 77 | public void setKommentar(String kommentar) throws RemoteException; 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/Betriebsergebnis.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/rmi/Betriebsergebnis.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/BuchungsEngine.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.Service; 15 | import de.willuhn.util.ApplicationException; 16 | 17 | /** 18 | * Diese Klasse uebernimmt alle Buchungen. 19 | * Sie nimmt keine Aenderungen an der Datenbank vor sondern praepariert lediglich 20 | * die Buchungs-Objekte. Das Schreiben in die Datenbank muss der Aufrufer selbst. 21 | * @author willuhn 22 | */ 23 | public interface BuchungsEngine extends Service 24 | { 25 | /** 26 | * Schliesst das Geschaeftsjahr ab. 27 | * @param jahr das zu schliessende Geschaeftsjahr. 28 | * @throws RemoteException 29 | * @throws ApplicationException 30 | */ 31 | public void close(Geschaeftsjahr jahr) throws RemoteException, ApplicationException; 32 | 33 | /** 34 | * Bucht die uebergebene Buchung. 35 | * Die Funktion erkennt selbstaendig, ob weitere Hilfs-Buchungen noetig sind 36 | * und liefert diese ungespeichert als Array zurueck. 37 | * Hinweis: Die Funktion speichert die Hilfsbuchungen nicht in der Datenbank sondern erzeugt 38 | * nur die Objekte. Das Speichern ist Sache des Aufrufers. 39 | * @param buchung die zu buchende Buchung. 40 | * @return Liste der noch zu speichernden Hilfsbuchungen oder null wenn keine Hilfsbuchungen noetig sind. 41 | * @throws RemoteException 42 | * @throws ApplicationException 43 | */ 44 | public HilfsBuchung[] buche(Buchung buchung) throws RemoteException, ApplicationException; 45 | } 46 | 47 | /********************************************************************* 48 | * $Log: BuchungsEngine.java,v $ 49 | * Revision 1.1 2006/05/08 22:44:18 willuhn 50 | * @N Debugging 51 | * 52 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/CustomSerializer.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 | /** 16 | * Kann implementiert werden, wenn die XML-Serialisierung vom GenericObject-Standard 17 | * abweichen soll. 18 | */ 19 | public interface CustomSerializer 20 | { 21 | /** 22 | * Liefert die abweichende Liste der zu serialisierenden Attribute. 23 | * @return Liste der zu serialisierenden Attribute. 24 | * @throws RemoteException 25 | */ 26 | public String[] getCustomAttributeNames() throws RemoteException; 27 | } 28 | 29 | 30 | 31 | /********************************************************************** 32 | * $Log: CustomSerializer.java,v $ 33 | * Revision 1.1 2010/10/24 22:29:37 willuhn 34 | * @C Brutto-Betrag bei Buchungen mit exportieren 35 | * 36 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/DBProperty.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 | * Interface fuer einen einzelnen datenbank-gestuetzten Parameter. 19 | */ 20 | public interface DBProperty extends DBObject 21 | { 22 | /** 23 | * Liefert den Namen des Parameters. 24 | * @return Name des Parameters. 25 | * @throws RemoteException 26 | */ 27 | public String getName() throws RemoteException; 28 | 29 | /** 30 | * Speichert den Namen des Parameters. 31 | * @param name Name des Parameters. 32 | * @throws RemoteException 33 | */ 34 | public void setName(String name) throws RemoteException; 35 | 36 | /** 37 | * Liefert den Wert des Parameters. 38 | * @return Wert des Parameters. 39 | * @throws RemoteException 40 | */ 41 | public String getValue() throws RemoteException; 42 | 43 | /** 44 | * Speichert den Wert des Parameters. 45 | * @param value Wert des Parameters. 46 | * @throws RemoteException 47 | */ 48 | public void setValue(String value) throws RemoteException; 49 | 50 | } 51 | 52 | 53 | /********************************************************************* 54 | * $Log: DBProperty.java,v $ 55 | * Revision 1.1 2010/06/02 15:52:34 willuhn 56 | * @N DBProperties jetzt auch in SynTAX 57 | * 58 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/DBService.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 | /** 16 | * Datenbank-Service des Fibu-Plugins. 17 | */ 18 | public interface DBService extends de.willuhn.datasource.rmi.DBService 19 | { 20 | /** 21 | * Teilt dem Server mit, welche Geschaeftsjahr der Client gerade bearbeitet. 22 | * @param jahr das Geschaeftsjahr des Clients. 23 | * @throws RemoteException 24 | */ 25 | public void setActiveGeschaeftsjahr(Geschaeftsjahr jahr) throws RemoteException; 26 | 27 | /** 28 | * Liefert das Geschaeftsjahr, welches der Client gerade bearbeitet. 29 | * @return Geschaeftsjahr. 30 | * @throws RemoteException 31 | */ 32 | public Geschaeftsjahr getActiveGeschaeftsjahr() throws RemoteException; 33 | 34 | /** 35 | * Liefert den Namen der SQL-Funktion, mit der die Datenbank aus einem DATE-Feld einen UNIX-Timestamp macht. 36 | * Bei MySQL ist das z.Bsp. "UNIX_TIMESTAMP" und bei McKoi schlicht "TONUMBER". 37 | * @param content der Feld-Name. 38 | * @return Name der SQL-Funktion. 39 | * @throws RemoteException 40 | */ 41 | public String getSQLTimestamp(String content) throws RemoteException; 42 | 43 | /** 44 | * Fuehrt ein SQL-Update-Statement aus. 45 | * @param sql das Statement. 46 | * @param params die Parameter zur Erzeugung des PreparedStatements. 47 | * @throws RemoteException 48 | */ 49 | public void executeUpdate(String sql, Object[] params) throws RemoteException; 50 | 51 | } 52 | 53 | 54 | /********************************************************************* 55 | * $Log: DBService.java,v $ 56 | * Revision 1.7 2006/12/27 15:23:33 willuhn 57 | * @C merged update 1.3 and 1.4 to 1.3 58 | * 59 | * Revision 1.6 2006/09/05 20:57:27 willuhn 60 | * @ResultsetIterator merged into datasource lib 61 | * 62 | * Revision 1.5 2006/05/30 23:22:55 willuhn 63 | * @C Redsign beim Laden der Buchungen. Jahresabschluss nun korrekt 64 | * 65 | * Revision 1.4 2006/05/08 22:44:18 willuhn 66 | * @N Debugging 67 | * 68 | * Revision 1.3 2006/01/06 00:05:51 willuhn 69 | * @N MySQL Support 70 | * 71 | * Revision 1.2 2005/10/18 23:28:55 willuhn 72 | * @N client/server tauglichkeit 73 | * 74 | * Revision 1.1 2005/08/08 21:35:46 willuhn 75 | * @N massive refactoring 76 | * 77 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/Geschaeftsjahr.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/willuhn/syntax/02d99ffbecb92560ea044ac2516b4b0a4bd39ed5/src/de/willuhn/jameica/fibu/rmi/Geschaeftsjahr.java -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/HilfsBuchung.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 | /** 15 | * Bildet Hilfs-Buchungen ab. Das sind insb. Steuerbuchungen. 16 | * Auf jeden Fall ist es immer eine Buchung, die allein nicht 17 | * existieren kann sondern Bestandteil einer anderen Buchung ist. 18 | * @author willuhn 19 | */ 20 | public interface HilfsBuchung extends BaseBuchung 21 | { 22 | 23 | /** 24 | * Liefert die Haupt-Buchung zu der diese Hilfs-Buchung gehoert. 25 | * @return Haupt-Buchung. 26 | * @throws RemoteException 27 | */ 28 | public Buchung getHauptBuchung() throws RemoteException; 29 | 30 | /** 31 | * Definiert die Haupt-Buchung, zu der diese Hilfs-Buchung gehoert. 32 | * @param buchung Haupt-Buchung. 33 | * @throws RemoteException 34 | */ 35 | public void setHauptBuchung(Buchung buchung) throws RemoteException; 36 | 37 | } 38 | 39 | /********************************************************************* 40 | * $Log: HilfsBuchung.java,v $ 41 | * Revision 1.4 2005/08/22 23:13:26 willuhn 42 | * *** empty log message *** 43 | * 44 | * Revision 1.3 2005/08/15 13:18:44 willuhn 45 | * *** empty log message *** 46 | * 47 | * Revision 1.2 2005/08/12 00:10:59 willuhn 48 | * @B bugfixing 49 | * 50 | * Revision 1.1 2003/12/16 02:27:32 willuhn 51 | * @N BuchungsEngine 52 | * 53 | **********************************************************************/ -------------------------------------------------------------------------------- /src/de/willuhn/jameica/fibu/rmi/Kontenrahmen.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.DBIterator; 16 | 17 | /** 18 | * Bildet die verschiedenen Kontenrahmen ab. 19 | * @author willuhn 20 | */ 21 | public interface Kontenrahmen extends UserObject 22 | { 23 | /** 24 | * Liefert den Namen des Kontenrahmens. 25 | * @return Liefert den Namen des Kontenrahmens. 26 | * @throws RemoteException 27 | */ 28 | public String getName() throws RemoteException; 29 | 30 | /** 31 | * Speichert den Namen des Kontenrahmen. 32 | * @param name Name des Kontenrahmen. 33 | * @throws RemoteException 34 | */ 35 | public void setName(String name) throws RemoteException; 36 | 37 | /** 38 | * Liefert eine Liste aller Konten in diesem Kontenrahmen. 39 | * @return Konten. 40 | * @throws RemoteException 41 | */ 42 | public DBIterator getKonten() throws RemoteException; 43 | 44 | /** 45 | * Sucht ein Konto anhand der Kontonummer. 46 | * @param kto Kontonummer. 47 | * @return das gefundene Konto oder null. 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 | --------------------------------------------------------------------------------