intacctrb 0.4 → 0.4.1
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/journal_entry.rb +10 -2
- data/lib/intacctrb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee9a368332271eeae712d46da16f1092c3dadc3a
|
4
|
+
data.tar.gz: 5cd70c9d0c36a56adc82c543f785c6c591783eb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3194f0c0a85fb73f7eb5d6de46231b513b82c9c3dcf6cf569aea6fedcfb6cf1a4fa26a940b9c820cdd59687e79b8cef7df87d472ebd0788fef30809f14247152
|
7
|
+
data.tar.gz: 16014a3f2092f1958ef9e25bfbade1d895580fceda90391c6c5ac24c482d0d88225d514d3a8123bfe458ff4a17a27613c10d52daa9861638ea5db0199a6fe391
|
data/Gemfile.lock
CHANGED
@@ -157,8 +157,8 @@ module IntacctRB
|
|
157
157
|
def je_xml xml
|
158
158
|
xml.recordno object.intacct_id if object.intacct_id
|
159
159
|
xml.journal object.journal_id
|
160
|
-
xml.batch_date (object.date
|
161
|
-
xml.reverse_date (object.reverse_date
|
160
|
+
xml.batch_date date_string(object.date) if object.date
|
161
|
+
xml.reverse_date date_string(object.reverse_date) if object.reverse_date
|
162
162
|
xml.batch_title object.description
|
163
163
|
xml.referenceno object.reference_number
|
164
164
|
je_item_fields(xml)
|
@@ -184,5 +184,13 @@ module IntacctRB
|
|
184
184
|
}
|
185
185
|
end
|
186
186
|
|
187
|
+
def date_string(date)
|
188
|
+
if date.is_a?(Date) || date.is_a?(DateTime)
|
189
|
+
date.strftime('%Y-%m-%d')
|
190
|
+
elsif date.is_a? String
|
191
|
+
date
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
187
195
|
end
|
188
196
|
end
|
data/lib/intacctrb/version.rb
CHANGED