lib/oddb2xml/util.rb in oddb2xml-2.5.2 vs lib/oddb2xml/util.rb in oddb2xml-2.5.3
- old
+ new
@@ -1,8 +1,11 @@
# encoding: utf-8
require 'open-uri'
module Oddb2xml
FAKE_GTIN_START = '999999'
+ def Oddb2xml.gen_prodno(iksnr, seqnr)
+ sprintf('%05d',iksnr) + sprintf('%02d', seqnr)
+ end
def Oddb2xml.calc_checksum(str)
str = str.strip
sum = 0
val = str.split(//u)
12.times do |idx|