Skip to content

Fix bad taxation label when decimal value#1300

Merged
pjedrzejewski merged 4 commits intoSylius:masterfrom
lenybernard:patch-1
May 4, 2014
Merged

Fix bad taxation label when decimal value#1300
pjedrzejewski merged 4 commits intoSylius:masterfrom
lenybernard:patch-1

Conversation

@lenybernard
Copy link
Copy Markdown
Contributor

For example if you have a tax of 5.5%, the adjustment description was :

MyTax (5%)

but it was expected :

MyTax (5.50%)

@stloyd stloyd added the Bug Fix label Mar 29, 2014
@stloyd stloyd added this to the 1.0.0-BETA1 milestone Mar 29, 2014
@stloyd
Copy link
Copy Markdown
Contributor

stloyd commented Mar 30, 2014

This change breaks tests, mainly because with this change all % are now displayed like: 19.00% instead of 19%.

@pjedrzejewski
Copy link
Copy Markdown
Contributor

@lenybernard Could you update Behat scenarios, please? Thanks!

@QuingKhaos
Copy link
Copy Markdown
Contributor

Hmm, don't like to see 20.00% when not needed. @lenybernard maybe can you update to only show decimals, if there are decimals needed?

@lenybernard
Copy link
Copy Markdown
Contributor Author

Sure I'll fix the behat tests and display only taxes when needed.

@lenybernard
Copy link
Copy Markdown
Contributor Author

done.

@stloyd
Copy link
Copy Markdown
Contributor

stloyd commented Mar 30, 2014

Can you squash your commits? Thanks!

@winzou
Copy link
Copy Markdown
Contributor

winzou commented Apr 14, 2014

@lenybernard PR needs rebase and squash, thanks!

@lenybernard
Copy link
Copy Markdown
Contributor Author

Yes I will but I don't have so much time, Nevertheless I'll try to do it this week.

pjedrzejewski pushed a commit that referenced this pull request May 4, 2014
Fix bad taxation label when decimal value
@pjedrzejewski pjedrzejewski merged commit aa8b402 into Sylius:master May 4, 2014
@pjedrzejewski
Copy link
Copy Markdown
Contributor

Thanks Leny! 👍

@lenybernard
Copy link
Copy Markdown
Contributor Author

Wecome, sorry for rebase and squash, I had no time to do that 😴

@lenybernard lenybernard deleted the patch-1 branch May 5, 2014 13:04
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.

6 participants