qbwc_requests 0.0.9.01 → 0.1.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 022330dffbdd8b7d0bdab627c46882115b6e508e
|
4
|
+
data.tar.gz: f726bed25f62863ff12876524bffe50458f8bcc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78977f199402ccb42392c721c61171f5a289e0735bcc69fe31ce5d530a91ed6bca368fd7796c7cf78279b8690f07d2abd6ff5cb173232d2ac35dc31a1ac5b52f
|
7
|
+
data.tar.gz: fddff4125e767621417965a2b0b44e0f6672b918f99a821b59c2e0b64aaf40246950e3d6641013a64e1b47e088cdeba4b9a9a33af77734477d7a7e1deb897b0f
|
@@ -4,28 +4,7 @@ module Qbwc
|
|
4
4
|
class PurchaseOrder < Qbwc::Request::Base
|
5
5
|
|
6
6
|
field :vendor_ref
|
7
|
-
field :class_ref
|
8
|
-
field :ship_to_entity_ref
|
9
|
-
field :template_ref
|
10
|
-
field :txn_date
|
11
|
-
field :ref_number
|
12
|
-
field :vendor_address
|
13
|
-
field :ship_address
|
14
|
-
field :terms_ref
|
15
|
-
field :due_date
|
16
|
-
field :expected_date
|
17
|
-
field :ship_method_ref
|
18
|
-
field :FOB
|
19
|
-
field :memo
|
20
|
-
field :vendor_msg
|
21
|
-
field :is_to_be_printed
|
22
|
-
field :is_to_be_emailed
|
23
|
-
field :is_tax_included
|
24
|
-
field :sales_tax_code_ref
|
25
|
-
field :other1
|
26
|
-
field :other2
|
27
7
|
field :purchase_order_line_add
|
28
|
-
field :purchase_order_line_group_add
|
29
8
|
|
30
9
|
end
|
31
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qbwc_requests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Mondaini Calvão
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: qbxml
|
@@ -85,7 +85,6 @@ files:
|
|
85
85
|
- lib/qbwc_requests/qbwc/qbwc.rb
|
86
86
|
- lib/qbwc_requests/qbwc/request/base.rb
|
87
87
|
- lib/qbwc_requests/qbwc/request/v07/account.rb
|
88
|
-
- lib/qbwc_requests/qbwc/request/v07/bill.rb
|
89
88
|
- lib/qbwc_requests/qbwc/request/v07/customer.rb
|
90
89
|
- lib/qbwc_requests/qbwc/request/v07/estimate.rb
|
91
90
|
- lib/qbwc_requests/qbwc/request/v07/invoice.rb
|
@@ -154,7 +153,6 @@ files:
|
|
154
153
|
- quickbook/xml/qbxmlops70.xml
|
155
154
|
- spec/qbwc/request/base_spec.rb
|
156
155
|
- spec/qbwc/request/v07/account_spec.rb
|
157
|
-
- spec/qbwc/request/v07/bill_spec.rb
|
158
156
|
- spec/qbwc/request/v07/customer_spec.rb
|
159
157
|
- spec/qbwc/request/v07/estimate_spec.rb
|
160
158
|
- spec/qbwc/request/v07/invoice_spec.rb
|
@@ -199,7 +197,6 @@ summary: This gem helps you generate Qbxml requests
|
|
199
197
|
test_files:
|
200
198
|
- spec/qbwc/request/base_spec.rb
|
201
199
|
- spec/qbwc/request/v07/account_spec.rb
|
202
|
-
- spec/qbwc/request/v07/bill_spec.rb
|
203
200
|
- spec/qbwc/request/v07/customer_spec.rb
|
204
201
|
- spec/qbwc/request/v07/estimate_spec.rb
|
205
202
|
- spec/qbwc/request/v07/invoice_spec.rb
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
RSpec.describe Qbwc::Request::V07::Bill do
|
4
|
-
|
5
|
-
it_behaves_like 'queryable'
|
6
|
-
|
7
|
-
describe "add" do
|
8
|
-
|
9
|
-
let(:bill){ Qbwc::Request::V07::Bill.new() }
|
10
|
-
|
11
|
-
it "should create an add bill xml" do
|
12
|
-
xml = <<-XML
|
13
|
-
<?xml version='1.0' encoding='utf-8'?>
|
14
|
-
<?qbxml version="7.0"?>
|
15
|
-
<QBXML>
|
16
|
-
<QBXMLMsgsRq onError="stopOnError">
|
17
|
-
<BillAddRq requestID="2">
|
18
|
-
<BillAdd>
|
19
|
-
</BillAdd>
|
20
|
-
</BillAddRq>
|
21
|
-
</QBXMLMsgsRq>
|
22
|
-
</QBXML>
|
23
|
-
XML
|
24
|
-
expect( bill.add ).to be_xml_equal_to xml
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
end
|