intacctrb 0.8.11 → 0.8.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/intacctrb/ap_payment.rb +1 -2
- data/lib/intacctrb/base.rb +17 -0
- data/lib/intacctrb/journal_entry.rb +2 -2
- data/lib/intacctrb/vendor.rb +1 -0
- data/lib/intacctrb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77485ac3a31ef05c39387161c6ff01f8bf52d90c59353aa6ae8ad5d0d6563ea6
|
4
|
+
data.tar.gz: de3d6b501641f15bbe0ac740f320805457ca7eaf4b9612f104e70283f4392780
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dceda39bb1ec921b40b4b449219914f2874347bf12f13882b68a7a3457eedf9a6a2628d7bbc3e4582eae9e5a7b02e77ebfca599739a7afe4751f992f8cf5a57d
|
7
|
+
data.tar.gz: 297aae0c02ba942313d3b8be3fec050cb24c8086a2fe841cd66a562022fdc05c0cf3da253b1051b852a1c034ff5c528d4725cf743a21c2504cf50ef31cf4a5f8
|
data/Gemfile.lock
CHANGED
data/lib/intacctrb/ap_payment.rb
CHANGED
@@ -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 {
|
data/lib/intacctrb/base.rb
CHANGED
@@ -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
|
}
|
data/lib/intacctrb/vendor.rb
CHANGED
@@ -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)
|
data/lib/intacctrb/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|