odoo-addon-ebill-postfinance 17.0.1.0.0.3__py3-none-any.whl → 18.0.1.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/ebill_postfinance/README.rst +13 -8
- odoo/addons/ebill_postfinance/__manifest__.py +1 -1
- odoo/addons/ebill_postfinance/data/ir_cron.xml +0 -2
- odoo/addons/ebill_postfinance/data/mail_activity_type.xml +7 -7
- odoo/addons/ebill_postfinance/data/transmit.method.xml +1 -1
- odoo/addons/ebill_postfinance/i18n/ebill_postfinance.pot +6 -7
- odoo/addons/ebill_postfinance/messages/invoice-2003A.jinja +1 -1
- odoo/addons/ebill_postfinance/messages/invoice-yellowbill.jinja +12 -6
- odoo/addons/ebill_postfinance/models/__init__.py +1 -0
- odoo/addons/ebill_postfinance/models/account_move.py +13 -6
- odoo/addons/ebill_postfinance/models/account_move_line.py +36 -0
- odoo/addons/ebill_postfinance/models/ebill_payment_contract.py +3 -1
- odoo/addons/ebill_postfinance/models/ebill_postfinance_invoice_message.py +20 -10
- odoo/addons/ebill_postfinance/readme/CONTRIBUTORS.md +1 -0
- odoo/addons/ebill_postfinance/readme/INSTALL.md +1 -1
- odoo/addons/ebill_postfinance/static/description/index.html +26 -19
- odoo/addons/ebill_postfinance/tests/__init__.py +1 -0
- odoo/addons/ebill_postfinance/tests/common.py +25 -6
- odoo/addons/ebill_postfinance/tests/{examples → samples}/credit_note_yb.xml +24 -19
- odoo/addons/ebill_postfinance/tests/{examples → samples}/invoice_qr_yb.xml +26 -20
- odoo/addons/ebill_postfinance/tests/samples/invoice_qr_yb_discount.xml +192 -0
- odoo/addons/ebill_postfinance/tests/{examples → samples}/yellowbill_qr_iban.xml +164 -163
- odoo/addons/ebill_postfinance/tests/test_account_move.py +57 -0
- odoo/addons/ebill_postfinance/tests/test_ebill_postfinance.py +8 -1
- odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb.py +28 -15
- odoo/addons/ebill_postfinance/tests/test_ebill_postfinance_message_yb_creditnote.py +5 -9
- odoo/addons/ebill_postfinance/views/ebill_payment_contract.xml +12 -15
- odoo/addons/ebill_postfinance/views/ebill_postfinance_invoice_message.xml +21 -21
- odoo/addons/ebill_postfinance/views/ebill_postfinance_service.xml +14 -14
- {odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info → odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info}/METADATA +19 -13
- odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info/RECORD +47 -0
- {odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info → odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info}/WHEEL +1 -1
- odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info/RECORD +0 -44
- {odoo_addon_ebill_postfinance-17.0.1.0.0.3.dist-info → odoo_addon_ebill_postfinance-18.0.1.1.0.dist-info}/top_level.txt +0 -0
|
@@ -6,6 +6,7 @@ import os
|
|
|
6
6
|
from os.path import dirname, join
|
|
7
7
|
|
|
8
8
|
import requests
|
|
9
|
+
from lxml import etree
|
|
9
10
|
from vcr import VCR
|
|
10
11
|
from xmlunittest import XmlTestMixin
|
|
11
12
|
|
|
@@ -20,6 +21,12 @@ class CommonCase(TransactionCase, XmlTestMixin):
|
|
|
20
21
|
cls._super_send = requests.Session.send
|
|
21
22
|
super().setUpClass()
|
|
22
23
|
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
|
|
24
|
+
cls.setUpBasicData()
|
|
25
|
+
cls.setUpSaleData()
|
|
26
|
+
cls.setUpInvoiceData()
|
|
27
|
+
|
|
28
|
+
@classmethod
|
|
29
|
+
def setUpBasicData(cls):
|
|
23
30
|
cls.service = cls.env["ebill.postfinance.service"].create(
|
|
24
31
|
{
|
|
25
32
|
"name": "Postfinance Test Service",
|
|
@@ -30,7 +37,7 @@ class CommonCase(TransactionCase, XmlTestMixin):
|
|
|
30
37
|
}
|
|
31
38
|
)
|
|
32
39
|
cls.country = cls.env.ref("base.ch")
|
|
33
|
-
cls.company = cls.env.ref("
|
|
40
|
+
cls.company = cls.env.ref("base.demo_company_ch")
|
|
34
41
|
cls.env.user.company_id = cls.company
|
|
35
42
|
cls.company.vat = "CHE-012.345.678"
|
|
36
43
|
cls.company.name = "Camptocamp SA"
|
|
@@ -92,6 +99,9 @@ class CommonCase(TransactionCase, XmlTestMixin):
|
|
|
92
99
|
[("account_type", "=", "asset_receivable")],
|
|
93
100
|
limit=1,
|
|
94
101
|
)
|
|
102
|
+
|
|
103
|
+
@classmethod
|
|
104
|
+
def setUpSaleData(cls):
|
|
95
105
|
cls.product = cls.env["product.product"].create(
|
|
96
106
|
{"name": "Product Q & A", "list_price": 100.00, "default_code": "370003021"}
|
|
97
107
|
)
|
|
@@ -138,6 +148,9 @@ class CommonCase(TransactionCase, XmlTestMixin):
|
|
|
138
148
|
)
|
|
139
149
|
cls.sale.action_confirm()
|
|
140
150
|
cls.sale.date_order = "2019-06-01"
|
|
151
|
+
|
|
152
|
+
@classmethod
|
|
153
|
+
def setUpInvoiceData(cls):
|
|
141
154
|
# Generate the invoice from the sale order
|
|
142
155
|
cls.invoice = cls.sale._create_invoices()
|
|
143
156
|
# And add some more lines on the invoice
|
|
@@ -176,11 +189,12 @@ class CommonCase(TransactionCase, XmlTestMixin):
|
|
|
176
189
|
number_of_lines = len(expected_line)
|
|
177
190
|
for i in range(number_of_lines):
|
|
178
191
|
if generated_line[i].strip() != expected_line[i].strip():
|
|
179
|
-
return "
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
192
|
+
return " || ".join(
|
|
193
|
+
[
|
|
194
|
+
f"Diff at {i}/{number_of_lines}",
|
|
195
|
+
f"Expected {expected_line[i]}",
|
|
196
|
+
f"Generated {generated_line[i]}",
|
|
197
|
+
]
|
|
184
198
|
)
|
|
185
199
|
|
|
186
200
|
|
|
@@ -199,3 +213,8 @@ def get_recorder(base_path=None, **kw):
|
|
|
199
213
|
|
|
200
214
|
|
|
201
215
|
recorder = get_recorder()
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
def clean_xml(txt):
|
|
219
|
+
clean = etree.canonicalize(txt.decode(), strip_text=True).encode()
|
|
220
|
+
return etree.tostring(etree.fromstring(clean), pretty_print=True)
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Envelope
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<Envelope
|
|
3
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5
|
+
type="string"
|
|
6
|
+
>
|
|
3
7
|
<Header>
|
|
4
8
|
<From>Camptocamp SA</From>
|
|
5
9
|
<To>IPECeBILLServer</To>
|
|
@@ -17,7 +21,7 @@
|
|
|
17
21
|
<DeliveryDate>2019-06-21</DeliveryDate>
|
|
18
22
|
<TransactionID>$TRANSACTION_ID</TransactionID>
|
|
19
23
|
<BillDetailsType>PDFAppendix</BillDetailsType>
|
|
20
|
-
<URLBillDetails/>
|
|
24
|
+
<URLBillDetails />
|
|
21
25
|
</DeliveryInfo>
|
|
22
26
|
<Bill>
|
|
23
27
|
<Header>
|
|
@@ -44,7 +48,8 @@
|
|
|
44
48
|
<Address>
|
|
45
49
|
<CompanyName>Test RAD Customer XML</CompanyName>
|
|
46
50
|
<Address1>Teststrasse 100</Address1>
|
|
47
|
-
<Address2
|
|
51
|
+
<Address2
|
|
52
|
+
>This is a very long street name that should be sna</Address2>
|
|
48
53
|
<ZIP>1700</ZIP>
|
|
49
54
|
<City>Fribourg</City>
|
|
50
55
|
<Country>CH</Country>
|
|
@@ -54,11 +59,11 @@
|
|
|
54
59
|
</ReceiverParty>
|
|
55
60
|
<DeliveryPlace>
|
|
56
61
|
<Address>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
<CompanyName>Test RAD Customer XML</CompanyName>
|
|
63
|
+
<ZIP>1700</ZIP>
|
|
64
|
+
<City>Fribourg</City>
|
|
65
|
+
<Country>CH</Country>
|
|
66
|
+
<!-- <Contact1>0000000001</Contact1> -->
|
|
62
67
|
</Address>
|
|
63
68
|
</DeliveryPlace>
|
|
64
69
|
<AchievementDate>
|
|
@@ -67,12 +72,12 @@
|
|
|
67
72
|
</AchievementDate>
|
|
68
73
|
<Currency>CHF</Currency>
|
|
69
74
|
<AccountAssignment>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
<OrderReference>
|
|
76
|
+
<ReferencePosition>1</ReferencePosition>
|
|
77
|
+
<ReferenceType>OrderReference</ReferenceType>
|
|
78
|
+
<ReferenceValue>CustomerRef</ReferenceValue>
|
|
79
|
+
</OrderReference>
|
|
80
|
+
<OrderDate>2019-06-01</OrderDate>
|
|
76
81
|
</AccountAssignment>
|
|
77
82
|
<Language>en</Language>
|
|
78
83
|
<PaymentInformation>
|
|
@@ -116,7 +121,8 @@
|
|
|
116
121
|
<LineItem>
|
|
117
122
|
<LineItemType>NORMAL</LineItemType>
|
|
118
123
|
<LineItemID>2</LineItemID>
|
|
119
|
-
<ProductDescription
|
|
124
|
+
<ProductDescription
|
|
125
|
+
>Product With a Very Long Name That Need To Be Truncated</ProductDescription>
|
|
120
126
|
<ProductID>370003022</ProductID>
|
|
121
127
|
<Quantity>1.0</Quantity>
|
|
122
128
|
<QuantityDescription>Units</QuantityDescription>
|
|
@@ -169,8 +175,7 @@
|
|
|
169
175
|
<!-- <TotalAmountPaid>200.00</TotalAmountPaid> -->
|
|
170
176
|
<TotalAmountDue>-529.88</TotalAmountDue>
|
|
171
177
|
</Summary>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</Appendix>
|
|
178
|
+
</Bill>
|
|
179
|
+
<Appendix />
|
|
175
180
|
</Body>
|
|
176
181
|
</Envelope>
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Envelope
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<Envelope
|
|
3
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5
|
+
type="string"
|
|
6
|
+
>
|
|
3
7
|
<Header>
|
|
4
8
|
<From>Camptocamp SA</From>
|
|
5
9
|
<To>IPECeBILLServer</To>
|
|
@@ -17,7 +21,7 @@
|
|
|
17
21
|
<DeliveryDate>2019-06-21</DeliveryDate>
|
|
18
22
|
<TransactionID>$TRANSACTION_ID</TransactionID>
|
|
19
23
|
<BillDetailsType>PDFAppendix</BillDetailsType>
|
|
20
|
-
<URLBillDetails/>
|
|
24
|
+
<URLBillDetails />
|
|
21
25
|
</DeliveryInfo>
|
|
22
26
|
<Bill>
|
|
23
27
|
<Header>
|
|
@@ -44,7 +48,8 @@
|
|
|
44
48
|
<Address>
|
|
45
49
|
<CompanyName>Test RAD Customer XML</CompanyName>
|
|
46
50
|
<Address1>Teststrasse 100</Address1>
|
|
47
|
-
<Address2
|
|
51
|
+
<Address2
|
|
52
|
+
>This is a very long street name that should be sna</Address2>
|
|
48
53
|
<ZIP>1700</ZIP>
|
|
49
54
|
<City>Fribourg</City>
|
|
50
55
|
<Country>CH</Country>
|
|
@@ -54,11 +59,11 @@
|
|
|
54
59
|
</ReceiverParty>
|
|
55
60
|
<DeliveryPlace>
|
|
56
61
|
<Address>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
<CompanyName>Test RAD Customer XML</CompanyName>
|
|
63
|
+
<ZIP>1700</ZIP>
|
|
64
|
+
<City>Fribourg</City>
|
|
65
|
+
<Country>CH</Country>
|
|
66
|
+
<!-- <Contact1>0000000001</Contact1> -->
|
|
62
67
|
</Address>
|
|
63
68
|
</DeliveryPlace>
|
|
64
69
|
<AchievementDate>
|
|
@@ -67,12 +72,12 @@
|
|
|
67
72
|
</AchievementDate>
|
|
68
73
|
<Currency>CHF</Currency>
|
|
69
74
|
<AccountAssignment>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
<OrderReference>
|
|
76
|
+
<ReferencePosition>1</ReferencePosition>
|
|
77
|
+
<ReferenceType>OrderReference</ReferenceType>
|
|
78
|
+
<ReferenceValue>CustomerRef</ReferenceValue>
|
|
79
|
+
</OrderReference>
|
|
80
|
+
<OrderDate>2019-06-01</OrderDate>
|
|
76
81
|
</AccountAssignment>
|
|
77
82
|
<Language>en</Language>
|
|
78
83
|
<PaymentInformation>
|
|
@@ -83,7 +88,8 @@
|
|
|
83
88
|
<BIC>777</BIC>
|
|
84
89
|
<BankName>Reserve</BankName>
|
|
85
90
|
<IBAN>CH2130808001234567827</IBAN>
|
|
86
|
-
<CreditorReference
|
|
91
|
+
<CreditorReference
|
|
92
|
+
>210000000003139471430009017</CreditorReference>
|
|
87
93
|
</IBAN>
|
|
88
94
|
</PaymentInformation>
|
|
89
95
|
<!-- <FreeText>Dies ist eine Musterrechnung mit QR-IBAN Angaben</FreeText> -->
|
|
@@ -122,7 +128,8 @@
|
|
|
122
128
|
<LineItem>
|
|
123
129
|
<LineItemType>NORMAL</LineItemType>
|
|
124
130
|
<LineItemID>2</LineItemID>
|
|
125
|
-
<ProductDescription
|
|
131
|
+
<ProductDescription
|
|
132
|
+
>Product With a Very Long Name That Need To Be Truncated</ProductDescription>
|
|
126
133
|
<ProductID>370003022</ProductID>
|
|
127
134
|
<Quantity>1.0</Quantity>
|
|
128
135
|
<QuantityDescription>Units</QuantityDescription>
|
|
@@ -175,8 +182,7 @@
|
|
|
175
182
|
<!-- <TotalAmountPaid>200.00</TotalAmountPaid> -->
|
|
176
183
|
<TotalAmountDue>529.88</TotalAmountDue>
|
|
177
184
|
</Summary>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</Appendix>
|
|
185
|
+
</Bill>
|
|
186
|
+
<Appendix />
|
|
181
187
|
</Body>
|
|
182
188
|
</Envelope>
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<Envelope
|
|
3
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
5
|
+
type="string"
|
|
6
|
+
>
|
|
7
|
+
<Header>
|
|
8
|
+
<From>Camptocamp SA</From>
|
|
9
|
+
<To>IPECeBILLServer</To>
|
|
10
|
+
<UseCase>CreateybInvoice</UseCase>
|
|
11
|
+
<SessionID>1</SessionID>
|
|
12
|
+
<Version>2.0</Version>
|
|
13
|
+
<Status>0</Status>
|
|
14
|
+
<SoftwareName>Odoo</SoftwareName>
|
|
15
|
+
<SoftwareVersion>14.0</SoftwareVersion>
|
|
16
|
+
</Header>
|
|
17
|
+
<Body>
|
|
18
|
+
<DeliveryInfo>
|
|
19
|
+
<BillerID>41101000001021209</BillerID>
|
|
20
|
+
<eBillAccountID>41010198248040391</eBillAccountID>
|
|
21
|
+
<DeliveryDate>2019-06-21</DeliveryDate>
|
|
22
|
+
<TransactionID>$TRANSACTION_ID</TransactionID>
|
|
23
|
+
<BillDetailsType>PDFAppendix</BillDetailsType>
|
|
24
|
+
<URLBillDetails />
|
|
25
|
+
</DeliveryInfo>
|
|
26
|
+
<Bill>
|
|
27
|
+
<Header>
|
|
28
|
+
<DocumentType>BILL</DocumentType>
|
|
29
|
+
<DocumentID>INV_TEST_01</DocumentID>
|
|
30
|
+
<DocumentDate>2019-06-21</DocumentDate>
|
|
31
|
+
<SenderParty>
|
|
32
|
+
<TaxLiability>VAT</TaxLiability>
|
|
33
|
+
<PartyType>
|
|
34
|
+
<Address>
|
|
35
|
+
<CompanyName>Camptocamp SA</CompanyName>
|
|
36
|
+
<Address1>StreetOne</Address1>
|
|
37
|
+
<ZIP>1015</ZIP>
|
|
38
|
+
<City>Lausanne</City>
|
|
39
|
+
<Country>CH</Country>
|
|
40
|
+
<Email>info@camptocamp.com</Email>
|
|
41
|
+
</Address>
|
|
42
|
+
<TaxID>CHE012345678</TaxID>
|
|
43
|
+
</PartyType>
|
|
44
|
+
</SenderParty>
|
|
45
|
+
<ReceiverParty>
|
|
46
|
+
<PartyType>
|
|
47
|
+
<CustomerID>$CUSTOMER_ID</CustomerID>
|
|
48
|
+
<Address>
|
|
49
|
+
<CompanyName>Test RAD Customer XML</CompanyName>
|
|
50
|
+
<Address1>Teststrasse 100</Address1>
|
|
51
|
+
<Address2
|
|
52
|
+
>This is a very long street name that should be sna</Address2>
|
|
53
|
+
<ZIP>1700</ZIP>
|
|
54
|
+
<City>Fribourg</City>
|
|
55
|
+
<Country>CH</Country>
|
|
56
|
+
</Address>
|
|
57
|
+
<!-- <TaxID>CHE333222111</TaxID> -->
|
|
58
|
+
</PartyType>
|
|
59
|
+
</ReceiverParty>
|
|
60
|
+
<DeliveryPlace>
|
|
61
|
+
<Address>
|
|
62
|
+
<CompanyName>Test RAD Customer XML</CompanyName>
|
|
63
|
+
<ZIP>1700</ZIP>
|
|
64
|
+
<City>Fribourg</City>
|
|
65
|
+
<Country>CH</Country>
|
|
66
|
+
<!-- <Contact1>0000000001</Contact1> -->
|
|
67
|
+
</Address>
|
|
68
|
+
</DeliveryPlace>
|
|
69
|
+
<AchievementDate>
|
|
70
|
+
<StartDateAchievement>2019-06-21</StartDateAchievement>
|
|
71
|
+
<EndDateAchievement>2019-06-21</EndDateAchievement>
|
|
72
|
+
</AchievementDate>
|
|
73
|
+
<Currency>CHF</Currency>
|
|
74
|
+
<AccountAssignment>
|
|
75
|
+
<OrderReference>
|
|
76
|
+
<ReferencePosition>1</ReferencePosition>
|
|
77
|
+
<ReferenceType>OrderReference</ReferenceType>
|
|
78
|
+
<ReferenceValue>CustomerRef</ReferenceValue>
|
|
79
|
+
</OrderReference>
|
|
80
|
+
<OrderDate>2019-06-01</OrderDate>
|
|
81
|
+
</AccountAssignment>
|
|
82
|
+
<Language>en</Language>
|
|
83
|
+
<PaymentInformation>
|
|
84
|
+
<PaymentDueDate>2019-08-20</PaymentDueDate>
|
|
85
|
+
<PaymentType>IBAN</PaymentType>
|
|
86
|
+
<fixAmount>Yes</fixAmount>
|
|
87
|
+
<IBAN>
|
|
88
|
+
<BIC>777</BIC>
|
|
89
|
+
<BankName>Reserve</BankName>
|
|
90
|
+
<IBAN>CH2130808001234567827</IBAN>
|
|
91
|
+
<CreditorReference
|
|
92
|
+
>210000000003139471430009017</CreditorReference>
|
|
93
|
+
</IBAN>
|
|
94
|
+
</PaymentInformation>
|
|
95
|
+
<!-- <FreeText>Dies ist eine Musterrechnung mit QR-IBAN Angaben</FreeText> -->
|
|
96
|
+
</Header>
|
|
97
|
+
<LineItems>
|
|
98
|
+
<LineItem>
|
|
99
|
+
<LineItemType>NORMAL</LineItemType>
|
|
100
|
+
<LineItemID>1</LineItemID>
|
|
101
|
+
<ProductDescription>Product Q & A</ProductDescription>
|
|
102
|
+
<ProductID>370003021</ProductID>
|
|
103
|
+
<Quantity>4.0</Quantity>
|
|
104
|
+
<QuantityDescription>Units</QuantityDescription>
|
|
105
|
+
<PriceUnit>1</PriceUnit>
|
|
106
|
+
<Tax>
|
|
107
|
+
<TaxDetail>
|
|
108
|
+
<Rate>7.7</Rate>
|
|
109
|
+
<Amount>37.88</Amount>
|
|
110
|
+
<BaseAmountExclusiveTax>492.0</BaseAmountExclusiveTax>
|
|
111
|
+
<BaseAmountInclusiveTax>529.88</BaseAmountInclusiveTax>
|
|
112
|
+
</TaxDetail>
|
|
113
|
+
<TotalTax>37.88</TotalTax>
|
|
114
|
+
</Tax>
|
|
115
|
+
<AmountInclusiveTax>529.88</AmountInclusiveTax>
|
|
116
|
+
<AmountExclusiveTax>492.0</AmountExclusiveTax>
|
|
117
|
+
<FixedReference>
|
|
118
|
+
<ReferencePosition>2</ReferencePosition>
|
|
119
|
+
<ReferenceType>OrderNumberBySupplier</ReferenceType>
|
|
120
|
+
<ReferenceValue>Order123</ReferenceValue>
|
|
121
|
+
</FixedReference>
|
|
122
|
+
<FixedReference>
|
|
123
|
+
<ReferencePosition>3</ReferencePosition>
|
|
124
|
+
<ReferenceType>OrderNumberByBuyer</ReferenceType>
|
|
125
|
+
<ReferenceValue>CustomerRef</ReferenceValue>
|
|
126
|
+
</FixedReference>
|
|
127
|
+
</LineItem>
|
|
128
|
+
<LineItem>
|
|
129
|
+
<LineItemType>NORMAL</LineItemType>
|
|
130
|
+
<LineItemID>2</LineItemID>
|
|
131
|
+
<ProductDescription
|
|
132
|
+
>Product With a Very Long Name That Need To Be Truncated</ProductDescription>
|
|
133
|
+
<ProductID>370003022</ProductID>
|
|
134
|
+
<Quantity>1.0</Quantity>
|
|
135
|
+
<QuantityDescription>Units</QuantityDescription>
|
|
136
|
+
<PriceUnit>1</PriceUnit>
|
|
137
|
+
<Tax>
|
|
138
|
+
<TaxDetail>
|
|
139
|
+
<Rate>7.7</Rate>
|
|
140
|
+
<Amount>0.0</Amount>
|
|
141
|
+
<BaseAmountExclusiveTax>0.0</BaseAmountExclusiveTax>
|
|
142
|
+
<BaseAmountInclusiveTax>0.0</BaseAmountInclusiveTax>
|
|
143
|
+
</TaxDetail>
|
|
144
|
+
<TotalTax>0.0</TotalTax>
|
|
145
|
+
</Tax>
|
|
146
|
+
<AmountInclusiveTax>0.0</AmountInclusiveTax>
|
|
147
|
+
<AmountExclusiveTax>0.0</AmountExclusiveTax>
|
|
148
|
+
<FixedReference>
|
|
149
|
+
<ReferencePosition>4</ReferencePosition>
|
|
150
|
+
<ReferenceType>OrderNumberBySupplier</ReferenceType>
|
|
151
|
+
<ReferenceValue>Order123</ReferenceValue>
|
|
152
|
+
</FixedReference>
|
|
153
|
+
<FixedReference>
|
|
154
|
+
<ReferencePosition>5</ReferencePosition>
|
|
155
|
+
<ReferenceType>OrderNumberByBuyer</ReferenceType>
|
|
156
|
+
<ReferenceValue>CustomerRef</ReferenceValue>
|
|
157
|
+
</FixedReference>
|
|
158
|
+
</LineItem>
|
|
159
|
+
<LineItem>
|
|
160
|
+
<LineItemType>NORMAL</LineItemType>
|
|
161
|
+
<LineItemID>3</LineItemID>
|
|
162
|
+
<ProductDescription>Phone support</ProductDescription>
|
|
163
|
+
<Quantity>4.0</Quantity>
|
|
164
|
+
<QuantityDescription>PCE</QuantityDescription>
|
|
165
|
+
<PriceUnit>1</PriceUnit>
|
|
166
|
+
<AmountInclusiveTax>0.0</AmountInclusiveTax>
|
|
167
|
+
<AmountExclusiveTax>0.0</AmountExclusiveTax>
|
|
168
|
+
</LineItem>
|
|
169
|
+
</LineItems>
|
|
170
|
+
<Summary>
|
|
171
|
+
<Tax>
|
|
172
|
+
<TaxDetail>
|
|
173
|
+
<Rate>7.7</Rate>
|
|
174
|
+
<Amount>37.88</Amount>
|
|
175
|
+
<BaseAmountExclusiveTax>492.0</BaseAmountExclusiveTax>
|
|
176
|
+
<BaseAmountInclusiveTax>529.88</BaseAmountInclusiveTax>
|
|
177
|
+
</TaxDetail>
|
|
178
|
+
<TotalTax>37.88</TotalTax>
|
|
179
|
+
</Tax>
|
|
180
|
+
<Discount>
|
|
181
|
+
<Days>10</Days>
|
|
182
|
+
<Rate>2.0</Rate>
|
|
183
|
+
</Discount>
|
|
184
|
+
<TotalAmountExclusiveTax>492.0</TotalAmountExclusiveTax>
|
|
185
|
+
<TotalAmountInclusiveTax>529.88</TotalAmountInclusiveTax>
|
|
186
|
+
<!-- <TotalAmountPaid>200.00</TotalAmountPaid> -->
|
|
187
|
+
<TotalAmountDue>529.88</TotalAmountDue>
|
|
188
|
+
</Summary>
|
|
189
|
+
</Bill>
|
|
190
|
+
<Appendix />
|
|
191
|
+
</Body>
|
|
192
|
+
</Envelope>
|