Merged
Conversation
hf-kklein
reviewed
Dec 15, 2021
Contributor
hf-kklein
left a comment
There was a problem hiding this comment.
habs nicht in gänze durchgelesen. später ggf.
| #: Bezeichnung des Auf-/Abschlags | ||
| bezeichnung: str = attr.ib(validator=attr.validators.instance_of(str)) | ||
| #: Werte für die gestaffelten Auf/Abschläge. | ||
| staffeln: List[Preisstaffel] = attr.ib(validator=attr.validators.instance_of(List)) |
Contributor
There was a problem hiding this comment.
hf-kklein
approved these changes
Dec 16, 2021
Comment on lines
+40
to
+44
| #: Typ des Aufabschlages (z.B. absolut oder prozentual). | ||
| auf_abschlagstyp: Optional[AufAbschlagstyp] = attr.ib( | ||
| default=None, validator=attr.validators.optional(attr.validators.instance_of(AufAbschlagstyp)) | ||
| ) | ||
| #: Diesem Preis oder den Kosten ist der Auf/Abschlag zugeordnet. Z.B. Arbeitspreis, Gesamtpreis etc.. |
Contributor
There was a problem hiding this comment.
Suggested change
| #: Typ des Aufabschlages (z.B. absolut oder prozentual). | |
| auf_abschlagstyp: Optional[AufAbschlagstyp] = attr.ib( | |
| default=None, validator=attr.validators.optional(attr.validators.instance_of(AufAbschlagstyp)) | |
| ) | |
| #: Diesem Preis oder den Kosten ist der Auf/Abschlag zugeordnet. Z.B. Arbeitspreis, Gesamtpreis etc.. | |
| #: Typ des Aufabschlages (z.B. absolut oder prozentual) | |
| auf_abschlagstyp: Optional[AufAbschlagstyp] = attr.ib( | |
| default=None, validator=attr.validators.optional(attr.validators.instance_of(AufAbschlagstyp)) | |
| ) | |
| #: Diesem Preis oder den Kosten ist der Auf/Abschlag zugeordnet. Z.B. Arbeitspreis, Gesamtpreis etc. |
kein punkt nach wort-konstrukten, die keine sätze sind
| einheit_only_for_abschlagstyp_absolut, | ||
| ], | ||
| ) | ||
| """ Gibt an in welcher Währungseinheit der Auf/Abschlag berechnet wird. Euro oder Ct.. |
Contributor
There was a problem hiding this comment.
Suggested change
| """ Gibt an in welcher Währungseinheit der Auf/Abschlag berechnet wird. Euro oder Ct.. | |
| """ Gibt an in welcher Währungseinheit der Auf/Abschlag berechnet wird. |
das ist glaube ich langfristig auch ein Fall für #126
| raise ValueError(f"List {attribute.name} must not be empty.") | ||
|
|
||
|
|
||
| def einheit_only_for_abschlagstyp_absolut(instance, attribute, value): |
Contributor
There was a problem hiding this comment.
Suggested change
| def einheit_only_for_abschlagstyp_absolut(instance, attribute, value): | |
| def einheit_only_for_abschlagstyp_absolut(instance: AufAbschlag, attribute, value): |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #141