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

debugged error in case of wht with 0% rate #468

Merged
merged 1 commit into from
May 8, 2018

Conversation

jackjack82
Copy link
Member

In case of withholding tax with rate of 0% the module returns an error. This PR is ment to solve it.

@@ -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]:
Copy link
Member

@eLBati eLBati May 4, 2018

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]

?

@jackjack82
Copy link
Member Author

jackjack82 commented May 4, 2018 via email

Copy link
Member

@eLBati eLBati left a 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

@jackjack82
Copy link
Member Author

@eLBati fatto aggiornamento richiesto. thx

@eLBati eLBati merged commit dd41e0f into OCA:10.0 May 8, 2018
alessandrocamilli pushed a commit to alessandrocamilli/l10n-italy that referenced this pull request Jun 26, 2018
alessandrocamilli pushed a commit to alessandrocamilli/l10n-italy that referenced this pull request Aug 29, 2018
alessandrocamilli pushed a commit to alessandrocamilli/l10n-italy that referenced this pull request Sep 24, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Oct 3, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 8, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 8, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 9, 2018
eLBati pushed a commit to eLBati/l10n-italy that referenced this pull request Nov 21, 2018
SimoRubi pushed a commit to SimoRubi/l10n-italy that referenced this pull request Aug 7, 2019
SimoRubi pushed a commit to SimoRubi/l10n-italy that referenced this pull request Aug 7, 2019
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request Dec 17, 2020
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request May 5, 2021
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request Nov 2, 2022
TheMule71 pushed a commit to TheMule71/l10n-italy that referenced this pull request Dec 16, 2022
TonyMasciI pushed a commit to saydigital/l10n-italy that referenced this pull request Jan 9, 2023
TonyMasciI pushed a commit to saydigital/l10n-italy that referenced this pull request Jan 16, 2023
TonyMasciI pushed a commit to saydigital/l10n-italy that referenced this pull request Jan 27, 2023
are-agilebg pushed a commit to are-agilebg/l10n-italy that referenced this pull request May 10, 2023
are-agilebg pushed a commit to are-agilebg/l10n-italy that referenced this pull request May 10, 2023
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.

3 participants