pyslog 0.1.0.dev5__tar.gz → 0.1.0.dev6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/PKG-INFO +2 -2
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/README.md +1 -1
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/pyproject.toml +1 -1
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/generator.py +11 -11
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/invoice.py +2 -1
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/__init__.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/__init__.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/__init__.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/_xml.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/__init__.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/business_process_type.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/item_identification_scheme.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/vat_category_code.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/vat_point_date_code.py +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/schemas/eSLOG20_INVOIC_v200.xsd +0 -0
- {pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/validator.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyslog
|
|
3
|
-
Version: 0.1.0.
|
|
3
|
+
Version: 0.1.0.dev6
|
|
4
4
|
Summary: Python e-SLOG library. Simplifies the generation of Slovenian e-SLOG electronic documents.
|
|
5
5
|
Keywords: eslog,eracun,e-racun,e-invoice
|
|
6
6
|
Author: Gregor Gabrovšek
|
|
@@ -101,7 +101,7 @@ item = Item(
|
|
|
101
101
|
invoice = Invoice(
|
|
102
102
|
invoice_number="INV-2026-001",
|
|
103
103
|
invoice_issue_date="2026-01-13",
|
|
104
|
-
business_process_type=BusinessProcessType.INVOICING_BASED_ON_CONTRACT,
|
|
104
|
+
#business_process_type=BusinessProcessType.INVOICING_BASED_ON_CONTRACT,
|
|
105
105
|
buyer=buyer,
|
|
106
106
|
seller=seller,
|
|
107
107
|
items=[item],
|
|
@@ -70,7 +70,7 @@ item = Item(
|
|
|
70
70
|
invoice = Invoice(
|
|
71
71
|
invoice_number="INV-2026-001",
|
|
72
72
|
invoice_issue_date="2026-01-13",
|
|
73
|
-
business_process_type=BusinessProcessType.INVOICING_BASED_ON_CONTRACT,
|
|
73
|
+
#business_process_type=BusinessProcessType.INVOICING_BASED_ON_CONTRACT,
|
|
74
74
|
buyer=buyer,
|
|
75
75
|
seller=seller,
|
|
76
76
|
items=[item],
|
|
@@ -116,6 +116,16 @@ def generate_eslog_invoice(invoice: Invoice) -> str:
|
|
|
116
116
|
D_3228=invoice.seller.country_subdivision,
|
|
117
117
|
)
|
|
118
118
|
|
|
119
|
+
doc_field = ESLOG_S_FTX(
|
|
120
|
+
D_4451="DOC",
|
|
121
|
+
C_C108=ESLOG_C_C108(
|
|
122
|
+
D_4440="urn:cen.eu:en16931:2017"
|
|
123
|
+
)
|
|
124
|
+
)
|
|
125
|
+
if invoice.business_process_type is not None:
|
|
126
|
+
doc_field.C_C107 = ESLOG_C_C107(
|
|
127
|
+
D_4441=invoice.business_process_type.value
|
|
128
|
+
)
|
|
119
129
|
|
|
120
130
|
eslog_invoice = ESLOG_Invoice(
|
|
121
131
|
M_INVOIC=ESLOG_M_INVOIC(
|
|
@@ -145,17 +155,7 @@ def generate_eslog_invoice(invoice: Invoice) -> str:
|
|
|
145
155
|
)
|
|
146
156
|
),
|
|
147
157
|
],
|
|
148
|
-
FTX=[
|
|
149
|
-
ESLOG_S_FTX(
|
|
150
|
-
D_4451="DOC",
|
|
151
|
-
C_C107=ESLOG_C_C107(
|
|
152
|
-
D_4441=invoice.business_process_type.value
|
|
153
|
-
),
|
|
154
|
-
C_C108=ESLOG_C_C108(
|
|
155
|
-
D_4440="urn:cen.eu:en16931:2017"
|
|
156
|
-
)
|
|
157
|
-
),
|
|
158
|
-
],
|
|
158
|
+
FTX=[doc_field],
|
|
159
159
|
SG1=[],
|
|
160
160
|
SG2=[
|
|
161
161
|
eslog_buyer,
|
|
@@ -71,7 +71,8 @@ class Invoice(BaseModel):
|
|
|
71
71
|
default=None,
|
|
72
72
|
description="Invoice note (BT-22). A textual note that gives unstructured information that is relevant to the Invoice as a whole. A group of business terms providing textual notes that are relevant for the invoice, together with an indication of the note subject."
|
|
73
73
|
)
|
|
74
|
-
business_process_type: BusinessProcessType = Field(
|
|
74
|
+
business_process_type: BusinessProcessType | None = Field(
|
|
75
|
+
default=None,
|
|
75
76
|
description="Business process type (BT-23). Identifies the business process context in which the transaction appears, to enable the Buyer to process the Invoice in an appropriate way."
|
|
76
77
|
)
|
|
77
78
|
payment_means_text: str | None = Field(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/business_process_type.py
RENAMED
|
File without changes
|
{pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/item_identification_scheme.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyslog-0.1.0.dev5 → pyslog-0.1.0.dev6}/src/pyslog/eslog2/models/enums/vat_point_date_code.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|