Debian Codegraph @

addons/l10n_tr_nilvera_einvoice_extended/tools/ubl_tr_common.py

raw symbols SCIP
1 # This file contains dicts defining the order of nodes of UBL 1.2 elements.
2 # These are the elements used in the Invoice, CreditNote, DebitNote, Distpatch and Order documents.
3
4 # If you need to use a new element, you should define it below so that it will be added at the
5 # correct place in the XML.
6
7 Attachment = {
8 'cbc:EmbeddedDocumentBinaryObject': {},
9 'cac:ExternalReference': {
10 'cbc:URI': {},
11 'cbc:MimeCode': {},
12 'cbc:EncodingCode': {},
13 'cbc:FileName': {},
14 'cbc:Description': {},
15 },
16 }
17
18 Branch = {
19 'cbc:Name': {},
20 'cac:FinancialInstitution': {
21 'cbc:Name': {},
22 },
23 }
24
25 CommodityClassification = {
26 'cbc:ItemClassificationCode': {},
27 }
28
29 Country = {
30 'cbc:IdentificationCode': {},
31 'cbc:Name': {},
32 }
33
34 Contact = {
35 'cbc:Telephone': {},
36 'cbc:ElectronicMail': {},
37 'cbc:Telefax': {},
38 }
39
40 DocumentReference = {
41 'cbc:AttributeID': {},
42 'cbc:Measure': {},
43 'cbc:Description': {},
44 'cbc:MinimumMeasure': {},
45 'cbc:MaximumMeasure': {},
46 }
47
48 Price = {
49 'cbc:PriceAmount': {},
50 }
51
52 Period = {
53 'cbc:StartDate': {},
54 'cbc:StartTime': {},
55 'cbc:EndDate': {},
56 'cbc:EndTime': {},
57 'cbc:DurationMeasure': {},
58 'cbc:Description': {},
59 }
60
61 OrderReference = {
62 'cbc:ID': {},
63 'cbc:SalesOrderID': {},
64 'cbc:IssueDate': {},
65 'cbc:DocumentReference': {},
66 }
67
68 Address = {
69 'cbc:ID': {},
70 'cbc:AddressTypeCode': {},
71 'cbc:AddressFormatCode': {},
72 'cbc:StreetName': {},
73 'cbc:AdditionalStreetName': {},
74 'cbc:BuildingName': {},
75 'cbc:BuildingNumber': {},
76 'cbc:PlotIdentification': {},
77 'cbc:CitySubdivisionName': {},
78 'cbc:CityName': {},
79 'cbc:PostalZone': {},
80 'cbc:CountrySubentity': {},
81 'cbc:CountrySubentityCode': {},
82 'cac:AddressLine': {
83 'cbc:Line': {},
84 },
85 'cac:Country': Country,
86 }
87
88 BillingReference = {
89 'cac:InvoiceDocumentReference': DocumentReference,
90 }
91
92 IssuerParty = {
93 'cbc:EndpointID': {},
94 'cac:PartyIdentification': {
95 'cbc:ID': {},
96 },
97 'cac:PostalAddress': Address,
98 }
99
100 DocumentReference = {
101 'cbc:ID': {},
102 'cbc:UUID': {},
103 'cbc:IssueDate': {},
104 'cbc:IssueTime': {},
105 'cbc:DocumentTypeCode': {},
106 'cbc:DocumentStatusCode': {},
107 'cbc:DocumentType': {},
108 'cbc:DocumentDescription': {},
109 'cac:Attachment': Attachment,
110 'cac:IssuerParty': IssuerParty,
111 }
112
113 Signature = {
114 'cbc:ID': {},
115 'cbc:SignatureMethod': {},
116 'cac:SignatoryParty': {
117 'cac:PartyIdentification': {
118 'cbc:ID': {},
119 },
120 'cac:PostalAddress': Address,
121 'cac:PartyName': {
122 'cbc:Name': {},
123 },
124 },
125 'cac:DigitalSignatureAttachment': {
126 'cac:ExternalReference': {
127 'cbc:URI': {},
128 },
129 },
130 }
131
132 FinancialAccount = {
133 'cbc:ID': {},
134 'cbc:CurrencyCode': {},
135 'cbc:PaymentNote': {},
136 'cac:FinancialInstitutionBranch': Branch,
137 }
138
139 Person = {
140 'cbc:FirstName': {},
141 'cbc:FamilyName': {},
142 'cbc:Title': {},
143 'cbc:MiddleName': {},
144 'cbc:NameSuffix': {},
145 'cbc:NationID': {},
146 'cac:FinancialAccount': FinancialAccount,
147 'cac:IdentityDocumentReference': DocumentReference,
148 }
149
150 CorporateRegistrationScheme = {
151 'cbc:ID': {},
152 'cbc:Name': {},
153 'cbc:CorporateRegistrationTypeCode': {},
154 'cac:JuridictionRegionAddress': Address,
155 }
156
157 Party = {
158 'cbc:WebsiteURL': {},
159 'cbc:EndpointID': {},
160 'cbc:IndustryClassificationCode': {},
161 'cac:PartyIdentification': {
162 'cbc:ID': {},
163 },
164 'cac:PartyName': {
165 'cbc:Name': {},
166 },
167 'cac:PostalAddress': Address,
168 'cac:PhysicalLocation': Address,
169 'cac:PartyTaxScheme': {
170 'cac:TaxScheme': {
171 'cbc:Name': {},
172 },
173 },
174 'cac:PartyLegalEntity': {
175 'cbc:RegistrationName': {},
176 'cbc:CompanyID': {},
177 'cbc:RegistrationDate': {},
178 'cbc:SoleProprietorshipIndicator': {},
179 'cbc:CorporateStockAmount': {},
180 'cbc:FullyPaidSharesIndicator': {},
181 'cac:CorporateRegistrationScheme': CorporateRegistrationScheme,
182 'cac:HeadOfficeParty': {
183 'cac:PartyIdentification': {
184 'cbc:ID': {},
185 },
186 'cac:PostalAddress': Address,
187 },
188 },
189 'cac:Contact': Contact,
190 'cac:Person': Person,
191 }
192
193
194 SupplierParty = {
195 'cac:Party': Party,
196 'cac:DespatchContact': Contact,
197 }
198
199 CustomerParty = {
200 'cac:Party': Party,
201 'cac:DeliveryContact': Contact,
202 }
203
204 DeliveryTerms = {
205 'cbc:ID': {},
206 'cbc:SpecialTerms': {},
207 'cbc:Amount': {},
208 }
209
210 Despatch = {
211 'cbc:ID': {},
212 'cbc:ActualDespatchDate': {},
213 'cbc:ActualDespatchTime': {},
214 'cbc:Insuctions': {},
215 'cac:DespatchAddress': Address,
216 'cac:DespatchParty': Party,
217 'cac:Contact': Contact,
218 'cac:EstimatedDespatchPeriod': Period,
219 }
220
221 # cac:shipment has to be fully added here for l10n__nilvera_edispatch to be integrated with E-Invoicing
222 # l10n__nilvera_edispatch.xml template has to be removed.
223 GoodsItem = {
224 'cbc:RequiredCustomsID': {},
225 }
226
227 ShipmentStage = {
228 'cbc:TransportModeCode': {},
229 }
230
231 Shippment = {
232 'cbc:ID': {},
233 'cac:GoodsItem': GoodsItem,
234 'cac:ShipmentStage': ShipmentStage,
235 }
236
237 Delivery = {
238 'cbc:ID': {},
239 'cbc:Quantity': {},
240 'cbc:ActualDeliveryDate': {},
241 'cbc:ActualDeliveryTime': {},
242 'cbc:LatestDeliveryDate': {},
243 'cbc:LatestDeliveryTime': {},
244 'cbc:ackingID': {},
245 'cac:DeliveryAddress': Address,
246 'cac:AlternativeDeliveryLocation': Address,
247 'cac:EstimatedDeliveryPeriod': Period,
248 'cac:CarrierParty': Party,
249 'cac:DeliveryParty': Party,
250 'cac:Despatch': Despatch,
251 'cac:DeliveryTerms': DeliveryTerms,
252 'cac:Shipment': Shippment,
253 }
254
255 PaymentMeans = {
256 'cbc:PaymentMeansCode': {},
257 'cbc:PaymentDueDate': {},
258 'cbc:PaymentChannelCode': {},
259 'cbc:InsuctionNote': {},
260 'cac:PayerFinancialAccount': FinancialAccount,
261 'cac:PayeeFinancialAccount': FinancialAccount,
262 }
263
264 PaymentTerms = {
265 'cbc:Note': {},
266 'cbc:PenaltySurchargePercent': {},
267 'cbc:Amount': {},
268 'cbc:PenaltyAmount': {},
269 'cbc:PaymentDueDate': {},
270 'cac:SettlementPeriod': Period,
271 }
272
273 ExchangeRate = {
274 'cbc:SourceCurrencyCode': {},
275 'cbc:TargetCurrencyCode': {},
276 'cbc:CalculationRate': {},
277 'cbc:Date': {},
278 }
279
280 TaxCategory = {
281 'cbc:Name': {},
282 'cbc:TaxExemptionReasonCode': {},
283 'cbc:TaxExemptionReason': {},
284 'cac:TaxScheme': {
285 'cbc:ID': {},
286 'cbc:Name': {},
287 'cbc:TaxTypeCode': {},
288 },
289 }
290
291 AllowanceCharge = {
292 'cbc:ChargeIndicator': {},
293 'cbc:AllowanceChargeReason': {},
294 'cbc:MultiplierFactorNumeric': {},
295 'cbc:SequenceNumeric': {},
296 'cbc:Amount': {},
297 'cbc:BaseAmount': {},
298 'cbc:PerUnitAmount': {},
299 }
300
301 TaxTotal = {
302 'cbc:TaxAmount': {},
303 'cac:TaxSubtotal': {
304 'cbc:TaxableAmount': {},
305 'cbc:TaxAmount': {},
306 'cbc:CalculationSequenceNumeric': {},
307 'cbc:ansactionCurrencyTaxAmount': {},
308 'cbc:Percent': {},
309 'cbc:BaseUnitMeasure': {},
310 'cbc:PerUnitAmount': {},
311 'cac:TaxCategory': TaxCategory,
312 },
313 }
314
315 MonetaryTotal = {
316 'cbc:LineExtensionAmount': {},
317 'cbc:TaxExclusiveAmount': {},
318 'cbc:TaxInclusiveAmount': {},
319 'cbc:AllowanceTotalAmount': {},
320 'cbc:ChargeTotalAmount': {},
321 'cbc:PayableRoundingAmount': {},
322 'cbc:PayableAmount': {},
323 }
324
325 OrderLineReference = {
326 'cbc:LineID': {},
327 }
328
329 ItemIdentification = {
330 'cbc:ID': {},
331 }
332
333 # Any additional Properties for the Item Instance have to be added here
334 AdditionalItemProperty = {
335
336 }
337
338 ItemInstance = {
339 'cbc:ProductaceID': {},
340 'cbc:ManufacturedDate': {},
341 'cbc:ManufacturedTime': {},
342 'cbc:BestBeforeDate': {},
343 'cbc:RegisationID': {},
344 'cbc:SerialID': {},
345 'cac:AdditionalItemProperty': AdditionalItemProperty,
346 'cac:LotIdentification': ItemIdentification,
347 }
348
349 Item = {
350 'cbc:Description': {},
351 'cbc:Name': {},
352 'cbc:Keyword': {},
353 'cbc:BrandName': {},
354 'cbc:ModelName': {},
355 'cac:BuyersItemIdentification': ItemIdentification,
356 'cac:SellersItemIdentification': ItemIdentification,
357 'cac:StandardItemIdentification': ItemIdentification,
358 'cac:ManufacturersItemIdentification': ItemIdentification,
359 'cac:AdditionalItemIdentification': ItemIdentification,
360 'cac:OriginCountry': Country,
361 'cac:CommodityClassification': CommodityClassification,
362 'cac:ItemInstance': ItemIdentification,
363 }