lib/taxedo/region.rb in taxedo-0.0.3 vs lib/taxedo/region.rb in taxedo-0.0.4

- old
+ new

@@ -31,9 +31,11 @@ return selection.strftime('%Y%m%d').to_i end def taxes(rule, start_at) + raise 'TAXEDO: This tax rule doesn\'t exists!' if not @data['rules'][rule] + @data['rules'][rule].map do |tax_id| tax_key = tax_from_start_date(tax_id, start_at) [tax_id, @data['taxes'][tax_id][tax_key]] end