invoicexpress 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +0 -0
- data/README.md +322 -0
- data/Rakefile +19 -0
- data/invoicexpress.gemspec +26 -0
- data/lib/faraday/response/parse_xml.rb +23 -0
- data/lib/faraday/response/raise_invoicexpress_errors.rb +20 -0
- data/lib/invoicexpress.rb +26 -0
- data/lib/invoicexpress/authentication.rb +15 -0
- data/lib/invoicexpress/client.rb +56 -0
- data/lib/invoicexpress/client/cash_invoices.rb +110 -0
- data/lib/invoicexpress/client/charts.rb +57 -0
- data/lib/invoicexpress/client/clients.rb +215 -0
- data/lib/invoicexpress/client/credit_notes.rb +128 -0
- data/lib/invoicexpress/client/debit_notes.rb +129 -0
- data/lib/invoicexpress/client/invoices.rb +107 -0
- data/lib/invoicexpress/client/items.rb +82 -0
- data/lib/invoicexpress/client/purchase_orders.rb +126 -0
- data/lib/invoicexpress/client/schedules.rb +110 -0
- data/lib/invoicexpress/client/sequences.rb +71 -0
- data/lib/invoicexpress/client/simplified_invoices.rb +130 -0
- data/lib/invoicexpress/client/taxes.rb +82 -0
- data/lib/invoicexpress/client/users.rb +48 -0
- data/lib/invoicexpress/configuration.rb +51 -0
- data/lib/invoicexpress/connection.rb +40 -0
- data/lib/invoicexpress/error.rb +68 -0
- data/lib/invoicexpress/models.rb +29 -0
- data/lib/invoicexpress/models/chart.rb +41 -0
- data/lib/invoicexpress/models/client.rb +24 -0
- data/lib/invoicexpress/models/filter.rb +60 -0
- data/lib/invoicexpress/models/invoice.rb +235 -0
- data/lib/invoicexpress/models/purchase_order.rb +72 -0
- data/lib/invoicexpress/models/quarterly_result.rb +45 -0
- data/lib/invoicexpress/models/schedule.rb +87 -0
- data/lib/invoicexpress/models/sequence.rb +17 -0
- data/lib/invoicexpress/models/supplier.rb +17 -0
- data/lib/invoicexpress/models/top_client.rb +15 -0
- data/lib/invoicexpress/models/top_debtor.rb +14 -0
- data/lib/invoicexpress/models/user.rb +31 -0
- data/lib/invoicexpress/request.rb +63 -0
- data/lib/invoicexpress/version.rb +3 -0
- data/spec/fixtures/charts.invoicing.xml +21 -0
- data/spec/fixtures/charts.quarterly-results.xml +25 -0
- data/spec/fixtures/charts.top-clients.xml +10 -0
- data/spec/fixtures/charts.top-debtors.xml +10 -0
- data/spec/fixtures/charts.treasury.xml +49 -0
- data/spec/fixtures/clients.create.xml +6 -0
- data/spec/fixtures/clients.get.xml +21 -0
- data/spec/fixtures/clients.invoices.xml +11 -0
- data/spec/fixtures/clients.list.xml +18 -0
- data/spec/fixtures/clients.update.xml +1 -0
- data/spec/fixtures/credit_notes.create.xml +53 -0
- data/spec/fixtures/credit_notes.email_document.xml +9 -0
- data/spec/fixtures/credit_notes.list.xml +114 -0
- data/spec/fixtures/credit_notes.update_state.xml +7 -0
- data/spec/fixtures/invoices.create.xml +37 -0
- data/spec/fixtures/invoices.get.xml +50 -0
- data/spec/fixtures/invoices.list.xml +537 -0
- data/spec/fixtures/invoices.update_state.xml +7 -0
- data/spec/fixtures/ok.xml +0 -0
- data/spec/fixtures/po.create.xml +42 -0
- data/spec/fixtures/po.email_document.xml +0 -0
- data/spec/fixtures/po.get.xml +42 -0
- data/spec/fixtures/po.list.xml +44 -0
- data/spec/fixtures/po.update_state.xml +7 -0
- data/spec/fixtures/schedules.create.xml +48 -0
- data/spec/fixtures/schedules.get.xml +57 -0
- data/spec/fixtures/schedules.list.xml +40 -0
- data/spec/fixtures/sequences.create.xml +9 -0
- data/spec/fixtures/sequences.get.xml +10 -0
- data/spec/fixtures/sequences.list.xml +12 -0
- data/spec/fixtures/sequences.update.xml +10 -0
- data/spec/fixtures/simplified_invoices.create.xml +53 -0
- data/spec/fixtures/simplified_invoices.email_document.xml +9 -0
- data/spec/fixtures/simplified_invoices.get.xml +74 -0
- data/spec/fixtures/simplified_invoices.list.xml +114 -0
- data/spec/fixtures/simplified_invoices.update.xml +0 -0
- data/spec/fixtures/simplified_invoices.update_state.xml +7 -0
- data/spec/fixtures/taxes.create.xml +7 -0
- data/spec/fixtures/taxes.list.xml +18 -0
- data/spec/fixtures/taxes.update.xml +7 -0
- data/spec/fixtures/users.accounts.xml +12 -0
- data/spec/fixtures/users.change-account.xml +0 -0
- data/spec/fixtures/users.login.xml +11 -0
- data/spec/helper.rb +62 -0
- data/spec/invoicexpress/client/charts_spec.rb +69 -0
- data/spec/invoicexpress/client/clients_spec.rb +108 -0
- data/spec/invoicexpress/client/credit_notes_spec.rb +104 -0
- data/spec/invoicexpress/client/invoices_spec.rb +110 -0
- data/spec/invoicexpress/client/purchase_orders_spec.rb +116 -0
- data/spec/invoicexpress/client/schedules_spec.rb +111 -0
- data/spec/invoicexpress/client/sequences_spec.rb +68 -0
- data/spec/invoicexpress/client/simplified_invoices_spec.rb +116 -0
- data/spec/invoicexpress/client/taxes_spec.rb +70 -0
- data/spec/invoicexpress/client/users_spec.rb +40 -0
- data/spec/invoicexpress/client_spec.rb +24 -0
- data/spec/invoicexpress_spec.rb +19 -0
- metadata +279 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<invoices type="array">
|
3
|
+
<results>
|
4
|
+
<current_page>1</current_page>
|
5
|
+
<entries>0</entries>
|
6
|
+
<total_entries>0</total_entries>
|
7
|
+
<current_page>1</current_page>
|
8
|
+
<total_pages>0</total_pages>
|
9
|
+
<per_page>50</per_page>
|
10
|
+
</results>
|
11
|
+
</invoices>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<clients>
|
3
|
+
<client>
|
4
|
+
<id>393116</id>
|
5
|
+
<name>Ruben Fonseca</name>
|
6
|
+
<email>fonseka@gmail.com</email>
|
7
|
+
<address/>
|
8
|
+
<postal_code/>
|
9
|
+
<fiscal_id/>
|
10
|
+
<website/>
|
11
|
+
<phone/>
|
12
|
+
<fax/>
|
13
|
+
<preferred_contact>
|
14
|
+
</preferred_contact>
|
15
|
+
<observations/>
|
16
|
+
<send_options/>
|
17
|
+
</client>
|
18
|
+
</clients>
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<credit_note>
|
3
|
+
<id>1423940</id>
|
4
|
+
<status>draft</status>
|
5
|
+
<type>CreditNote</type>
|
6
|
+
<sequence_number>draft</sequence_number>
|
7
|
+
<date>01/05/2013</date>
|
8
|
+
<due_date>01/06/2013</due_date>
|
9
|
+
<reference></reference>
|
10
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
11
|
+
<retention></retention>
|
12
|
+
<client>
|
13
|
+
<id>439232</id>
|
14
|
+
<name>Pedro Sousa</name>
|
15
|
+
<email>psousa@thinkorange.pt</email>
|
16
|
+
<address>Rua Luisa de Camões 18</address>
|
17
|
+
<postal_code>1231-123</postal_code>
|
18
|
+
<country>Portugal</country>
|
19
|
+
<fiscal_id>210533382</fiscal_id>
|
20
|
+
</client>
|
21
|
+
<currency>Euro</currency>
|
22
|
+
<items type="array">
|
23
|
+
<item>
|
24
|
+
<name>Item 1</name>
|
25
|
+
<description></description>
|
26
|
+
<unit_price>60.0</unit_price>
|
27
|
+
<unit>unit</unit>
|
28
|
+
<quantity>2.0</quantity>
|
29
|
+
<tax>
|
30
|
+
<name></name>
|
31
|
+
<value>0.0</value>
|
32
|
+
</tax>
|
33
|
+
<discount>0.0</discount>
|
34
|
+
</item>
|
35
|
+
<item>
|
36
|
+
<name>Item 2</name>
|
37
|
+
<description></description>
|
38
|
+
<unit_price>50.0</unit_price>
|
39
|
+
<unit>unit</unit>
|
40
|
+
<quantity>1.0</quantity>
|
41
|
+
<tax>
|
42
|
+
<name></name>
|
43
|
+
<value>0.0</value>
|
44
|
+
</tax>
|
45
|
+
<discount>0.0</discount>
|
46
|
+
</item>
|
47
|
+
</items>
|
48
|
+
<sum>170.0</sum>
|
49
|
+
<discount>0.0</discount>
|
50
|
+
<before_taxes>170.0</before_taxes>
|
51
|
+
<taxes>0.0</taxes>
|
52
|
+
<total>170.0</total>
|
53
|
+
</credit_note>
|
@@ -0,0 +1,114 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<credit_notes type="array">
|
3
|
+
<results>
|
4
|
+
<current_page>1</current_page>
|
5
|
+
<entries>2</entries>
|
6
|
+
<total_entries>2</total_entries>
|
7
|
+
</results>
|
8
|
+
<credit_note>
|
9
|
+
<id>1415679</id>
|
10
|
+
<status>final</status>
|
11
|
+
<archived>false</archived>
|
12
|
+
<type>CreditNote</type>
|
13
|
+
<sequence_number>1/2013</sequence_number>
|
14
|
+
<date>01/02/2013</date>
|
15
|
+
<due_date>01/02/2013</due_date>
|
16
|
+
<reference></reference>
|
17
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
18
|
+
<retention></retention>
|
19
|
+
<client>
|
20
|
+
<id>550611</id>
|
21
|
+
<name>Pedro Sousa</name>
|
22
|
+
<email>psousa@thinkorange.pt</email>
|
23
|
+
<address>Rua Luisa de Camões 18</address>
|
24
|
+
<postal_code>1231-123</postal_code>
|
25
|
+
<country>Portugal</country>
|
26
|
+
<fiscal_id>210533382</fiscal_id>
|
27
|
+
</client>
|
28
|
+
<currency>Euro</currency>
|
29
|
+
<items type="array">
|
30
|
+
<item>
|
31
|
+
<name>Item 1</name>
|
32
|
+
<description></description>
|
33
|
+
<unit_price>30.0</unit_price>
|
34
|
+
<unit>unit</unit>
|
35
|
+
<quantity>2.0</quantity>
|
36
|
+
<tax>
|
37
|
+
<name></name>
|
38
|
+
<value>0.0</value>
|
39
|
+
</tax>
|
40
|
+
<discount>0.0</discount>
|
41
|
+
</item>
|
42
|
+
<item>
|
43
|
+
<name>Item 2</name>
|
44
|
+
<description></description>
|
45
|
+
<unit_price>50.0</unit_price>
|
46
|
+
<unit>unit</unit>
|
47
|
+
<quantity>3.0</quantity>
|
48
|
+
<tax>
|
49
|
+
<name></name>
|
50
|
+
<value>0.0</value>
|
51
|
+
</tax>
|
52
|
+
<discount>0.0</discount>
|
53
|
+
</item>
|
54
|
+
</items>
|
55
|
+
<sum>210.0</sum>
|
56
|
+
<discount>0.0</discount>
|
57
|
+
<before_taxes>210.0</before_taxes>
|
58
|
+
<taxes>0.0</taxes>
|
59
|
+
<total>210.0</total>
|
60
|
+
</credit_note>
|
61
|
+
<credit_note>
|
62
|
+
<id>1415679</id>
|
63
|
+
<status>final</status>
|
64
|
+
<archived>false</archived>
|
65
|
+
<type>CreditNote</type>
|
66
|
+
<sequence_number>1/2013</sequence_number>
|
67
|
+
<date>01/02/2013</date>
|
68
|
+
<due_date>01/02/2013</due_date>
|
69
|
+
<reference></reference>
|
70
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
71
|
+
<retention></retention>
|
72
|
+
<client>
|
73
|
+
<id>550611</id>
|
74
|
+
<name>Pedro Sousa</name>
|
75
|
+
<email>psousa@thinkorange.pt</email>
|
76
|
+
<address>Rua Luisa de Camões 18</address>
|
77
|
+
<postal_code>1231-123</postal_code>
|
78
|
+
<country>Portugal</country>
|
79
|
+
<fiscal_id>210533382</fiscal_id>
|
80
|
+
</client>
|
81
|
+
<currency>Euro</currency>
|
82
|
+
<items type="array">
|
83
|
+
<item>
|
84
|
+
<name>Item 1</name>
|
85
|
+
<description></description>
|
86
|
+
<unit_price>30.0</unit_price>
|
87
|
+
<unit>unit</unit>
|
88
|
+
<quantity>2.0</quantity>
|
89
|
+
<tax>
|
90
|
+
<name></name>
|
91
|
+
<value>0.0</value>
|
92
|
+
</tax>
|
93
|
+
<discount>0.0</discount>
|
94
|
+
</item>
|
95
|
+
<item>
|
96
|
+
<name>Item 2</name>
|
97
|
+
<description></description>
|
98
|
+
<unit_price>50.0</unit_price>
|
99
|
+
<unit>unit</unit>
|
100
|
+
<quantity>3.0</quantity>
|
101
|
+
<tax>
|
102
|
+
<name></name>
|
103
|
+
<value>0.0</value>
|
104
|
+
</tax>
|
105
|
+
<discount>0.0</discount>
|
106
|
+
</item>
|
107
|
+
</items>
|
108
|
+
<sum>210.0</sum>
|
109
|
+
<discount>0.0</discount>
|
110
|
+
<before_taxes>210.0</before_taxes>
|
111
|
+
<taxes>0.0</taxes>
|
112
|
+
<total>210.0</total>
|
113
|
+
</credit_note>
|
114
|
+
</credit_notes>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<invoice>
|
3
|
+
<id>1503698</id>
|
4
|
+
<status>draft</status>
|
5
|
+
<type>Invoice</type>
|
6
|
+
<sequence_number>draft</sequence_number>
|
7
|
+
<date>18/06/2013</date>
|
8
|
+
<due_date>18/06/2013</due_date>
|
9
|
+
<reference></reference>
|
10
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
11
|
+
<retention></retention>
|
12
|
+
<permalink>http://www.invoicexpress.net/documents/3bca8a616315b1c8da3c26d692b061220f0f6a45</permalink>
|
13
|
+
<client>
|
14
|
+
<id>501854</id>
|
15
|
+
<name>Ruben Fonseca</name>
|
16
|
+
</client>
|
17
|
+
<currency>Euro</currency>
|
18
|
+
<items type="array">
|
19
|
+
<item>
|
20
|
+
<name>Item 1</name>
|
21
|
+
<description></description>
|
22
|
+
<unit_price>30.0</unit_price>
|
23
|
+
<unit>unit</unit>
|
24
|
+
<quantity>1.0</quantity>
|
25
|
+
<tax>
|
26
|
+
<name></name>
|
27
|
+
<value>0.0</value>
|
28
|
+
</tax>
|
29
|
+
<discount>0.0</discount>
|
30
|
+
</item>
|
31
|
+
</items>
|
32
|
+
<sum>30.0</sum>
|
33
|
+
<discount>0.0</discount>
|
34
|
+
<before_taxes>30.0</before_taxes>
|
35
|
+
<taxes>0.0</taxes>
|
36
|
+
<total>30.0</total>
|
37
|
+
</invoice>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<invoice>
|
3
|
+
<id>1503698</id>
|
4
|
+
<status>draft</status>
|
5
|
+
<archived>false</archived>
|
6
|
+
<type>Invoice</type>
|
7
|
+
<sequence_number>draft</sequence_number>
|
8
|
+
<date>18/06/2013</date>
|
9
|
+
<due_date>18/06/2013</due_date>
|
10
|
+
<reference></reference>
|
11
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
12
|
+
<retention></retention>
|
13
|
+
<permalink>http://www.invoicexpress.net/documents/3bca8a616315b1c8da3c26d692b061220f0f6a45</permalink>
|
14
|
+
<client>
|
15
|
+
<id>501854</id>
|
16
|
+
<name>Ruben Fonseca</name>
|
17
|
+
</client>
|
18
|
+
<currency>Euro</currency>
|
19
|
+
<items type="array">
|
20
|
+
<item>
|
21
|
+
<name>Item 1</name>
|
22
|
+
<description></description>
|
23
|
+
<unit_price>30.0</unit_price>
|
24
|
+
<unit>unit</unit>
|
25
|
+
<quantity>1.0</quantity>
|
26
|
+
<tax>
|
27
|
+
<name></name>
|
28
|
+
<value>0.0</value>
|
29
|
+
</tax>
|
30
|
+
<discount>0.0</discount>
|
31
|
+
<subtotal>30.0</subtotal>
|
32
|
+
<tax_amount>0.0</tax_amount>
|
33
|
+
<discount_amount>0.0</discount_amount>
|
34
|
+
<total>30.0</total>
|
35
|
+
</item>
|
36
|
+
</items>
|
37
|
+
<sum>30.0</sum>
|
38
|
+
<discount>0.0</discount>
|
39
|
+
<before_taxes>30.0</before_taxes>
|
40
|
+
<taxes>0.0</taxes>
|
41
|
+
<total>30.0</total>
|
42
|
+
<invoice_timeline type="array">
|
43
|
+
<event>
|
44
|
+
<type>create</type>
|
45
|
+
<date type="date">20/06/2013</date>
|
46
|
+
<time type="time">17:40</time>
|
47
|
+
<user>info@thinkorange.pt</user>
|
48
|
+
</event>
|
49
|
+
</invoice_timeline>
|
50
|
+
</invoice>
|
@@ -0,0 +1,537 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<invoices type="array">
|
3
|
+
<invoice>
|
4
|
+
<id>1501806</id>
|
5
|
+
<status>settled</status>
|
6
|
+
<archived>false</archived>
|
7
|
+
<type>SimplifiedInvoice</type>
|
8
|
+
<sequence_number>2/2013</sequence_number>
|
9
|
+
<date>16/06/2013</date>
|
10
|
+
<due_date>16/06/2013</due_date>
|
11
|
+
<reference></reference>
|
12
|
+
<observations>wazzaaaap</observations>
|
13
|
+
<retention>0.0</retention>
|
14
|
+
<permalink>http://www.invoicexpress.net/documents/e91295d8ca5797e0cc28c9c2ebf00a71c250f0fd</permalink>
|
15
|
+
<client>
|
16
|
+
<id>439232</id>
|
17
|
+
<name>Pedro Sousa</name>
|
18
|
+
<email>psousa@thinkorange.pt</email>
|
19
|
+
<address>Rua Luisa de Camões 18</address>
|
20
|
+
<postal_code>1231-123</postal_code>
|
21
|
+
<country>Portugal</country>
|
22
|
+
<fiscal_id>210533382</fiscal_id>
|
23
|
+
</client>
|
24
|
+
<currency>Euro</currency>
|
25
|
+
<items type="array">
|
26
|
+
<item>
|
27
|
+
<name>Item 6</name>
|
28
|
+
<description></description>
|
29
|
+
<unit_price>120.0</unit_price>
|
30
|
+
<unit>unit</unit>
|
31
|
+
<quantity>2.0</quantity>
|
32
|
+
<tax>
|
33
|
+
<name></name>
|
34
|
+
<value>0.0</value>
|
35
|
+
</tax>
|
36
|
+
<discount>0.0</discount>
|
37
|
+
<subtotal>240.0</subtotal>
|
38
|
+
<tax_amount>0.0</tax_amount>
|
39
|
+
<discount_amount>0.0</discount_amount>
|
40
|
+
<total>240.0</total>
|
41
|
+
</item>
|
42
|
+
<item>
|
43
|
+
<name>Item AM</name>
|
44
|
+
<description></description>
|
45
|
+
<unit_price>50.0</unit_price>
|
46
|
+
<unit>unit</unit>
|
47
|
+
<quantity>1.0</quantity>
|
48
|
+
<tax>
|
49
|
+
<name></name>
|
50
|
+
<value>0.0</value>
|
51
|
+
</tax>
|
52
|
+
<discount>0.0</discount>
|
53
|
+
<subtotal>50.0</subtotal>
|
54
|
+
<tax_amount>0.0</tax_amount>
|
55
|
+
<discount_amount>0.0</discount_amount>
|
56
|
+
<total>50.0</total>
|
57
|
+
</item>
|
58
|
+
</items>
|
59
|
+
<sum>290.0</sum>
|
60
|
+
<discount>0.0</discount>
|
61
|
+
<before_taxes>290.0</before_taxes>
|
62
|
+
<taxes>0.0</taxes>
|
63
|
+
<total>290.0</total>
|
64
|
+
</invoice>
|
65
|
+
<invoice>
|
66
|
+
<id>1463853</id>
|
67
|
+
<status>draft</status>
|
68
|
+
<archived>false</archived>
|
69
|
+
<type>Invoice</type>
|
70
|
+
<sequence_number>rascunho</sequence_number>
|
71
|
+
<date>08/06/2013</date>
|
72
|
+
<due_date>08/06/2013</due_date>
|
73
|
+
<reference></reference>
|
74
|
+
<observations>Foi criado no site.</observations>
|
75
|
+
<retention>5.0</retention>
|
76
|
+
<permalink>http://www.invoicexpress.net/documents/85358d54facb97552b3880aed67be0fd6474d0a3</permalink>
|
77
|
+
<client>
|
78
|
+
<id>439232</id>
|
79
|
+
<name>Pedro Sousa</name>
|
80
|
+
<email>psousa@thinkorange.pt</email>
|
81
|
+
<address>Rua Luisa de Camões 18</address>
|
82
|
+
<postal_code>1231-123</postal_code>
|
83
|
+
<country>Portugal</country>
|
84
|
+
<fiscal_id>210533382</fiscal_id>
|
85
|
+
</client>
|
86
|
+
<currency>Euro</currency>
|
87
|
+
<items type="array">
|
88
|
+
<item>
|
89
|
+
<name>555</name>
|
90
|
+
<description>Macbook</description>
|
91
|
+
<unit_price>50.0</unit_price>
|
92
|
+
<unit>unit</unit>
|
93
|
+
<quantity>2.0</quantity>
|
94
|
+
<tax>
|
95
|
+
<id>48900</id>
|
96
|
+
<name>IVA23</name>
|
97
|
+
<value>23.0</value>
|
98
|
+
</tax>
|
99
|
+
<discount>0.0</discount>
|
100
|
+
<subtotal>100.0</subtotal>
|
101
|
+
<tax_amount>23.0</tax_amount>
|
102
|
+
<discount_amount>0.0</discount_amount>
|
103
|
+
<total>123.0</total>
|
104
|
+
</item>
|
105
|
+
</items>
|
106
|
+
<sum>100.0</sum>
|
107
|
+
<discount>0.0</discount>
|
108
|
+
<before_taxes>100.0</before_taxes>
|
109
|
+
<taxes>23.0</taxes>
|
110
|
+
<total>118.0</total>
|
111
|
+
</invoice>
|
112
|
+
<invoice>
|
113
|
+
<id>1423940</id>
|
114
|
+
<status>final</status>
|
115
|
+
<archived>false</archived>
|
116
|
+
<type>CreditNote</type>
|
117
|
+
<sequence_number>3/2013</sequence_number>
|
118
|
+
<date>01/05/2013</date>
|
119
|
+
<due_date>01/06/2013</due_date>
|
120
|
+
<reference></reference>
|
121
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
122
|
+
<retention></retention>
|
123
|
+
<permalink>http://www.invoicexpress.net/documents/1387ad1b794bbba30f8378fccc73767038b6477d</permalink>
|
124
|
+
<client>
|
125
|
+
<id>439232</id>
|
126
|
+
<name>Pedro Sousa</name>
|
127
|
+
<email>psousa@thinkorange.pt</email>
|
128
|
+
<address>Rua Luisa de Camões 18</address>
|
129
|
+
<postal_code>1231-123</postal_code>
|
130
|
+
<country>Portugal</country>
|
131
|
+
<fiscal_id>210533382</fiscal_id>
|
132
|
+
</client>
|
133
|
+
<currency>Euro</currency>
|
134
|
+
<items type="array">
|
135
|
+
<item>
|
136
|
+
<name>Item 1</name>
|
137
|
+
<description></description>
|
138
|
+
<unit_price>60.0</unit_price>
|
139
|
+
<unit>unit</unit>
|
140
|
+
<quantity>2.0</quantity>
|
141
|
+
<tax>
|
142
|
+
<name></name>
|
143
|
+
<value>0.0</value>
|
144
|
+
</tax>
|
145
|
+
<discount>0.0</discount>
|
146
|
+
<subtotal>120.0</subtotal>
|
147
|
+
<tax_amount>0.0</tax_amount>
|
148
|
+
<discount_amount>0.0</discount_amount>
|
149
|
+
<total>120.0</total>
|
150
|
+
</item>
|
151
|
+
<item>
|
152
|
+
<name>Item 2</name>
|
153
|
+
<description></description>
|
154
|
+
<unit_price>50.0</unit_price>
|
155
|
+
<unit>unit</unit>
|
156
|
+
<quantity>1.0</quantity>
|
157
|
+
<tax>
|
158
|
+
<name></name>
|
159
|
+
<value>0.0</value>
|
160
|
+
</tax>
|
161
|
+
<discount>0.0</discount>
|
162
|
+
<subtotal>50.0</subtotal>
|
163
|
+
<tax_amount>0.0</tax_amount>
|
164
|
+
<discount_amount>0.0</discount_amount>
|
165
|
+
<total>50.0</total>
|
166
|
+
</item>
|
167
|
+
</items>
|
168
|
+
<sum>170.0</sum>
|
169
|
+
<discount>0.0</discount>
|
170
|
+
<before_taxes>170.0</before_taxes>
|
171
|
+
<taxes>0.0</taxes>
|
172
|
+
<total>170.0</total>
|
173
|
+
</invoice>
|
174
|
+
<invoice>
|
175
|
+
<id>1503648</id>
|
176
|
+
<status>draft</status>
|
177
|
+
<archived>false</archived>
|
178
|
+
<type>CreditNote</type>
|
179
|
+
<sequence_number>draft</sequence_number>
|
180
|
+
<date>01/05/2013</date>
|
181
|
+
<due_date>01/06/2013</due_date>
|
182
|
+
<reference></reference>
|
183
|
+
<observations>Artigo 6º do Decreto‐Lei nº 198/90, de 19 de Junho. Artigo 16º nº 6 do CIVA. </observations>
|
184
|
+
<retention>0.0</retention>
|
185
|
+
<permalink>http://www.invoicexpress.net/documents/7a82cbf5dab0dea0291767b70c75d9d293e4f01f</permalink>
|
186
|
+
<client>
|
187
|
+
<id>439232</id>
|
188
|
+
<name>Pedro Sousa</name>
|
189
|
+
<email>psousa@thinkorange.pt</email>
|
190
|
+
<address>Rua Luisa de Camões 18</address>
|
191
|
+
<postal_code>1231-123</postal_code>
|
192
|
+
<country>Portugal</country>
|
193
|
+
<fiscal_id>210533382</fiscal_id>
|
194
|
+
</client>
|
195
|
+
<currency>Euro</currency>
|
196
|
+
<items type="array">
|
197
|
+
<item>
|
198
|
+
<name>Item 1</name>
|
199
|
+
<description></description>
|
200
|
+
<unit_price>60.0</unit_price>
|
201
|
+
<unit>unit</unit>
|
202
|
+
<quantity>2.0</quantity>
|
203
|
+
<tax>
|
204
|
+
<name></name>
|
205
|
+
<value>0.0</value>
|
206
|
+
</tax>
|
207
|
+
<discount>0.0</discount>
|
208
|
+
<subtotal>120.0</subtotal>
|
209
|
+
<tax_amount>0.0</tax_amount>
|
210
|
+
<discount_amount>0.0</discount_amount>
|
211
|
+
<total>120.0</total>
|
212
|
+
</item>
|
213
|
+
<item>
|
214
|
+
<name>Item 2</name>
|
215
|
+
<description></description>
|
216
|
+
<unit_price>50.0</unit_price>
|
217
|
+
<unit>unit</unit>
|
218
|
+
<quantity>1.0</quantity>
|
219
|
+
<tax>
|
220
|
+
<name></name>
|
221
|
+
<value>0.0</value>
|
222
|
+
</tax>
|
223
|
+
<discount>0.0</discount>
|
224
|
+
<subtotal>50.0</subtotal>
|
225
|
+
<tax_amount>0.0</tax_amount>
|
226
|
+
<discount_amount>0.0</discount_amount>
|
227
|
+
<total>50.0</total>
|
228
|
+
</item>
|
229
|
+
</items>
|
230
|
+
<sum>170.0</sum>
|
231
|
+
<discount>0.0</discount>
|
232
|
+
<before_taxes>170.0</before_taxes>
|
233
|
+
<taxes>0.0</taxes>
|
234
|
+
<total>170.0</total>
|
235
|
+
</invoice>
|
236
|
+
<invoice>
|
237
|
+
<id>1425061</id>
|
238
|
+
<status>settled</status>
|
239
|
+
<archived>false</archived>
|
240
|
+
<type>SimplifiedInvoice</type>
|
241
|
+
<sequence_number>1/2013</sequence_number>
|
242
|
+
<date>01/05/2013</date>
|
243
|
+
<due_date>01/05/2013</due_date>
|
244
|
+
<reference></reference>
|
245
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
246
|
+
<retention></retention>
|
247
|
+
<permalink>http://www.invoicexpress.net/documents/9c21e2aa2fd5a9f999673bc993407a562177fecb</permalink>
|
248
|
+
<client>
|
249
|
+
<id>439232</id>
|
250
|
+
<name>Pedro Sousa</name>
|
251
|
+
<email>psousa@thinkorange.pt</email>
|
252
|
+
<address>Rua Luisa de Camões 18</address>
|
253
|
+
<postal_code>1231-123</postal_code>
|
254
|
+
<country>Portugal</country>
|
255
|
+
<fiscal_id>210533382</fiscal_id>
|
256
|
+
</client>
|
257
|
+
<currency>Euro</currency>
|
258
|
+
<items type="array">
|
259
|
+
<item>
|
260
|
+
<name>Item 1</name>
|
261
|
+
<description></description>
|
262
|
+
<unit_price>60.0</unit_price>
|
263
|
+
<unit>unit</unit>
|
264
|
+
<quantity>2.0</quantity>
|
265
|
+
<tax>
|
266
|
+
<name></name>
|
267
|
+
<value>0.0</value>
|
268
|
+
</tax>
|
269
|
+
<discount>0.0</discount>
|
270
|
+
<subtotal>120.0</subtotal>
|
271
|
+
<tax_amount>0.0</tax_amount>
|
272
|
+
<discount_amount>0.0</discount_amount>
|
273
|
+
<total>120.0</total>
|
274
|
+
</item>
|
275
|
+
<item>
|
276
|
+
<name>Item 2</name>
|
277
|
+
<description></description>
|
278
|
+
<unit_price>50.0</unit_price>
|
279
|
+
<unit>unit</unit>
|
280
|
+
<quantity>1.0</quantity>
|
281
|
+
<tax>
|
282
|
+
<name></name>
|
283
|
+
<value>0.0</value>
|
284
|
+
</tax>
|
285
|
+
<discount>0.0</discount>
|
286
|
+
<subtotal>50.0</subtotal>
|
287
|
+
<tax_amount>0.0</tax_amount>
|
288
|
+
<discount_amount>0.0</discount_amount>
|
289
|
+
<total>50.0</total>
|
290
|
+
</item>
|
291
|
+
</items>
|
292
|
+
<sum>170.0</sum>
|
293
|
+
<discount>0.0</discount>
|
294
|
+
<before_taxes>170.0</before_taxes>
|
295
|
+
<taxes>0.0</taxes>
|
296
|
+
<total>170.0</total>
|
297
|
+
</invoice>
|
298
|
+
<invoice>
|
299
|
+
<id>1423803</id>
|
300
|
+
<status>final</status>
|
301
|
+
<archived>false</archived>
|
302
|
+
<type>CreditNote</type>
|
303
|
+
<sequence_number>2/2013</sequence_number>
|
304
|
+
<date>01/05/2013</date>
|
305
|
+
<due_date>01/06/2013</due_date>
|
306
|
+
<reference></reference>
|
307
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
308
|
+
<retention></retention>
|
309
|
+
<permalink>http://www.invoicexpress.net/documents/8b499543512ad74ff3d0bb076c74804ba8946725</permalink>
|
310
|
+
<client>
|
311
|
+
<id>439232</id>
|
312
|
+
<name>Pedro Sousa</name>
|
313
|
+
<email>psousa@thinkorange.pt</email>
|
314
|
+
<address>Rua Luisa de Camões 18</address>
|
315
|
+
<postal_code>1231-123</postal_code>
|
316
|
+
<country>Portugal</country>
|
317
|
+
<fiscal_id>210533382</fiscal_id>
|
318
|
+
</client>
|
319
|
+
<currency>Euro</currency>
|
320
|
+
<items type="array">
|
321
|
+
<item>
|
322
|
+
<name>Item 1</name>
|
323
|
+
<description></description>
|
324
|
+
<unit_price>60.0</unit_price>
|
325
|
+
<unit>unit</unit>
|
326
|
+
<quantity>2.0</quantity>
|
327
|
+
<tax>
|
328
|
+
<name></name>
|
329
|
+
<value>0.0</value>
|
330
|
+
</tax>
|
331
|
+
<discount>0.0</discount>
|
332
|
+
<subtotal>120.0</subtotal>
|
333
|
+
<tax_amount>0.0</tax_amount>
|
334
|
+
<discount_amount>0.0</discount_amount>
|
335
|
+
<total>120.0</total>
|
336
|
+
</item>
|
337
|
+
<item>
|
338
|
+
<name>Item 2</name>
|
339
|
+
<description></description>
|
340
|
+
<unit_price>50.0</unit_price>
|
341
|
+
<unit>unit</unit>
|
342
|
+
<quantity>1.0</quantity>
|
343
|
+
<tax>
|
344
|
+
<name></name>
|
345
|
+
<value>0.0</value>
|
346
|
+
</tax>
|
347
|
+
<discount>0.0</discount>
|
348
|
+
<subtotal>50.0</subtotal>
|
349
|
+
<tax_amount>0.0</tax_amount>
|
350
|
+
<discount_amount>0.0</discount_amount>
|
351
|
+
<total>50.0</total>
|
352
|
+
</item>
|
353
|
+
</items>
|
354
|
+
<sum>170.0</sum>
|
355
|
+
<discount>0.0</discount>
|
356
|
+
<before_taxes>170.0</before_taxes>
|
357
|
+
<taxes>0.0</taxes>
|
358
|
+
<total>170.0</total>
|
359
|
+
</invoice>
|
360
|
+
<invoice>
|
361
|
+
<id>1214538</id>
|
362
|
+
<status>draft</status>
|
363
|
+
<archived>false</archived>
|
364
|
+
<type>Invoice</type>
|
365
|
+
<sequence_number>rascunho</sequence_number>
|
366
|
+
<date>09/04/2013</date>
|
367
|
+
<due_date>09/04/2013</due_date>
|
368
|
+
<reference></reference>
|
369
|
+
<observations>Foi criado no site.</observations>
|
370
|
+
<retention>5.0</retention>
|
371
|
+
<permalink>http://www.invoicexpress.net/documents/46effab003ec2688c825202e96fd6a1abf628a0f</permalink>
|
372
|
+
<client>
|
373
|
+
<id>439232</id>
|
374
|
+
<name>Pedro Sousa</name>
|
375
|
+
<email>psousa@thinkorange.pt</email>
|
376
|
+
<address>Rua Luisa de Camões 18</address>
|
377
|
+
<postal_code>1231-123</postal_code>
|
378
|
+
<country>Portugal</country>
|
379
|
+
<fiscal_id>210533382</fiscal_id>
|
380
|
+
</client>
|
381
|
+
<currency>Euro</currency>
|
382
|
+
<items type="array">
|
383
|
+
<item>
|
384
|
+
<name>555</name>
|
385
|
+
<description>Macbook</description>
|
386
|
+
<unit_price>50.0</unit_price>
|
387
|
+
<unit>unit</unit>
|
388
|
+
<quantity>2.0</quantity>
|
389
|
+
<tax>
|
390
|
+
<id>48900</id>
|
391
|
+
<name>IVA23</name>
|
392
|
+
<value>23.0</value>
|
393
|
+
</tax>
|
394
|
+
<discount>0.0</discount>
|
395
|
+
<subtotal>100.0</subtotal>
|
396
|
+
<tax_amount>23.0</tax_amount>
|
397
|
+
<discount_amount>0.0</discount_amount>
|
398
|
+
<total>123.0</total>
|
399
|
+
</item>
|
400
|
+
</items>
|
401
|
+
<sum>100.0</sum>
|
402
|
+
<discount>0.0</discount>
|
403
|
+
<before_taxes>100.0</before_taxes>
|
404
|
+
<taxes>23.0</taxes>
|
405
|
+
<total>118.0</total>
|
406
|
+
</invoice>
|
407
|
+
<invoice>
|
408
|
+
<id>1042459</id>
|
409
|
+
<status>final</status>
|
410
|
+
<archived>false</archived>
|
411
|
+
<type>Invoice</type>
|
412
|
+
<sequence_number>1/2013</sequence_number>
|
413
|
+
<date>01/02/2013</date>
|
414
|
+
<due_date>01/02/2013</due_date>
|
415
|
+
<reference></reference>
|
416
|
+
<observations>Artigo 16º nº 6 alínea c) do CIVA. </observations>
|
417
|
+
<retention></retention>
|
418
|
+
<permalink>http://www.invoicexpress.net/documents/142c88ecc6ac1278ab7e5c8958c21a2f6f7c6cdf</permalink>
|
419
|
+
<client>
|
420
|
+
<id>393116</id>
|
421
|
+
<name>Ruben Fonseca</name>
|
422
|
+
<email>fonseka@gmail.com</email>
|
423
|
+
</client>
|
424
|
+
<currency>Euro</currency>
|
425
|
+
<items type="array">
|
426
|
+
<item>
|
427
|
+
<name>Item 1</name>
|
428
|
+
<description></description>
|
429
|
+
<unit_price>30.0</unit_price>
|
430
|
+
<unit>unit</unit>
|
431
|
+
<quantity>2.0</quantity>
|
432
|
+
<tax>
|
433
|
+
<name></name>
|
434
|
+
<value>0.0</value>
|
435
|
+
</tax>
|
436
|
+
<discount>0.0</discount>
|
437
|
+
<subtotal>60.0</subtotal>
|
438
|
+
<tax_amount>0.0</tax_amount>
|
439
|
+
<discount_amount>0.0</discount_amount>
|
440
|
+
<total>60.0</total>
|
441
|
+
</item>
|
442
|
+
</items>
|
443
|
+
<sum>60.0</sum>
|
444
|
+
<discount>0.0</discount>
|
445
|
+
<before_taxes>60.0</before_taxes>
|
446
|
+
<taxes>0.0</taxes>
|
447
|
+
<total>60.0</total>
|
448
|
+
</invoice>
|
449
|
+
<invoice>
|
450
|
+
<id>1042467</id>
|
451
|
+
<status>draft</status>
|
452
|
+
<archived>false</archived>
|
453
|
+
<type>Invoice</type>
|
454
|
+
<sequence_number>draft</sequence_number>
|
455
|
+
<date>01/02/2013</date>
|
456
|
+
<due_date>01/02/2013</due_date>
|
457
|
+
<reference></reference>
|
458
|
+
<observations>Artigo 16º nº 6 alínea c) do CIVA. </observations>
|
459
|
+
<retention></retention>
|
460
|
+
<permalink>http://www.invoicexpress.net/documents/cba912896f7dbdfbbbad06c43d9dcce6a0c89c31</permalink>
|
461
|
+
<client>
|
462
|
+
<id>393116</id>
|
463
|
+
<name>Mister Ruben Fonseca</name>
|
464
|
+
<email>fonseka@gmail.com</email>
|
465
|
+
</client>
|
466
|
+
<currency>Euro</currency>
|
467
|
+
<items type="array">
|
468
|
+
<item>
|
469
|
+
<name>Item 1</name>
|
470
|
+
<description></description>
|
471
|
+
<unit_price>30.0</unit_price>
|
472
|
+
<unit>unit</unit>
|
473
|
+
<quantity>2.0</quantity>
|
474
|
+
<tax>
|
475
|
+
<name></name>
|
476
|
+
<value>0.0</value>
|
477
|
+
</tax>
|
478
|
+
<discount>0.0</discount>
|
479
|
+
<subtotal>60.0</subtotal>
|
480
|
+
<tax_amount>0.0</tax_amount>
|
481
|
+
<discount_amount>0.0</discount_amount>
|
482
|
+
<total>60.0</total>
|
483
|
+
</item>
|
484
|
+
</items>
|
485
|
+
<sum>60.0</sum>
|
486
|
+
<discount>0.0</discount>
|
487
|
+
<before_taxes>60.0</before_taxes>
|
488
|
+
<taxes>0.0</taxes>
|
489
|
+
<total>60.0</total>
|
490
|
+
</invoice>
|
491
|
+
<invoice>
|
492
|
+
<id>1425008</id>
|
493
|
+
<status>draft</status>
|
494
|
+
<archived>false</archived>
|
495
|
+
<type>Invoice</type>
|
496
|
+
<sequence_number>draft</sequence_number>
|
497
|
+
<date>01/02/2013</date>
|
498
|
+
<due_date>01/02/2013</due_date>
|
499
|
+
<reference></reference>
|
500
|
+
<observations>Artigo 16º nº 6 do CIVA. </observations>
|
501
|
+
<retention></retention>
|
502
|
+
<permalink>http://www.invoicexpress.net/documents/54c63772f0c00523f5089817fcce8ceeffcc7a52</permalink>
|
503
|
+
<client>
|
504
|
+
<id>393116</id>
|
505
|
+
<name>Mister Ruben Fonseca</name>
|
506
|
+
<email>fonseka@gmail.com</email>
|
507
|
+
</client>
|
508
|
+
<currency>Euro</currency>
|
509
|
+
<items type="array">
|
510
|
+
<item>
|
511
|
+
<name>Item 1</name>
|
512
|
+
<description></description>
|
513
|
+
<unit_price>30.0</unit_price>
|
514
|
+
<unit>unit</unit>
|
515
|
+
<quantity>2.0</quantity>
|
516
|
+
<tax>
|
517
|
+
<name></name>
|
518
|
+
<value>0.0</value>
|
519
|
+
</tax>
|
520
|
+
<discount>0.0</discount>
|
521
|
+
<subtotal>60.0</subtotal>
|
522
|
+
<tax_amount>0.0</tax_amount>
|
523
|
+
<discount_amount>0.0</discount_amount>
|
524
|
+
<total>60.0</total>
|
525
|
+
</item>
|
526
|
+
</items>
|
527
|
+
<sum>60.0</sum>
|
528
|
+
<discount>0.0</discount>
|
529
|
+
<before_taxes>60.0</before_taxes>
|
530
|
+
<taxes>0.0</taxes>
|
531
|
+
<total>60.0</total>
|
532
|
+
</invoice>
|
533
|
+
<current_page>1</current_page>
|
534
|
+
<total_pages>2</total_pages>
|
535
|
+
<total_entries>15</total_entries>
|
536
|
+
<per_page>10</per_page>
|
537
|
+
</invoices>
|