nan_partner_risk: total_debt doubt

Bug #1108879 reported by Aitor Eguiluz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Extra Addons
New
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.