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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/intacctrb/bill.rb +24 -24
- data/lib/intacctrb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 547f23fe036303a73ddac1ada3ee38c9fa7809bda10650470caa83c04a753694
|
4
|
+
data.tar.gz: 58a147d63457e5db0a04f92638f6bebec4a9b3c51a360b72f4c987723e52faf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36325bae77f21edff2d346efd329d249a715a532f2c2f01a03d7badbcb1442cd464e29c98dda7c259e95e52839d409f21f9203865187c28de0b87fd03d4e06e8
|
7
|
+
data.tar.gz: 254bc1cf6c3e34c3c516c7454dfe34b10835d8a7e381eb03e647357ac2198b0e5a66c868b72a1af07bccacc896cc41701948ccc536ffc0fcb7788fb7d5f108b5
|
data/Gemfile.lock
CHANGED
data/lib/intacctrb/bill.rb
CHANGED
@@ -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
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
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
|
data/lib/intacctrb/version.rb
CHANGED