Commit 3bdb4022 authored by o@immerda.ch's avatar o@immerda.ch
Browse files

fix reference generation for qr code

parent a9fe92a4
......@@ -14,9 +14,9 @@ class BillsController < ApplicationController
throw :invalid_char
end
end
str2 = "#{str}2715"
str2 = "#{str}271500"
rem = str2.to_i % 97
diff = (rem-1) % 97
diff = 98 - rem
"RF#{'%02d' % diff}#{key}"
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment