intacctrb 0.8.11 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dd27846e403ae0dedb3a23771b2e8a5a3377eb91e6f05cdf19e46f7ef2c7387
4
- data.tar.gz: '091df3a7dd44e2117b3fd63563e32478083e1bc1dee1a9b63946b913d6f87d13'
3
+ metadata.gz: 77485ac3a31ef05c39387161c6ff01f8bf52d90c59353aa6ae8ad5d0d6563ea6
4
+ data.tar.gz: de3d6b501641f15bbe0ac740f320805457ca7eaf4b9612f104e70283f4392780
5
5
  SHA512:
6
- metadata.gz: 799834917213fd7dfb262963b1410b1f1964faff545404039090db779091a32e9bbd7fba044f001c226d769ff61f617784b6f84c7d3d494debb98ce3605479fd
7
- data.tar.gz: 5e6021dce62a233e8770af37ffe9252a143bb03ca684a9605a2362b633567c1d70b6e6b716ef0929365da4a94d8452a7b6457d448ca65d59bc780f2214d19fda
6
+ metadata.gz: dceda39bb1ec921b40b4b449219914f2874347bf12f13882b68a7a3457eedf9a6a2628d7bbc3e4582eae9e5a7b02e77ebfca599739a7afe4751f992f8cf5a57d
7
+ data.tar.gz: 297aae0c02ba942313d3b8be3fec050cb24c8086a2fe841cd66a562022fdc05c0cf3da253b1051b852a1c034ff5c528d4725cf743a21c2504cf50ef31cf4a5f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intacctrb (0.8.11)
4
+ intacctrb (0.8.12)
5
5
  hooks
6
6
  nokogiri
7
7
 
@@ -155,8 +155,6 @@ module IntacctRB
155
155
  xml.key object.intacct_id unless object.intacct_id.blank?
156
156
  xml.bankaccountid object.bank_account_id unless object.bank_account_id.blank?
157
157
  xml.chargecardid object.charge_card_id unless object.charge_card_id.blank?
158
- xml.empower_id if object.empower_id
159
- xml.empower_class if object.empower_class
160
158
  xml.vendorid object.vendor_id
161
159
  xml.memo object.memo
162
160
  xml.paymentmethod object.payment_method
@@ -167,6 +165,7 @@ module IntacctRB
167
165
  }
168
166
  xml.checkno object.check_number
169
167
  xml.billno object.bill_number
168
+ custom_fields_xml(xml, object)
170
169
  xml.payitems {
171
170
  object.line_items.each do |line_item|
172
171
  xml.payitem {
@@ -159,5 +159,22 @@ module IntacctRB
159
159
  xml.month date.to_date.strftime("%m")
160
160
  xml.day date.to_date.strftime("%d")
161
161
  end
162
+
163
+ def custom_fields_xml(xml, object)
164
+ xml.customfields {
165
+ if object.empower_id
166
+ xml.customfield {
167
+ xml.customfield_name 'empower_id'
168
+ xml.customfield_value object.empower_id
169
+ }
170
+ end
171
+ if object.empower_class
172
+ xml.customfield {
173
+ xml.customfield_name 'empower_class'
174
+ xml.customfield_value object.empower_class
175
+ }
176
+ end
177
+ }
178
+ end
162
179
  end
163
180
  end
@@ -160,13 +160,12 @@ module IntacctRB
160
160
 
161
161
  def je_xml xml
162
162
  xml.recordno object.intacct_id if object.intacct_id
163
- xml.empower_id if object.empower_id
164
- xml.empower_class if object.empower_class
165
163
  xml.journal object.journal_id
166
164
  xml.batch_date date_string(object.date) if object.date
167
165
  xml.reverse_date date_string(object.reverse_date) if object.reverse_date
168
166
  xml.batch_title object.description
169
167
  xml.referenceno object.reference_number
168
+ custom_fields_xml(xml, object)
170
169
  je_item_fields(xml)
171
170
  end
172
171
 
@@ -185,6 +184,7 @@ module IntacctRB
185
184
  xml.projectid row[:project_id] if row[:project_id]
186
185
  xml.itemid row[:item_id] if row[:itemid]
187
186
  xml.classid row[:class_id] if row[:class_id]
187
+ custom_fields_xml(xml, object)
188
188
  }
189
189
  end
190
190
  }
@@ -94,6 +94,7 @@ module IntacctRB
94
94
  xml.status "active"
95
95
  xml.vendoraccountno object.vendor_account_number
96
96
  xml.paymethod object.payment_method
97
+ custom_fields_xml(xml, object)
97
98
  xml.onetime object.one_time || false
98
99
  xml.displaycontact {
99
100
  contact_xml(xml, object.display_contact)
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.8.11"
2
+ VERSION = "0.8.12"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intacctrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.11
4
+ version: 0.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-20 00:00:00.000000000 Z
11
+ date: 2018-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri