Debian Codegraph @

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