app/models/extface/device.rb in extface-0.4.0 vs app/models/extface/device.rb in extface-0.4.1a
- old
+ new
@@ -55,10 +55,10 @@
job
end
#initial billing module fiscalization support
def fiscalize(billing_account, detailed = false)
- if billing_account.instance_of?(Billing::Account) && billing_account.valid?
+ if billing_account.instance_of?(Billing::Bill) && billing_account.valid?
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