Debian Codegraph @

addons/l10n_my_edi/tests/expected_xmls/invoice_optional_fields.xml

raw
1 <?xml version='1.0' encoding='UTF-8'?>
2 <Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
3 <cbc:ID>INV/2019/00001</cbc:ID>
4 <cbc:IssueDate>2024-07-15</cbc:IssueDate>
5 <cbc:IssueTime>10:00:00Z</cbc:IssueTime>
6 <cbc:InvoiceTypeCode listVersionID="1.1">01</cbc:InvoiceTypeCode>
7 <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
8 <cbc:BuyerReference>MY-REF</cbc:BuyerReference>
9 <cac:AdditionalDocumentReference>
10 <cbc:ID>CFR</cbc:ID>
11 </cac:AdditionalDocumentReference>
12 <cac:AdditionalDocumentReference>
13 <cbc:ID>E12345678912</cbc:ID>
14 <cbc:DocumentType>K2</cbc:DocumentType>
15 </cac:AdditionalDocumentReference>
16 <cac:AccountingSupplierParty>
17 <cac:Party>
18 <cbc:IndustryClassificationCode name="Growing of maize">01111</cbc:IndustryClassificationCode>
19 <cac:PartyIdentification>
20 <cbc:ID schemeID="TIN">C2584563200</cbc:ID>
21 </cac:PartyIdentification>
22 <cac:PartyIdentification>
23 <cbc:ID schemeID="BRN">202001234567</cbc:ID>
24 </cac:PartyIdentification>
25 <cac:PartyIdentification>
26 <cbc:ID schemeID="SST">A01-2345-67891012</cbc:ID>
27 </cac:PartyIdentification>
28 <cac:PartyIdentification>
29 <cbc:ID schemeID="TTX">123-4567-89012345</cbc:ID>
30 </cac:PartyIdentification>
31 <cac:PartyName>
32 <cbc:Name>company_1_data</cbc:Name>
33 </cac:PartyName>
34 <cac:PostalAddress>
35 <cbc:CityName>Main city</cbc:CityName>
36 <cbc:CountrySubentity>Johor</cbc:CountrySubentity>
37 <cbc:CountrySubentityCode>01</cbc:CountrySubentityCode>
38 <cac:AddressLine>
39 <cbc:Line>that one street, 5</cbc:Line>
40 </cac:AddressLine>
41 <cac:Country>
42 <cbc:IdentificationCode listID="ISO3166-1" listAgencyID="6">MYS</cbc:IdentificationCode>
43 <cbc:Name>Malaysia</cbc:Name>
44 </cac:Country>
45 </cac:PostalAddress>
46 <cac:PartyLegalEntity>
47 <cbc:RegistrationName>company_1_data</cbc:RegistrationName>
48 </cac:PartyLegalEntity>
49 <cac:Contact>
50 <cbc:ID>___ignore___</cbc:ID>
51 <cbc:Name>company_1_data</cbc:Name>
52 <cbc:Telephone>+60123456789</cbc:Telephone>
53 </cac:Contact>
54 </cac:Party>
55 </cac:AccountingSupplierParty>
56 <cac:AccountingCustomerParty>
57 <cac:Party>
58 <cac:PartyIdentification>
59 <cbc:ID schemeID="TIN">C2584563201</cbc:ID>
60 </cac:PartyIdentification>
61 <cac:PartyIdentification>
62 <cbc:ID schemeID="BRN">202001234568</cbc:ID>
63 </cac:PartyIdentification>
64 <cac:PartyIdentification>
65 <cbc:ID schemeID="SST">A01-2345-67891013</cbc:ID>
66 </cac:PartyIdentification>
67 <cac:PartyName>
68 <cbc:Name>partner_a</cbc:Name>
69 </cac:PartyName>
70 <cac:PostalAddress>
71 <cbc:CityName>Main city</cbc:CityName>
72 <cbc:CountrySubentity>Johor</cbc:CountrySubentity>
73 <cbc:CountrySubentityCode>01</cbc:CountrySubentityCode>
74 <cac:AddressLine>
75 <cbc:Line>that other street, 3</cbc:Line>
76 </cac:AddressLine>
77 <cac:Country>
78 <cbc:IdentificationCode listID="ISO3166-1" listAgencyID="6">MYS</cbc:IdentificationCode>
79 <cbc:Name>Malaysia</cbc:Name>
80 </cac:Country>
81 </cac:PostalAddress>
82 <cac:PartyLegalEntity>
83 <cbc:RegistrationName>partner_a</cbc:RegistrationName>
84 </cac:PartyLegalEntity>
85 <cac:Contact>
86 <cbc:ID>___ignore___</cbc:ID>
87 <cbc:Name>partner_a</cbc:Name>
88 <cbc:Telephone>+60123456786</cbc:Telephone>
89 </cac:Contact>
90 </cac:Party>
91 </cac:AccountingCustomerParty>
92 <cac:Delivery>
93 <cac:DeliveryParty>
94 <cac:PartyIdentification>
95 <cbc:ID schemeID="TIN">C2584563201</cbc:ID>
96 </cac:PartyIdentification>
97 <cac:PartyIdentification>
98 <cbc:ID schemeID="BRN">202001234568</cbc:ID>
99 </cac:PartyIdentification>
100 <cac:PartyIdentification>
101 <cbc:ID schemeID="SST">A01-2345-67891013</cbc:ID>
102 </cac:PartyIdentification>
103 <cac:PostalAddress>
104 <cbc:CityName>Main city</cbc:CityName>
105 <cbc:CountrySubentity>Johor</cbc:CountrySubentity>
106 <cbc:CountrySubentityCode>01</cbc:CountrySubentityCode>
107 <cac:AddressLine>
108 <cbc:Line>that other street, 3</cbc:Line>
109 </cac:AddressLine>
110 <cac:Country>
111 <cbc:IdentificationCode listID="ISO3166-1" listAgencyID="6">MYS</cbc:IdentificationCode>
112 <cbc:Name>Malaysia</cbc:Name>
113 </cac:Country>
114 </cac:PostalAddress>
115 <cac:PartyLegalEntity>
116 <cbc:RegistrationName>partner_a</cbc:RegistrationName>
117 </cac:PartyLegalEntity>
118 </cac:DeliveryParty>
119 </cac:Delivery>
120 <cac:PaymentTerms>
121 <cbc:Note>Payment terms: Immediate Payment</cbc:Note>
122 </cac:PaymentTerms>
123 <cac:TaxExchangeRate>
124 <cbc:SourceCurrencyCode>EUR</cbc:SourceCurrencyCode>
125 <cbc:TargetCurrencyCode>MYR</cbc:TargetCurrencyCode>
126 <cbc:CalculationRate>0.5</cbc:CalculationRate>
127 </cac:TaxExchangeRate>
128 <cac:TaxTotal>
129 <cbc:TaxAmount currencyID="EUR">200.00</cbc:TaxAmount>
130 <cac:TaxSubtotal>
131 <cbc:TaxableAmount currencyID="EUR">2000.00</cbc:TaxableAmount>
132 <cbc:TaxAmount currencyID="EUR">200.00</cbc:TaxAmount>
133 <cbc:Percent>10.0</cbc:Percent>
134 <cac:TaxCategory>
135 <cbc:ID>01</cbc:ID>
136 <cbc:Percent>10.0</cbc:Percent>
137 <cac:TaxScheme>
138 <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">OTH</cbc:ID>
139 </cac:TaxScheme>
140 </cac:TaxCategory>
141 </cac:TaxSubtotal>
142 </cac:TaxTotal>
143 <cac:LegalMonetaryTotal>
144 <cbc:LineExtensionAmount currencyID="EUR">2000.00</cbc:LineExtensionAmount>
145 <cbc:TaxExclusiveAmount currencyID="EUR">2000.00</cbc:TaxExclusiveAmount>
146 <cbc:TaxInclusiveAmount currencyID="EUR">2200.00</cbc:TaxInclusiveAmount>
147 <cbc:PrepaidAmount currencyID="EUR">0.00</cbc:PrepaidAmount>
148 <cbc:PayableAmount currencyID="EUR">2200.00</cbc:PayableAmount>
149 </cac:LegalMonetaryTotal>
150 <cac:InvoiceLine>
151 <cbc:ID>1</cbc:ID>
152 <cbc:InvoicedQuantity unitCode="C62">1.0</cbc:InvoicedQuantity>
153 <cbc:LineExtensionAmount currencyID="EUR">2000.00</cbc:LineExtensionAmount>
154 <cac:TaxTotal>
155 <cbc:TaxAmount currencyID="EUR">200.00</cbc:TaxAmount>
156 <cac:TaxSubtotal>
157 <cbc:TaxableAmount currencyID="EUR">2000.00</cbc:TaxableAmount>
158 <cbc:TaxAmount currencyID="EUR">200.00</cbc:TaxAmount>
159 <cbc:Percent>10.0</cbc:Percent>
160 <cac:TaxCategory>
161 <cbc:ID>01</cbc:ID>
162 <cbc:Percent>10.0</cbc:Percent>
163 <cac:TaxScheme>
164 <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">OTH</cbc:ID>
165 </cac:TaxScheme>
166 </cac:TaxCategory>
167 </cac:TaxSubtotal>
168 </cac:TaxTotal>
169 <cac:Item>
170 <cbc:Description>product_a</cbc:Description>
171 <cbc:Name>product_a</cbc:Name>
172 <cac:CommodityClassification>
173 <cbc:ItemClassificationCode listID="CLASS">001</cbc:ItemClassificationCode>
174 </cac:CommodityClassification>
175 <cac:ClassifiedTaxCategory>
176 <cbc:ID>01</cbc:ID>
177 <cbc:Percent>10.0</cbc:Percent>
178 <cac:TaxScheme>
179 <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">OTH</cbc:ID>
180 </cac:TaxScheme>
181 </cac:ClassifiedTaxCategory>
182 </cac:Item>
183 <cac:Price>
184 <cbc:PriceAmount currencyID="EUR">2000.0</cbc:PriceAmount>
185 </cac:Price>
186 <cac:ItemPriceExtension>
187 <cbc:Amount currencyID="EUR">2000.00</cbc:Amount>
188 </cac:ItemPriceExtension>
189 </cac:InvoiceLine>
190 </Invoice>