intacctrb 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2017665225305238de205e6786f788420b508b80
4
- data.tar.gz: 4c7fbe3dbc3598d4191a414c0a889076a3cca28b
3
+ metadata.gz: 0cecf194c6ee6c5530daa82e23ec10ac0cf4c911
4
+ data.tar.gz: d589c81677699419c0b70de9504bfc07335e5d37
5
5
  SHA512:
6
- metadata.gz: 53e89d15fb06c62a5c39bdf27c12e29e46339309839243a7bf027b6900033413376368d3de9699afa222a8d7290026b76c74d19d1c9c23356da224d23a5de2bc
7
- data.tar.gz: 6252d53d199677b77f98608bde1e596ef8d794e2ae450ec2a4df13e757d059744523e2724441779192200acdf8c21476d2039290fcd200a93763bffca8b6f7ca
6
+ metadata.gz: 2752aa9ddb7cb18b1e1ea69710f9758d2663569ff4ebb4dd5b00f444859b2207b7ed5d253bc66b13c3d9af303513488b16971642b8682ff51c3272c40f6ece75
7
+ data.tar.gz: 4976150460ccb7497012cea6fc46cd056ec1003922676e28ae69ad7bf40b805d1f82aa3f4b40ab078cbffc9bf83d558aaf0d8743cbd04cc41bd7d0bb5db975b9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intacctrb (0.4.8)
4
+ intacctrb (0.4.9)
5
5
  hooks
6
6
  nokogiri
7
7
 
@@ -95,6 +95,9 @@ module IntacctRB
95
95
  xml.vendoraccountno object.vendor_account_number
96
96
  xml.paymethod object.payment_method
97
97
  xml.onetime object.one_time || false
98
+ xml.displaycontact {
99
+ contact_xml(xml, object.display_contact)
100
+ }
98
101
  xml.primary {
99
102
  contact_xml(xml, object.primary)
100
103
  }
@@ -118,25 +121,23 @@ module IntacctRB
118
121
 
119
122
  def contact_xml xml, contact_object
120
123
  if contact_object.present?
121
- xml.contact {
122
- xml.contactname contact_object.contact_name
123
- xml.printas contact_object.print_as
124
- xml.companyname contact_object.company_name
125
- xml.firstname contact_object.first_name
126
- xml.lastname contact_object.last_name
127
- xml.phone1 contact_object.business_phone
128
- xml.cellphone contact_object.cell_phone
129
- xml.email1 contact_object.email
130
- if contact_object.mailing_address.present?
131
- xml.mailaddress {
132
- xml.address1 contact_object.mailing_address.address_1
133
- xml.address2 contact_object.mailing_address.address_2
134
- xml.city contact_object.mailing_address.city
135
- xml.state contact_object.mailing_address.state
136
- xml.zip contact_object.mailing_address.zip
137
- }
138
- end
139
- }
124
+ xml.contactname contact_object.contact_name
125
+ xml.printas contact_object.print_as
126
+ xml.companyname contact_object.company_name
127
+ xml.firstname contact_object.first_name
128
+ xml.lastname contact_object.last_name
129
+ xml.phone1 contact_object.business_phone
130
+ xml.cellphone contact_object.cell_phone
131
+ xml.email1 contact_object.email
132
+ if contact_object.mailing_address.present?
133
+ xml.mailaddress {
134
+ xml.address1 contact_object.mailing_address.address_1
135
+ xml.address2 contact_object.mailing_address.address_2
136
+ xml.city contact_object.mailing_address.city
137
+ xml.state contact_object.mailing_address.state
138
+ xml.zip contact_object.mailing_address.zip
139
+ }
140
+ end
140
141
  end
141
142
  end
142
143
  end
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intacctrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale