test/test_ext.rb in invoice_printer-0.0.5 vs test/test_ext.rb in invoice_printer-0.0.6
- old
+ new
@@ -28,14 +28,14 @@
strings << "#{@document.provider_street} #{@document.provider_street_number}".strip
strings << @document.provider_postcode
strings << @document.provider_city
strings << @document.provider_city_part
strings << @document.provider_extra_address_line
- strings << "#{@labels[:ic]}: #{@document.provider_ic}" \
- unless @document.provider_ic.empty?
- strings << "#{@labels[:dic]}: #{@document.provider_dic}" \
- unless @document.provider_dic.empty?
+ strings << "#{@labels[:tax_id]}: #{@document.provider_tax_id}" \
+ unless @document.provider_tax_id.empty?
+ strings << "#{@labels[:tax_id2]}: #{@document.provider_tax_id2}" \
+ unless @document.provider_tax_id2.empty?
strings
end
# Strings representaion of purchaser's box
def purchaser_box
@@ -45,13 +45,13 @@
strings << "#{@document.purchaser_street} #{@document.purchaser_street_number}".strip
strings << @document.purchaser_postcode
strings << @document.purchaser_city
strings << @document.purchaser_city_part
strings << @document.purchaser_extra_address_line
- strings << "#{@labels[:ic]}: #{@document.purchaser_ic}" \
- unless @document.purchaser_ic.empty?
- strings << "#{@labels[:dic]}: #{@document.purchaser_dic}" \
- unless @document.purchaser_dic.empty?
+ strings << "#{@labels[:tax_id]}: #{@document.purchaser_tax_id}" \
+ unless @document.purchaser_tax_id.empty?
+ strings << "#{@labels[:tax_id2]}: #{@document.purchaser_tax_id2}" \
+ unless @document.purchaser_tax_id2.empty?
strings
end
# Strings representaion of account's box
def account_box