Debian Codegraph @

addons/l10n_my_edi/tests/expected_xmls/invoice_multicurrency.xml

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