Compare commits

...

8 commits

Author SHA1 Message Date
Basti 65b3c93b5c Merge pull request 'general-fixes' (#4) from general-fixes into main
Reviewed-on: #4
2025-01-16 18:36:08 +01:00
iwt-pjost a8ee871518 distinct filename for each member 2025-01-16 18:30:24 +01:00
iwt-pjost 245e22d74a updating gemfile lock 2025-01-16 18:24:44 +01:00
iwt-pjost eb4f12842f adding more typical files to the gitignore 2025-01-16 18:24:21 +01:00
iwt-pjost 1e1f238450 updating devcontainer base image for better usability 2025-01-16 18:23:58 +01:00
iwt-pjost dfddacf6d3 adding missing ruby dependencies 2025-01-16 18:23:25 +01:00
iwt-pjost 85398bc5fc Update tax-id and placement of signature 2025-01-16 18:23:06 +01:00
iwt-pjost 97b4940fc0 updating readme to avoid misunerstandings 2025-01-16 18:22:19 +01:00
7 changed files with 38 additions and 30 deletions

View file

@ -1,5 +1,5 @@
{ {
"image": "mcr.microsoft.com/devcontainers/universal:2", "image": "mcr.microsoft.com/devcontainers/base:0-ubuntu-22.04",
"features": { "features": {
"ghcr.io/devcontainers/features/python:1": { "ghcr.io/devcontainers/features/python:1": {
"version": "3.12" "version": "3.12"
@ -47,11 +47,11 @@
} }
}, },
"mounts": [ "mounts": [
"source=${localWorkspaceFolder}/.devcontainer/advanced/.p10k.zsh,target=/home/codespace/.p10k.zsh,type=bind,consistency=cached", "source=${localWorkspaceFolder}/.devcontainer/advanced/.p10k.zsh,target=/home/vscode/.p10k.zsh,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/.devcontainer/advanced/.zshrc,target=/home/codespace/.zshrc,type=bind,consistency=cached", "source=${localWorkspaceFolder}/.devcontainer/advanced/.zshrc,target=/home/vscode/.zshrc,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/.devcontainer/advanced/post-create.sh,target=/home/codespace/post-create.sh,type=bind,consistency=cached", "source=${localWorkspaceFolder}/.devcontainer/advanced/post-create.sh,target=/home/vscode/post-create.sh,type=bind,consistency=cached",
"source=${localWorkspaceFolder}/.devcontainer/advanced/post-start.sh,target=/home/codespace/post-start.sh,type=bind,consistency=cached" "source=${localWorkspaceFolder}/.devcontainer/advanced/post-start.sh,target=/home/vscode/post-start.sh,type=bind,consistency=cached"
], ],
"postCreateCommand": "chmod +x /home/codespace/post-create.sh && /home/codespace/post-create.sh", "postCreateCommand": "chmod +x /home/vscode/post-create.sh && /home/vscode/post-create.sh",
"postStartCommand": "chmod +x /home/codespace/post-create.sh && /home/codespace/post-create.sh" "postStartCommand": "chmod +x /home/vscode/post-create.sh && /home/vscode/post-create.sh"
} }

8
.gitignore vendored
View file

@ -10,8 +10,12 @@ payments.csv
document.aux document.aux
document.pdf document.pdf
*.mta *.mta
*.ods
*.aux
*.pdf
*.fdb_latexmk *.fdb_latexmk
*.fls *.fls
*.synctex.gz *.synctex.gz
*.png ccl_mitgliederdatenbank.xlsx
signature.png

View file

@ -3,3 +3,6 @@ source 'https://rubygems.org'
gem 'cmxl', '~> 1.5.0' gem 'cmxl', '~> 1.5.0'
gem 'roo', '~> 2.10.0' gem 'roo', '~> 2.10.0'
gem 'humanize', '~> 2.5.1' gem 'humanize', '~> 2.5.1'
gem 'base64', '~> 0.2.0'
gem 'csv', '~> 3.3.2'
gem 'bigdecimal', '~> 3.1.9'

View file

@ -1,20 +1,15 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
base64 (0.2.0)
bigdecimal (3.1.9)
cmxl (1.5.0) cmxl (1.5.0)
rchardet19 rchardet19
csv (3.3.2)
humanize (2.5.1) humanize (2.5.1)
nokogiri (1.16.3-aarch64-linux) mini_portile2 (2.8.8)
racc (~> 1.4) nokogiri (1.16.3)
nokogiri (1.16.3-arm-linux) mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.16.3-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.3-x86-linux)
racc (~> 1.4)
nokogiri (1.16.3-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.3-x86_64-linux)
racc (~> 1.4) racc (~> 1.4)
racc (1.7.3) racc (1.7.3)
rchardet19 (1.3.7) rchardet19 (1.3.7)
@ -32,7 +27,10 @@ PLATFORMS
x86_64-linux x86_64-linux
DEPENDENCIES DEPENDENCIES
base64 (~> 0.2.0)
bigdecimal (~> 3.1.9)
cmxl (~> 1.5.0) cmxl (~> 1.5.0)
csv (~> 3.3.2)
humanize (~> 2.5.1) humanize (~> 2.5.1)
roo (~> 2.10.0) roo (~> 2.10.0)

View file

@ -24,7 +24,7 @@ def generate_reciept(mitgliedsnummer, name, vorname, strasse, hausnummer, plz, o
end end
# call latex to generate the pdf # call latex to generate the pdf
system("pdflatex \"\\newcommand{\\vorname}{#{vorname}} \\newcommand{\\nachname}{#{name}} \\newcommand{\\strasse}{#{strasse + " " + hausnummer.to_s}} \\newcommand{\\plz}{#{plz}} \\newcommand{\\ort}{#{ort}} \\newcommand{\\summe}{#{betrag}} \\newcommand{\\betraginworten}{#{betrag_in_worten}} \\newcommand{\\startdatum}{#{start_datum}} \\newcommand{\\findatum}{#{end_datum}} \\newcommand{\\mitgliedsnummer}{#{mitgliedsnummer}} \\input{document.tex}\"") system("pdflatex -jobname=\"#{vorname}_#{name}-#{start_datum}_#{end_datum}\" \"\\newcommand{\\vorname}{#{vorname}} \\newcommand{\\nachname}{#{name}} \\newcommand{\\strasse}{#{strasse + " " + hausnummer.to_s}} \\newcommand{\\plz}{#{plz}} \\newcommand{\\ort}{#{ort}} \\newcommand{\\summe}{#{betrag}} \\newcommand{\\betraginworten}{#{betrag_in_worten}} \\newcommand{\\startdatum}{#{start_datum}} \\newcommand{\\findatum}{#{end_datum}} \\newcommand{\\mitgliedsnummer}{#{mitgliedsnummer}} \\input{document.tex}\"")
end end
def get_payments_from_member_id(mitgliedsnummer) def get_payments_from_member_id(mitgliedsnummer)

View file

@ -78,17 +78,17 @@ Betrag: \textbf{\summe{} \euro{}\\ }
Betrag in Worten: \textbf{\betraginworten{}\\} Betrag in Worten: \textbf{\betraginworten{}\\}
Zeitraum: \textbf{\startdatum{} - \findatum{}\\} Zeitraum: \textbf{\startdatum{} - \findatum{}\\}
Die Einhaltung der satzungsmäßigen Voraussetzungen nach den §§ 51, 59, 60 und 61 AO wurde vom Finanzamt Hamburg Nord, StNr. 17/103/06010 mit Bescheid vom 13.01.2021 nach § 60a AO gesondert festgestellt. Wir fördern nach unserer Satzung die Bildung, Wissenschaft und Forschung, den Natur- und Umweltschutz, Kunst und Kultur. Die Einhaltung der satzungsmäßigen Voraussetzungen nach den §§ 51, 59, 60 und 61 AO wurde vom Finanzamt Hamburg Nord, StNr. 17/403/06010 mit Bescheid vom 13.01.2021 nach § 60a AO gesondert festgestellt. Wir fördern nach unserer Satzung die Bildung, Wissenschaft und Forschung, den Natur- und Umweltschutz, Kunst und Kultur.
Es wird bestätigt, dass die Zuwendung nur zur Förderung der Bildung, von Wissenschaft und Forschung, des Natur- und Umweltschutzes, von Kunst und Kultur verwendet wird. Es wird bestätigt, dass es sich nicht um einen Mitgliedsbeitrag handelt, dessen Abzug nach § 10b Absatz 1 des Einkommensteuergesetzes ausgeschlossen ist. Es wird bestätigt, dass die Zuwendung nur zur Förderung der Bildung, von Wissenschaft und Forschung, des Natur- und Umweltschutzes, von Kunst und Kultur verwendet wird. Es wird bestätigt, dass es sich nicht um einen Mitgliedsbeitrag handelt, dessen Abzug nach § 10b Absatz 1 des Einkommensteuergesetzes ausgeschlossen ist.
\footnotesize \footnotesize
\closing{Mit freundlichen Grüßen} \closing{Mit freundlichen Grüßen}
% Adjust vertical space as needed with \vspace % Adjust vertical space as needed with \vspace
\vspace{-70pt} % Adjust the space above the signature as needed \vspace{-60pt} % Adjust the space above the signature as needed
% Adjust horizontal space as needed with \hspace % Adjust horizontal space as needed with \hspace
\hspace{-20pt} % Adjust the space to the left of the signature as needed % \hspace{-20pt} % Adjust the space to the left of the signature as needed
\includegraphics[scale=.9]{signature.png} % Include your signature image \includegraphics[width=3cm]{signature.png} % Include your signature image
\tiny \tiny
Hinweis: Hinweis:
@ -118,10 +118,10 @@ nach § 60a Abs. 1 AO länger als 3 Jahre seit Ausstellung des Bescheides zurüc
\closing{Mit freundlichen Grüßen} \closing{Mit freundlichen Grüßen}
% Adjust vertical space as needed with \vspace % Adjust vertical space as needed with \vspace
\vspace{-70pt} % Adjust the space above the signature as needed \vspace{-60pt} % Adjust the space above the signature as needed
% Adjust horizontal space as needed with \hspace % Adjust horizontal space as needed with \hspace
\hspace{-20pt} % Adjust the space to the left of the signature as needed % \hspace{-20pt} % Adjust the space to the left of the signature as needed
\includegraphics[scale=.9]{signature.png} % Include your signature image \includegraphics[width=3cm]{signature.png} % Include your signature image
\end{letter} \end{letter}
\end{document} \end{document}

View file

@ -30,7 +30,10 @@ bundle install
## Usage ## Usage
`./beitragsquittung.rb <MT940 file> <Excel file> <member id>` `./beitragsquittung.rb <MT940 file> <Membership Excel file> <member id>`
Example:
`./beitragsquittung.rb umsaetze_2024.mta ccl_mitgliederdatenbank.xlsx 38`
The member ID is optional. If not provided, all members are processed. The member ID is optional. If not provided, all members are processed.
The time range is used from the MT940 file. The time range is used from the MT940 file.