intacctrb 0.8.12 → 0.8.13

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
  SHA256:
3
- metadata.gz: 77485ac3a31ef05c39387161c6ff01f8bf52d90c59353aa6ae8ad5d0d6563ea6
4
- data.tar.gz: de3d6b501641f15bbe0ac740f320805457ca7eaf4b9612f104e70283f4392780
3
+ metadata.gz: 547f23fe036303a73ddac1ada3ee38c9fa7809bda10650470caa83c04a753694
4
+ data.tar.gz: 58a147d63457e5db0a04f92638f6bebec4a9b3c51a360b72f4c987723e52faf7
5
5
  SHA512:
6
- metadata.gz: dceda39bb1ec921b40b4b449219914f2874347bf12f13882b68a7a3457eedf9a6a2628d7bbc3e4582eae9e5a7b02e77ebfca599739a7afe4751f992f8cf5a57d
7
- data.tar.gz: 297aae0c02ba942313d3b8be3fec050cb24c8086a2fe841cd66a562022fdc05c0cf3da253b1051b852a1c034ff5c528d4725cf743a21c2504cf50ef31cf4a5f8
6
+ metadata.gz: 36325bae77f21edff2d346efd329d249a715a532f2c2f01a03d7badbcb1442cd464e29c98dda7c259e95e52839d409f21f9203865187c28de0b87fd03d4e06e8
7
+ data.tar.gz: 254bc1cf6c3e34c3c516c7454dfe34b10835d8a7e381eb03e647357ac2198b0e5a66c868b72a1af07bccacc896cc41701948ccc536ffc0fcb7788fb7d5f108b5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- intacctrb (0.8.12)
4
+ intacctrb (0.8.13)
5
5
  hooks
6
6
  nokogiri
7
7
 
@@ -120,30 +120,30 @@ module IntacctRB
120
120
 
121
121
  def bill_xml xml
122
122
  xml.recordno object.intacct_id
123
- xml.po_number object.po_number
124
- xml.vendorid object.vendor_id
125
- xml.whenposted object.posted_at
126
- xml.whencreated object.invoice_date
127
- xml.whendue object.due_date
128
- xml.action object.action
129
- xml.recordid object.record_id
130
- xml.docnumber object.reference_number
131
- xml.supdocid object.supdoc_id
132
-
133
- xml.apbillitems {
134
- object.line_items.each do |line_item|
135
- xml.apbillitem {
136
- xml.accountno line_item.account_number
137
- xml.amount line_item.amount
138
- xml.entrydescription line_item.memo
139
- xml.locationid line_item.location_id
140
- xml.departmentid line_item.department_id
141
- xml.projectid line_item.project_id
142
- xml.classid line_item.class_id
143
- }
144
- end
145
- }
146
-
123
+ xml.po_number object.po_number if object.po_number
124
+ xml.vendorid object.vendor_id if object.vendor_id
125
+ xml.whenposted object.posted_at if object.posted_at
126
+ xml.whencreated object.invoice_date if object.invoice_date
127
+ xml.whendue object.due_date if object.due_date
128
+ xml.action object.action if object.action
129
+ xml.recordid object.record_id if object.record_id
130
+ xml.docnumber object.reference_number if object.reference_number
131
+ xml.supdocid object.supdoc_id if object.supdoc_id
132
+ if object.line_items
133
+ xml.apbillitems {
134
+ object.line_items.each do |line_item|
135
+ xml.apbillitem {
136
+ xml.accountno line_item.account_number
137
+ xml.amount line_item.amount
138
+ xml.entrydescription line_item.memo
139
+ xml.locationid line_item.location_id
140
+ xml.departmentid line_item.department_id
141
+ xml.projectid line_item.project_id
142
+ xml.classid line_item.class_id
143
+ }
144
+ end
145
+ }
146
+ end
147
147
  run_hook :custom_bill_fields, xml
148
148
  run_hook :bill_item_fields, xml
149
149
  end
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.8.12"
2
+ VERSION = "0.8.13"
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.8.12
4
+ version: 0.8.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale