Browse Source

[ADD] doc string

pull/7/merge
Nicolas Bessi 11 years ago
parent
commit
ca5bed3188
  1. 8
      account_financial_report_webkit/report/aged_partner_balance.py

8
account_financial_report_webkit/report/aged_partner_balance.py

@ -190,6 +190,14 @@ class AccountAgedTrialBalanceWebkit(PartnersOpenInvoicesWebkit):
return end_date
def _compute_delay_from_key(self, key, line, end_date):
"""Compute overdue delay delta in days for line using attribute in key
delta = end_date - date of key
:param key: date key to be used to compute delta
:param end_date: end_date computed for wizard data
:returns: delta in days
"""
from_date = datetime.strptime(line[key], DEFAULT_SERVER_DATE_FORMAT)
end_date = datetime.strptime(end_date, DEFAULT_SERVER_DATE_FORMAT)
delta = end_date - from_date

Loading…
Cancel
Save