bugfix_script #2
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -9,4 +9,5 @@
|
|||
payments.csv
|
||||
document.aux
|
||||
document.pdf
|
||||
|
||||
*.mta
|
||||
*.ods
|
||||
|
|
40
Gemfile.lock
Normal file
40
Gemfile.lock
Normal file
|
@ -0,0 +1,40 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
cmxl (1.5.0)
|
||||
rchardet19
|
||||
humanize (2.5.1)
|
||||
nokogiri (1.16.3-aarch64-linux)
|
||||
racc (~> 1.4)
|
||||
nokogiri (1.16.3-arm-linux)
|
||||
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.7.3)
|
||||
rchardet19 (1.3.7)
|
||||
roo (2.10.1)
|
||||
nokogiri (~> 1)
|
||||
rubyzip (>= 1.3.0, < 3.0.0)
|
||||
rubyzip (2.3.2)
|
||||
|
||||
PLATFORMS
|
||||
aarch64-linux
|
||||
arm-linux
|
||||
arm64-darwin
|
||||
x86-linux
|
||||
x86_64-darwin
|
||||
x86_64-linux
|
||||
|
||||
DEPENDENCIES
|
||||
cmxl (~> 1.5.0)
|
||||
humanize (~> 2.5.1)
|
||||
roo (~> 2.10.0)
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.3
|
|
@ -55,13 +55,18 @@ def get_payments_from_member_id(mitgliedsnummer)
|
|||
# add the second entry of the sepa reference (sf) to the reference string if the first entry contans "MREF"
|
||||
if sf[0] == "MREF"
|
||||
reference = sf[1]
|
||||
# puts reference
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# if the mitgliedsnummer is a single digit number, the reference is "Mitgliedsbeitrag Nr. 01" and not "Mitgliedsbeitrag Nr. 1"
|
||||
# so we have to check for both cases
|
||||
if reference.include?("Mitgliedsbeitrag Nr. #{mitgliedsnummer.to_s.rjust(2, '0')}") || reference.include?("Mitgliedsbeitrag Nr. #{mitgliedsnummer}")
|
||||
if reference.include?("Mitgliedsbeitrag Nr. #{mitgliedsnummer.to_s.rjust(2, '0')}") ||
|
||||
reference.include?("Mitgliedsbeitrag Nr. #{mitgliedsnummer}") ||
|
||||
reference.include?("Mitgliedsbeitrag Mitgliedsnr.: #{mitgliedsnummer.to_s.rjust(2, '0')}") ||
|
||||
reference.include?("Mitgliedsbeitrag Mitgliedsnr.: #{mitgliedsnummer}")
|
||||
|
||||
# puts t.entry_date
|
||||
# puts t.amount
|
||||
payment = {
|
||||
|
|
Loading…
Reference in a new issue