app/models/extface/driver/daisy_fx1200.rb in extface-0.4.3e vs app/models/extface/driver/daisy_fx1200.rb in extface-0.4.3f

- old
+ new

@@ -132,10 +132,10 @@ def add_payment(value = nil, type_num = nil) raise "Not in fiscal session" unless @fiscal_session payment_data = "".tap() do |data| data << "\t" - data << PAYMENT_TYPE_MAP[type_num] unless type_num.blank? + data << PAYMENT_TYPE_MAP[type_num || 0] #by documentation this data can be ommitted, but got vrong value error data << ("%.2f" % value) unless value.blank? end p "PPPPPPPPPPPPPP payment_data: #{payment_data}" fsend(Sales::TOTAL, payment_data) end \ No newline at end of file