lib/tordist/generator.rb in tordist-0.1.4 vs lib/tordist/generator.rb in tordist-0.1.5
- old
+ new
@@ -9,10 +9,10 @@
tordist_string = header
tordist_string = tordist_string + body
end
def header
- return fill_with_chars(92, "H#{header_date}#{@clearing_id}TORDISTM", :following, " ")+"\r\n"
+ return fill_with_chars(92, "H#{header_date}#{fill_with_chars(5, @clearing_id, :preceding, "0")}TORDISTM", :following, " ")+"\r\n"
end
def body
body_string = ""
@transactions.each do |transaction|
\ No newline at end of file