intacctrb 0.8.18 → 0.8.19

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: b6eb89915336036670bcb1c50a15293d85b677e93405498e06339634e51f221a
4
- data.tar.gz: d8bee4e9f78a503058b71d051dbc86cc6c623379551af325c7f3addf83d86613
3
+ metadata.gz: 3a98dc9e3bab10687712e89fc41bd305e75a998734ccdd2cea189bdeb906af60
4
+ data.tar.gz: 3a87e24cf981a5d37b890f1fe6716331b090b1fa8d0a00b99a1d45dd4b03d79a
5
5
  SHA512:
6
- metadata.gz: 766e21011c325c7a95d9602bc61d380bc6726dcf2777de16d863cacd5f5575676d28afb874d08b937d78ab382cc1654dd60b961cde9b513ebf6e681359ae57e3
7
- data.tar.gz: 54baf9f2e00ee8eb8a184fbc07e4392a9282a7c695f1d4d46a3d25e45585b57d97ea1a525aac8a8c2c409bed3fdcc2c18d277663f6c1f3099e0b87bda4c0a190
6
+ metadata.gz: b6510b64de3e9e6c04237479f8b425f2d9b4b73990f83736ffb392e2d72d72180ce410f5335dd8501a37e4ce55c7910c0e9672ce1ed5267007f5038a2f3adce2
7
+ data.tar.gz: 3694ee6cc63ed18b422ed8d752ad3f9faf3caa839628659038cffd634d3e81da7e85383efdc2156b51259ad7081a17ef01a3592629053aeabe2c0c0310189e3f
@@ -27,14 +27,14 @@ module IntacctRB
27
27
 
28
28
  def reverse
29
29
  return false unless object.id.present?
30
-
30
+ parsed_date = Date.parse(object.date) rescue Date.today
31
31
  send_xml('delete') do |xml|
32
32
  xml.function(controlid: "1") {
33
33
  xml.reverse_appayment(key: object.id) do |xml|
34
34
  xml.datereversed do |xml|
35
- xml.year object.date.year
36
- xml.month object.date.month
37
- xml.day object.date.day
35
+ xml.year parsed_date.year
36
+ xml.month parsed_date.month
37
+ xml.day parsed_date.day
38
38
  end
39
39
  end
40
40
  }
@@ -1,3 +1,3 @@
1
1
  module IntacctRB
2
- VERSION = "0.8.18"
2
+ VERSION = "0.8.19"
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.18
4
+ version: 0.8.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Hale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-17 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  requirements: []
220
220
  rubyforge_project:
221
- rubygems_version: 2.7.6
221
+ rubygems_version: 2.7.7
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Ruby Intacct API Client