nan_partner_risk: total_debt doubt

Bug #1108879 reported by Aitor Eguiluz on 2013-01-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Extra Addons
Undecided
Unassigned

Bug Description

nan_partner_risk OpenErp 6.1

In risk.py , method "_total_debt":

The formula to calculate it is: res[partner.id] = pending_orders + circulating + unpayed + pending + draft_invoices
I think it should be: res[partner.id] = pending_orders + unpayed + pending + draft_invoices

    def _total_debt(self, cr, uid, ids, name, arg, context=None):
        res = {}
        for partner in self.browse( cr, uid, ids, context ):
            pending_orders = partner.pending_orders_amount or 0.0
            circulating = partner.circulating_amount or 0.0
            unpayed = partner.unpayed_amount or 0.0
            pending = partner.pending_amount or 0.0
            draft_invoices = partner.draft_invoices_amount or 0.0
            res[partner.id] = pending_orders + circulating + unpayed + pending + draft_invoices
        return res

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers