Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Spendenbescheinigung Mailversand und Konto Buchungsartauswahl #666

Merged
merged 2 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<plugin xmlns="https://www.willuhn.de/schema/jameica-plugin"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.willuhn.de/schema/jameica-plugin https://www.willuhn.de/schema/jameica-plugin-1.5.xsd"
name="jverein" version="3.0.1" class="de.jost_net.JVerein.JVereinPlugin">
name="jverein" version="3.0.2" class="de.jost_net.JVerein.JVereinPlugin">

<description>OpenSource-Vereinsverwaltung</description>
<url>https://openjverein.github.io/jameica-repository/[PLUGIN_ZIP]</url>
Expand Down
35 changes: 29 additions & 6 deletions src/de/jost_net/JVerein/gui/control/KontoControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import de.jost_net.JVerein.gui.input.KontoInput;
import de.jost_net.JVerein.gui.menu.KontoMenu;
import de.jost_net.JVerein.gui.view.KontoView;
import de.jost_net.JVerein.keys.AbstractInputAuswahl;
import de.jost_net.JVerein.keys.AfaMode;
import de.jost_net.JVerein.keys.Anlagenzweck;
import de.jost_net.JVerein.keys.ArtBuchungsart;
Expand Down Expand Up @@ -73,6 +74,8 @@
import de.willuhn.jameica.gui.parts.TablePart;
import de.willuhn.jameica.gui.parts.table.FeatureSummary;
import de.willuhn.jameica.hbci.Settings;
import de.willuhn.jameica.plugin.Version;
import de.willuhn.jameica.system.Application;
import de.willuhn.logging.Logger;
import de.willuhn.util.ApplicationException;
//import de.jost_net.JVerein.keys.ArtBuchungsart;
Expand Down Expand Up @@ -643,9 +646,19 @@ public Input getAnlagenart() throws RemoteException
{
return anlagenart;
}
anlagenart = new BuchungsartInput().getBuchungsartInput( anlagenart,
getKonto().getAnlagenart(), buchungsarttyp.ANLAGENART,
Einstellungen.getEinstellung().getBuchungBuchungsartAuswahl());
Version version = Application.getManifest().getVersion();
if (version.compareTo(new Version("2.10.5")) < 0)
{
anlagenart = new BuchungsartInput().getBuchungsartInput(anlagenart,
getKonto().getAnlagenart(), buchungsarttyp.ANLAGENART,
AbstractInputAuswahl.ComboBox);
}
else
{
anlagenart = new BuchungsartInput().getBuchungsartInput(anlagenart,
getKonto().getAnlagenart(), buchungsarttyp.ANLAGENART,
Einstellungen.getEinstellung().getBuchungBuchungsartAuswahl());
}
anlagenart.addListener(new AnlagenartListener());
if (getKontoArt().getValue() == Kontoart.ANLAGE)
{
Expand Down Expand Up @@ -726,9 +739,19 @@ public Input getAfaart() throws RemoteException
{
return afaart;
}
afaart = new BuchungsartInput().getBuchungsartInput( afaart,
getKonto().getAfaart(), buchungsarttyp.AFAART,
Einstellungen.getEinstellung().getBuchungBuchungsartAuswahl());
Version version = Application.getManifest().getVersion();
if (version.compareTo(new Version("2.10.5")) < 0)
{
afaart = new BuchungsartInput().getBuchungsartInput(afaart,
getKonto().getAfaart(), buchungsarttyp.AFAART,
AbstractInputAuswahl.ComboBox);
}
else
{
afaart = new BuchungsartInput().getBuchungsartInput(afaart,
getKonto().getAfaart(), buchungsarttyp.AFAART,
Einstellungen.getEinstellung().getBuchungBuchungsartAuswahl());
}
afaart.addListener(new AnlagenartListener());
if (getKontoArt().getValue() == Kontoart.ANLAGE)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ public void run(ProgressMonitor monitor)
MailAnhang anh = (MailAnhang) Einstellungen.getDBService()
.createObject(MailAnhang.class, null);
String fileName = new Dateiname(m,
spba[i].getBescheinigungsdatum(), "Spendenbescheinigung",
spba[i].getSpendedatum(), "Spendenbescheinigung",
Einstellungen.getEinstellung().getDateinamenmusterSpende(),
"pdf").get();
anh.setDateiname(fileName);
Expand Down
Loading