-
-
Notifications
You must be signed in to change notification settings - Fork 984
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] do not generate payment if amount=0 #245
[FIX] do not generate payment if amount=0 #245
Conversation
👍 |
It's a WIP? Anyway, it seems 👍 |
👍 in principle, thanks. Still I am unsure: should we consider a near-zero amount because of float or rounding problems? |
closed by mistake, I reopen |
I agree with @lepistone : I think we should consider using |
👍 |
Actually, 👎 : I didn't notice that the condition was |
852a6d3
to
26796f0
Compare
@mdietrichc2c ouch ... :( sorry. fix done |
@@ -103,8 +104,10 @@ def automatic_payment(self, amount=None): | |||
amounts = [(date, amount)] | |||
|
|||
# reversed is cosmetic, compute returns terms in the 'wrong' order | |||
precision = self.env['decimal.precision'].precision_get('Account') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move this up 1 line, otherwise the comment does not make sense.
A minor remark, otherwise 👍 thanks! |
@lepistone done |
👍 |
1 similar comment
👍 |
Syncing from upstream OCA/sale-workflow (12.0)
No description provided.