DimaTroxumenko
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
dynamic_accounts_report/models/aged_receivable_report.py
|
|
@ -63,6 +63,7 @@ class AgeReceivableReport(models.TransientModel): |
|
|
|
['name', 'move_name', 'date', 'amount_currency', 'account_id', |
|
|
|
'date_maturity', 'currency_id', 'debit', 'move_id']) |
|
|
|
for val in move_line_data: |
|
|
|
diffrence = 0 |
|
|
|
if val['date_maturity']: |
|
|
|
diffrence = (today - val['date_maturity']).days |
|
|
|
val['diff0'] = val['debit'] if diffrence <= 0 else 0.0 |
|
|
|