app/models/extface/driver/base/fiscal.rb in extface-0.6.9 vs app/models/extface/driver/base/fiscal.rb in extface-0.7.0

- old
+ new

@@ -103,12 +103,13 @@ percent_ratio: percent_ratio #TODO check format ) ) end end - if global_modifier_value = bill.global_modifier_value + if bill.modifiers.global.any? s.notify "Register Global Modifier" - s.add_total_modifier global_modifier_value.to_f, global_modifier.percent_ratio.try(:to_f) + global_modifier = bill.modifiers.global.first + s.add_total_modifier bill.global_modifier_value.try(:to_f), global_modifier.percent_ratio.try(:to_f) end s.notify "Register Payment" bill.payments.each do |payment| s.add_payment payment.value.to_f, payment.find_payment_type_mapping_for(self) end \ No newline at end of file