-
Notifications
You must be signed in to change notification settings - Fork 5
feat: ✨Rework BO Rechnung
#976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3df12cc
initial draft BO Rechnung
hf-mrdachner 027750a
remove unused import
hf-krechan 7212fdb
add Zahlungsinformationen to __init__.py
hf-krechan c52dbb1
sort imports for linter
hf-mrdachner 08f1b85
satisfy linter
hf-mrdachner 9fefc1f
Merge branch 'main' into feature/ag_rechnungen_draft
lord-haffi 2424c66
Various changes
lord-haffi 0b56f16
Add `COM Vorauszahlung`
lord-haffi de563e5
Rework `COM Steuerbetrag`
lord-haffi a121aa4
Rework `COM Rechnungsposition`
lord-haffi 1ba8503
Merge remote-tracking branch 'origin/main' into feature/ag_rechnungen…
lord-haffi 638b688
Apply suggestions from code review
lord-haffi 81afc5a
Remove unused imports
lord-haffi 1f94a87
Add `ENUM Zahlungsart` to __init__
lord-haffi 5cbc6ce
Ignore `__pydantic_fields_set__` in serialization roundtrip
lord-haffi bdfb2df
Fix tests
lord-haffi 2b5fd5f
Fix mypy
lord-haffi c05e47c
Merge branch 'main' into feature/ag_rechnungen_draft
lord-haffi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| """ | ||
| Contains Vorauszahlung class | ||
| """ | ||
|
|
||
| from typing import TYPE_CHECKING, Annotated, Literal, Optional | ||
|
|
||
| from pydantic import AwareDatetime, Field | ||
|
|
||
| from ..enum.comtyp import ComTyp | ||
| from ..utils import postprocess_docstring | ||
| from .com import COM | ||
|
|
||
| if TYPE_CHECKING: | ||
| from .betrag import Betrag | ||
|
|
||
|
|
||
| # pylint: disable=too-few-public-methods | ||
|
|
||
|
|
||
| @postprocess_docstring | ||
| class Vorauszahlung(COM): | ||
| """ | ||
| Dient zur Identifizierung des Verwendungszwecks der Marktrolle an der Marktlokation, der die Werte zu übermitteln sind. | ||
|
lord-haffi marked this conversation as resolved.
Outdated
|
||
|
|
||
| .. raw:: html | ||
|
|
||
| <object data="../_static/images/bo4e/com/Vorauszahlung.svg" type="image/svg+xml"></object> | ||
|
|
||
| .. HINT:: | ||
| `Vorauszahlung JSON Schema <https://json-schema.app/view/%23?url=https://raw.githubusercontent.com/BO4E/BO4E-Schemas/{__gh_version__}/src/bo4e_schemas/com/Vorauszahlung.json>`_ | ||
|
|
||
| """ | ||
|
|
||
| typ: Annotated[Literal[ComTyp.VORAUSZAHLUNG], Field(alias="_typ")] = ComTyp.VORAUSZAHLUNG | ||
|
|
||
| betrag: Optional["Betrag"] = None | ||
| datum: Optional[AwareDatetime] = None | ||
| referenz: Optional[str] = None | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| """ | ||
| Contains Zahlungsinformation class | ||
| """ | ||
|
|
||
| from decimal import Decimal | ||
| from typing import TYPE_CHECKING, Annotated, Literal, Optional | ||
|
|
||
| from pydantic import Field | ||
|
|
||
| from ..enum.comtyp import ComTyp | ||
| from ..utils import postprocess_docstring | ||
| from .com import COM | ||
|
|
||
| if TYPE_CHECKING: | ||
| from ..enum.zahlungsart import Zahlungsart | ||
|
|
||
|
|
||
| @postprocess_docstring | ||
| class Zahlungsinformation(COM): | ||
| """ | ||
| Mit dieser Komponente kann eine einzelne Zahlungsinformation dargestellt werden. | ||
|
|
||
| .. raw:: html | ||
|
|
||
| <object data="../_static/images/bo4e/com/Zahlungsinformation.svg" type="image/svg+xml"></object> | ||
|
|
||
| .. HINT:: | ||
| `Zahlungsinformation JSON Schema <https://json-schema.app/view/%23?url=https://raw.githubusercontent.com/BO4E/BO4E-Schemas/{__gh_version__}/src/bo4e_schemas/com/Zahlungsinformation.json>`_ | ||
|
|
||
| """ | ||
|
|
||
| typ: Annotated[Literal[ComTyp.ZAHLUNGSINFORMATION], Field(alias="_typ")] = ComTyp.ZAHLUNGSINFORMATION | ||
|
|
||
| zahlungsart: Optional["Zahlungsart"] = None | ||
| """Die Zahlungsart dieser Zahlungsinformation""" | ||
| iban: Optional[str] = None | ||
| """Eine IBAN-Nummer""" | ||
| bic: Optional[str] = None | ||
| """Eine BIC-Nummer""" | ||
| kontoinhaber: Optional[str] = None | ||
| """Der Name des Kontoinhabers""" | ||
| betreff: Optional[str] = None | ||
| """Eine konstante Betreffzeile für Überweisungen""" | ||
| sepa_referenz: Optional[str] = None | ||
| """Eine SEPA-Referenz""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # pylint: disable=missing-module-docstring | ||
| from bo4e.enum.strenum import StrEnum | ||
|
|
||
|
|
||
| class Steuerart(StrEnum): | ||
| """ | ||
| Zur Kennzeichnung verschiedener Steuerarten. | ||
| """ | ||
|
|
||
| RCV = "RCV" | ||
| """Reverse Charge Verfahren (Umkehrung der Steuerpflicht)""" | ||
| UST = "UST" | ||
| """Umsatzsteuer""" | ||
| VST = "VST" | ||
| """Vorsteuer""" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.