Debian Codegraph @

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