Skip to content

Commit

Permalink
[FIX] account_financial_report_webkit: PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed May 3, 2016
1 parent 89d386c commit 0eb262e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions account_financial_report_webkit/report/aged_open_invoices.py
Expand Up @@ -282,10 +282,12 @@ def compute_delay_from_partial_rec(self, line, end_date, ledger_lines):
:returns: delta in days
"""
sale_lines = [x for x in ledger_lines if x['jtype'] in REC_PAY_TYPE
and line['rec_id'] == x['rec_id']]
refund_lines = [x for x in ledger_lines if x['jtype'] in REFUND_TYPE
and line['rec_id'] == x['rec_id']]
sale_lines = [
x for x in ledger_lines if x['jtype'] in REC_PAY_TYPE and
line['rec_id'] == x['rec_id']]
refund_lines = [
x for x in ledger_lines if x['jtype'] in REFUND_TYPE and
line['rec_id'] == x['rec_id']]
if len(sale_lines) == 1:
reference_line = sale_lines[0]
elif len(refund_lines) == 1:
Expand Down

0 comments on commit 0eb262e

Please sign in to comment.