From ca5bed3188e7d76080907bc3c9f412728ff740c7 Mon Sep 17 00:00:00 2001 From: Nicolas Bessi Date: Mon, 17 Mar 2014 09:22:21 +0100 Subject: [PATCH] [ADD] doc string --- .../report/aged_partner_balance.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/account_financial_report_webkit/report/aged_partner_balance.py b/account_financial_report_webkit/report/aged_partner_balance.py index eb62868e..a387cf11 100644 --- a/account_financial_report_webkit/report/aged_partner_balance.py +++ b/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