Debian Codegraph @

addons/l10n_tr_nilvera_einvoice_extended/tools/ubl_tr_invoice.py

raw symbols SCIP
1 # The Invoice dict defines the structure of a UBL TR Invoice, with all nodes in the correct order.
2 # It can be passed as the `template` argument to `clean_dict_nodes` and then `dict_to_xml` to
3 # enforce the order of nodes. The TR Invoice dict is a created as a seperate dict than the UBL 2.1
4 # and cleaned, since Turkey follows UBL 1.2.
5
6 import odoo.addons.l10n_tr_nilvera_einvoice_extended.tools.ubl_tr_common as cac
7
8 TrInvoiceLine = {
9 'cbc:ID': {},
10 'cbc:Note': {},
11 'cbc:InvoicedQuantity': {},
12 'cbc:LineExtensionAmount': {},
13 'cac:OrderLineReference': cac.OrderLineReference,
14 'cac:DespatchLineReference': cac.BillingReference,
15 'cac:ReceipitReference': cac.BillingReference,
16 'cac:Delivery': cac.Delivery,
17 'cac:AllowanceCharge': cac.AllowanceCharge,
18 'cac:TaxTotal': cac.TaxTotal,
19 'cac:WithholdingTaxTotal': cac.TaxTotal,
20 'cac:Item': cac.Item,
21 'cac:Price': cac.Price,
22 }
23
24 TrInvoice = {
25 '_tag': 'Invoice',
26 'ext:UBLExtensions': {},
27 'cbc:UBLVersionID': {},
28 'cbc:CustomizationID': {},
29 'cbc:ProfileID': {},
30 'cbc:ProfileExecutionID': {},
31 'cbc:ID': {},
32 'cbc:CopyIndicator': {},
33 'cbc:UUID': {},
34 'cbc:IssueDate': {},
35 'cbc:IssueTime': {},
36 'cbc:DueDate': {},
37 'cbc:InvoiceTypeCode': {},
38 'cbc:Note': {},
39 'cbc:DocumentCurrencyCode': {},
40 'cbc:TaxCurrencyCode': {},
41 'cbc:PricingCurrencyCode': {},
42 'cbc:LineCountNumeric': {},
43 'cbc:BuyerReference': {},
44 'cac:InvoicePeriod': cac.Period,
45 'cac:OrderReference': cac.OrderReference,
46 'cac:BillingReference': cac.BillingReference,
47 'cac:AdditionalDocumentReference': cac.DocumentReference,
48 'cac:Signature': cac.Signature,
49 'cac:AccountingSupplierParty': cac.SupplierParty,
50 'cac:AccountingCustomerParty': cac.CustomerParty,
51 'cac:SellerSupplierParty': cac.SupplierParty,
52 'cac:BuyerCustomerParty': cac.CustomerParty,
53 'cac:Delivery': cac.Delivery,
54 'cac:PaymentMeans': cac.PaymentMeans,
55 'cac:PaymentTerms': cac.PaymentTerms,
56 'cac:AllowanceCharge': cac.AllowanceCharge,
57 'cac:TaxExchangeRate': cac.ExchangeRate,
58 'cac:PricingExchangeRate': cac.ExchangeRate,
59 'cac:PaymentExchangeRate': cac.ExchangeRate,
60 'cac:TaxTotal': cac.TaxTotal,
61 'cac:WithholdingTaxTotal': cac.TaxTotal,
62 'cac:LegalMonetaryTotal': cac.MonetaryTotal,
63 'cac:InvoiceLine': TrInvoiceLine,
64 }