app/models/extface/device.rb in extface-0.4.2a vs app/models/extface/device.rb in extface-0.4.2
- old
+ new
@@ -55,16 +55,17 @@
job
end
#initial billing module fiscalization support
def fiscalize(billing_account, detailed = false)
+
driver.sale_and_pay_items_session(
[].tap() do |payments|
billing_account.payments.each do |payment|
payments << Extface::Driver::Base::Fiscal::SaleItem.new(price: payment.value.to_f, text1: payment.description)
end
end
- ) if billing_account.kind_of?(Billing::Bill) && billing_account.valid?
+ ) if billing_account.instance_of?(Billing::Bill) && billing_account.valid?
end
end
end