← Back to team overview

openerp-india team mailing list archive

[Bug 1013222] [NEW] Problems on product_margin module

 

Public bug reported:

Hi,

I try the module product_margin on version 6.1.1, and I note that there
is 2 problems with it.

First one:
When a supplier refund is created on a product, the quantity and amount are added to the sale part instead of purchase. And in the same way if a customer refund is created on a product, the quantity and amount are added to the purchase part instead of sale.
After checking the product_margin.py file, I notice that there is probably an inversion between in_refund (for suppliers) and out_refund (for customers) - Please see attached document.
More over the refunds are not deducted but added.

Second one : 
It seems that the Avg. Unit price is based on the unit price of the invoice line.
For my part, I think that the avg.unit price should be equal to the Turnover divided by the quantity sold, in this way the discounts applied on invoice lines are taken into account in the calculation of the Avg. Unit price (or perhaps I don't well understand what you mean by avg unit sale price).

Regards
Virginie

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1013222

Title:
  Problems on product_margin module

Status in OpenERP Addons (modules):
  New

Bug description:
  Hi,

  I try the module product_margin on version 6.1.1, and I note that
  there is 2 problems with it.

  First one:
  When a supplier refund is created on a product, the quantity and amount are added to the sale part instead of purchase. And in the same way if a customer refund is created on a product, the quantity and amount are added to the purchase part instead of sale.
  After checking the product_margin.py file, I notice that there is probably an inversion between in_refund (for suppliers) and out_refund (for customers) - Please see attached document.
  More over the refunds are not deducted but added.

  Second one : 
  It seems that the Avg. Unit price is based on the unit price of the invoice line.
  For my part, I think that the avg.unit price should be equal to the Turnover divided by the quantity sold, in this way the discounts applied on invoice lines are taken into account in the calculation of the Avg. Unit price (or perhaps I don't well understand what you mean by avg unit sale price).

  Regards
  Virginie

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1013222/+subscriptions


Follow ups

References