-
Notifications
You must be signed in to change notification settings - Fork 18
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 Bugs in Backup und BuchungImpl #672
Fix Bugs in Backup und BuchungImpl #672
Conversation
Muss nach #666 übernommen werden wegen dem Plugin.xml |
Ich ahbe das Problem mit getProjektID gefunden. Projekt ist als foreign Objekt definiert. Da kann man dann wohl kein (Long) super.getAttribute() machen. Ein setAttribute mit Long geht anscheinend schon. Dann habe ich festgestellt, dass beim Diagnose Backup Import die plausi Checks aufgerufen werden. Ich ahbe darum das limit bei Buchungen auf 50 Jahre gesetzt. Ich konnte sonst nicht alle Buchungen importieren. |
Jetzt habe ich auch das Problem mit dem Import von Buchungen gelöst. Man muss Long in den Gettern durch Object ersetzten. Integer wäre vermutlich auch gegangen. |
Die Sollbuchungpositionen wurden auch nicht im Diagnose backup exportiert. |
if (cal1.before(cal2)) | ||
{ | ||
throw new ApplicationException("Buchungsdatum liegt mehr als 10 Jahre zur�ck"); | ||
throw new ApplicationException( | ||
"Buchungsdatum liegt mehr als 50 Jahre zur�ck"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das sind dann aber 40 Jahre. Erst wird 10 Jahr in die Zukunft gegangen und dann 50 Jahre von da in die Vergangeneheit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Habe oben auf 60 geändert
Es wurden Rechnungen nicht im Diagnose Backup exportiert und dann war noch ein Typo in BuchungImpl.
Es gibt auch noch eine Fehler beim Import der Diagnosedaten bei den Buchungen.
"1 fehlerhaft class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap'), überspringe"
Das passiert wenn eine Spendenbescheinigung referenziert ist. Ich verstehe aber nicht woher das kommt.
Es passiert in Zeile 174 bei getBuchungsart()