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

fix: round amounts in CSV export to 2 decimals #14

Merged

Conversation

Didiman1998
Copy link
Contributor

Hallo Raffael :),

wir haben einen kleinen Sonderfall entdeckt, der dafür sorgt, dass DATEV einen Export nicht annehmen könnte.

Undzwar.: Wenn das System zum Beispiel mal auf 9 stellige Dezimalgenauigkeit gesetzt war, dann werden die Werte Datenbankseitig von ERPNext auch auf 9-stelliger Genauigkeit gespeichert. Dabei ist dann auch egal ob man das System wieder auf 2-stellig setzt.

Die aktuelle Datev-Schnittstelle nimmt sich dann die Werte Datenbankseitig und exportiert diese dann auch 9-stellig. An sich auch kein Fehler, die Schnittstelle macht einfach nur das was sie soll. Nur ist seitens DATEV alles über 2-stellig leider ungültig.

Aus diesem Grund habe ich in dieser Pull request in der zuständigen Query eine Round Funktion eingesetzt, welche immer auf zweistellig rundet. Damit sollte es dann seitens Datev keine Probleme mehr geben. :)!

image

Ich würde mich sehr freuen wenn Du meine Pull Request annehmen würdest und solltest Du Fragen haben, kannst du dich wie immer gerne bei mir melden! Dürfte ich Dich dann evtl. auch noch bitten die Änderung gleich auf die unteren Versionen backzuporten?

Beste Grüße
Dietmar

@barredterra barredterra changed the title ✨ add round function to round numbers up to 2 decimals fix: round amounts in CSV export to 2 decimals Mar 27, 2024
@barredterra barredterra merged commit ce65cc7 into alyf-de:version-15 Mar 27, 2024
1 check passed
@barredterra
Copy link
Member

@Mergifyio backport version-14

barredterra pushed a commit that referenced this pull request Mar 27, 2024
## [15.0.1](v15.0.0...v15.0.1) (2024-03-27)

### Bug Fixes

* round amounts in CSV export to 2 decimals ([#14](#14)) ([ce65cc7](ce65cc7))
Copy link

mergify bot commented Mar 27, 2024

backport version-14

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Mar 27, 2024
Co-authored-by: Dietmar Fischer <fischer@kk-software.de>
(cherry picked from commit ce65cc7)
barredterra added a commit that referenced this pull request Mar 27, 2024
fix: round amounts in CSV export to 2 decimals (backport #14)
barredterra pushed a commit that referenced this pull request Mar 27, 2024
## [14.1.3](v14.1.2...v14.1.3) (2024-03-27)

### Bug Fixes

* round amounts in CSV export to 2 decimals ([#14](#14)) ([44b811b](44b811b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants