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] wrong scan line #92

Merged
merged 2 commits into from
Feb 9, 2015
Merged

[FIX] wrong scan line #92

merged 2 commits into from
Feb 9, 2015

Conversation

eLBati
Copy link
Member

@eLBati eLBati commented Feb 4, 2015

Without this change, invoice with total amount of 4502.47 CHF produces the line
00014502475>...

With this change, it produces the line
0100004502471>...

Without this change, invoice with total amount of 4502.47 CHF produces the line
00014502475>...

With this change, it produces the line
0100004502471>...
@nbessi
Copy link
Contributor

nbessi commented Feb 4, 2015

@nbessi
Copy link
Contributor

nbessi commented Feb 4, 2015

👍

@nbessi
Copy link
Contributor

nbessi commented Feb 4, 2015

@eLBati it would be really nice if you can add a test that check scan line see #93

>>> amount=64.80
>>> '01%s' % unicode(amount).replace('.', '').rjust(10, '0')
u'010000000648'

it should be:

>>> '01%s' % ('%.2f' % amount).replace('.', '').rjust(10, '0')
'010000006480'
@guewen
Copy link
Member

guewen commented Feb 5, 2015

👍

nbessi added a commit that referenced this pull request Feb 9, 2015
@nbessi nbessi merged commit 6ed73f8 into OCA:8.0 Feb 9, 2015
nbessi added a commit to nbessi/l10n-switzerland that referenced this pull request Feb 24, 2015
nbessi added a commit to nbessi/l10n-switzerland that referenced this pull request Mar 11, 2015
yvaucher pushed a commit to yvaucher/l10n-switzerland that referenced this pull request Nov 14, 2017
yvaucher pushed a commit to yvaucher/l10n-switzerland that referenced this pull request Nov 14, 2017
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.

None yet

3 participants