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