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

1.4+1.5: 'Update' in the single payment screen resets payment amount back to 0 #1916

Closed
ehuelsmann opened this issue Jul 31, 2016 · 7 comments
Milestone

Comments

@ehuelsmann
Copy link
Member

No description provided.

@ehuelsmann ehuelsmann added this to the 1.5-rc2 milestone Jul 31, 2016
@einhverfr einhverfr modified the milestones: 1.5-rc2, 1.4 Jul 31, 2016
@einhverfr
Copy link
Member

This is the sort fo thing we'd want to backport a fix to 1.4 as well, I think (though if you want to come up with the fix, I am happy to backport)

@ehuelsmann
Copy link
Member Author

ok. so, I've worked on this and after several attempts, I came to the conclusion which @ylavoie was trying to tell me (I think), which is: the format_amount() function in the template doesn't work.

Even more: In our source tree (within the scope of 'lib/LedgerSMB/Template*') I can't find any reference to that function. I'm thinking it doesn't exist.

@einhverfr
Copy link
Member

format_amount() in a template needs an additional format parameter iirc. it is not intended to be used for user info but for specific info aimed at clients, so you can print checks in a certain number format.

Yeah, don't use it in the templates unless you are printing

@einhverfr
Copy link
Member

I think it might be added during the print checks work flow to the template....

@ehuelsmann
Copy link
Member Author

oh. I mean UI template: UI/payment/payment2.html

@ehuelsmann
Copy link
Member Author

16144d9 seems to be the commit which fixes this. All we now need is verification and backport.

@einhverfr
Copy link
Member

fix confirmed

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

No branches or pull requests

2 participants