-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
debugged error in case of wht with 0% rate #468
Conversation
@@ -97,7 +97,7 @@ def generate_wt_moves(self): | |||
payment_lines = wt_st.withholding_tax_id.payment_term.compute( | |||
amount_wt, | |||
rec_line_statement.date or False) | |||
if payment_lines: | |||
if payment_lines[0]: |
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.
@jackjack82 payment_lines
non può essere vuoto?
Non è più sicuro un controllo del tipo
if payment_lines and payment_lines[0]
?
se vuoto ritorna [ [ ] ] , per quello serve mettere lo [0]
…On 4 May 2018 at 15:08, Lorenzo Battistini ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In l10n_it_withholding_tax/models/account.py
<#468 (comment)>:
> @@ -97,7 +97,7 @@ def generate_wt_moves(self):
payment_lines = wt_st.withholding_tax_id.payment_term.compute(
amount_wt,
rec_line_statement.date or False)
- if payment_lines:
+ if payment_lines[0]:
@jackjack82 <https://github.com/jackjack82> payment_lines non può essere
vuoto?
Non è più sicuro un controllo del tipo
if payment_lines and if payment_lines[0]
?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#468 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMv6EH4FZXYzxHnN0qCYhkz01CBNeB3zks5tvFLfgaJpZM4S-5tM>
.
|
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.
@jackjack82 guardando il metodo compute
di account.payment.term
, result
è una lista di tuple, del tipo (data, importo)
quindi la modifica non mi torna
cf4081d
to
3895e18
Compare
@eLBati fatto aggiornamento richiesto. thx |
In case of withholding tax with rate of 0% the module returns an error. This PR is ment to solve it.