[FIX] account_followup: partial overdue payments
This is related to rev. ab9f02cdee
The above rev. take care to exclude payments that are not yet due;
meaning the ones due in the future, by checking the maturity
date.
Problem: Payments (e.g. move lines from bank statements)
do not have a maturity date. Only move lines that actually
have a maturity date, in the future, must be excluded,
not the one that do not have a maturity date.
opw-633930
This commit is contained in:
parent
fa01054ae0
commit
f2f4391e8b
|
@ -315,7 +315,7 @@ class res_partner(osv.osv):
|
|||
('reconcile_id', '=', False),
|
||||
('state', '!=', 'draft'),
|
||||
('company_id', '=', company_id),
|
||||
('date_maturity', '<=', fields.date.context_today(self,cr,uid)),
|
||||
'|', ('date_maturity', '=', False), ('date_maturity', '<=', fields.date.context_today(self, cr, uid)),
|
||||
], context=context):
|
||||
raise osv.except_osv(_('Error!'),_("The partner does not have any accounting entries to print in the overdue report for the current company."))
|
||||
self.message_post(cr, uid, [ids[0]], body=_('Printed overdue payments report'), context=context)
|
||||
|
|
|
@ -58,7 +58,7 @@ class report_rappel(report_sxw.rml_parse):
|
|||
('reconcile_id', '=', False),
|
||||
('state', '!=', 'draft'),
|
||||
('company_id', '=', company_id),
|
||||
('date_maturity', '<=', fields.date.context_today(self,self.cr,self.uid)),
|
||||
'|', ('date_maturity', '=', False), ('date_maturity', '<=', fields.date.context_today(self, self.cr, self.uid)),
|
||||
])
|
||||
|
||||
# lines_per_currency = {currency: [line data, ...], ...}
|
||||
|
|
Loading…
Reference in New Issue