Skip to content
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

Rabatt in Preis mit einfließen lassen #50

Closed
lolax80 opened this issue Sep 9, 2020 · 6 comments
Closed

Rabatt in Preis mit einfließen lassen #50

lolax80 opened this issue Sep 9, 2020 · 6 comments

Comments

@lolax80
Copy link

lolax80 commented Sep 9, 2020

Hallo,

der Adapter funktioniert perfekt.
Ich komme jedoch bei einer Tankstelle 3cent Rabatt auf den Liter Sprit. Wie kann ich denn die Werte angleichen?

@Pix---
Copy link
Collaborator

Pix--- commented Sep 9, 2020

Gute Idee, danke. Werde eine Datenpunkt Rabatt in Cent in die Einstellungen für jede Station einbauen.

Dauert aber bis zum Update.

Workaround in VIS:
Nutze ein Binding so oder ähnlich {preis:tankerkoenig.0.RESTDERID;preis-0.03}

Gruß
Pix

Sent with GitHawk

@lolax80
Copy link
Author

lolax80 commented Sep 9, 2020 via email

@Pix---
Copy link
Collaborator

Pix--- commented Sep 9, 2020

Hallo Alex,

ich versteh schon. Der Adapter geht alle eingetragenen Stationen nacheinander durch und holt die Preise von Tankerkoenig ab und speichert sie in die Datenpunkte. Dabei vergleicht er bei jeder Station, ob sie verglichen mit den anderen Stationen nicht günstiger ist. Wenn ja, wird sie auch in Cheapest geschrieben.

Für die Zukunft plane ich daher einen weiteren Number-Datenpunkt "Rabatt", der vor dem Speichern und Vergleichen jeweils ausgelesen und eingerechnet wird. Default ist 0. Zusätzlich kommt noch ein Boolean-Datenpunkt "rabattiert" (true/false), der gesetzt wird, falls "Rabatt" <> 0 ist. Da ist für VIS von Bedeutung.
Weiterhin plane ich einen Boolean-Datenpunkt "isCheapest" innerhalb der Stationen. Das hat mit deinem Hinweis nichts zu tun, ist aber oft gewünscht.

Gruß
Pix

@ChrisWoehrle
Copy link

Super wäre ein Rabatt auch in %. Wir bekommen hier bspw. 1% Rabatt wenn wir eine Bankkarte von der lokalen vrbank verwenden.

@xXBJXx
Copy link
Contributor

xXBJXx commented Nov 18, 2022

Der Adapter wurde vollständig umgeschrieben und eine Rabatt Option wurde hinzugefügt neues Release v.3.0.3

@xXBJXx xXBJXx added the done label Nov 18, 2022
@ChrisWoehrle
Copy link

ChrisWoehrle commented Nov 19, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants