Debian Codegraph @

addons/l10n_my_edi/tests/expected_xmls/invoice.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 <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:TaxTotal>
105 <cbc:TaxAmount currencyID="MYR">100.00</cbc:TaxAmount>
106 <cac:TaxSubtotal>
107 <cbc:TaxableAmount currencyID="MYR">1000.00</cbc:TaxableAmount>
108 <cbc:TaxAmount currencyID="MYR">100.00</cbc:TaxAmount>
109 <cbc:Percent>10.0</cbc:Percent>
110 <cac:TaxCategory>
111 <cbc:ID>01</cbc:ID>
112 <cbc:Percent>10.0</cbc:Percent>
113 <cac:TaxScheme>
114 <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">OTH</cbc:ID>
115 </cac:TaxScheme>
116 </cac:TaxCategory>
117 </cac:TaxSubtotal>
118 </cac:TaxTotal>
119 <cac:LegalMonetaryTotal>
120 <cbc:LineExtensionAmount currencyID="MYR">1000.00</cbc:LineExtensionAmount>
121 <cbc:TaxExclusiveAmount currencyID="MYR">1000.00</cbc:TaxExclusiveAmount>
122 <cbc:TaxInclusiveAmount currencyID="MYR">1100.00</cbc:TaxInclusiveAmount>
123 <cbc:PrepaidAmount currencyID="MYR">0.00</cbc:PrepaidAmount>
124 <cbc:PayableAmount currencyID="MYR">1100.00</cbc:PayableAmount>
125 </cac:LegalMonetaryTotal>
126 <cac:InvoiceLine>
127 <cbc:ID>1</cbc:ID>
128 <cbc:InvoicedQuantity unitCode="C62">1.0</cbc:InvoicedQuantity>
129 <cbc:LineExtensionAmount currencyID="MYR">1000.00</cbc:LineExtensionAmount>
130 <cac:TaxTotal>
131 <cbc:TaxAmount currencyID="MYR">100.00</cbc:TaxAmount>
132 <cac:TaxSubtotal>
133 <cbc:TaxableAmount currencyID="MYR">1000.00</cbc:TaxableAmount>
134 <cbc:TaxAmount currencyID="MYR">100.00</cbc:TaxAmount>
135 <cbc:Percent>10.0</cbc:Percent>
136 <cac:TaxCategory>
137 <cbc:ID>01</cbc:ID>
138 <cbc:Percent>10.0</cbc:Percent>
139 <cac:TaxScheme>
140 <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">OTH</cbc:ID>
141 </cac:TaxScheme>
142 </cac:TaxCategory>
143 </cac:TaxSubtotal>
144 </cac:TaxTotal>
145 <cac:Item>
146 <cbc:Description>product_a</cbc:Description>
147 <cbc:Name>product_a</cbc:Name>
148 <cac:CommodityClassification>
149 <cbc:ItemClassificationCode listID="CLASS">001</cbc:ItemClassificationCode>
150 </cac:CommodityClassification>
151 <cac:ClassifiedTaxCategory>
152 <cbc:ID>01</cbc:ID>
153 <cbc:Percent>10.0</cbc:Percent>
154 <cac:TaxScheme>
155 <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">OTH</cbc:ID>
156 </cac:TaxScheme>
157 </cac:ClassifiedTaxCategory>
158 </cac:Item>
159 <cac:Price>
160 <cbc:PriceAmount currencyID="MYR">1000.0</cbc:PriceAmount>
161 </cac:Price>
162 <cac:ItemPriceExtension>
163 <cbc:Amount currencyID="MYR">1000.00</cbc:Amount>
164 </cac:ItemPriceExtension>
165 </cac:InvoiceLine>
166 </Invoice>