Openbravo Issue Tracking System - Modules
View Issue Details
0026726ModulesService Contract Managementpublic2014-05-28 22:462014-05-30 13:45
sjkumar 
naiaramartinez 
normalmajoralways
closedfixed 
5
 
 
vmromanos
0026726: Quantity field not correct for the first Overage computation
Created a Subscription with tiered Product successfully. Then created a usage for one of the service items with a quantity exceeding the prepaid amount and computed the usage. Usage calculation and Overage calculation are correct but the quantity for the first overage computation is incorrect.
1)Created a Subscription with tiered Product successfully
2)In SPM created a usage for one of the service items with a quantity
exceeding the prepaid amount and computed the usage.
3) In the above example when the usage gets in to overage the expected quantity
should be '1' rather than 9,479.
when the usage gets in to overage the expected quantity should be '1'.
No tags attached.
png Quantity_error.png (253,618) 2014-05-28 22:46
https://issues.openbravo.com/file_download.php?file_id=6964&type=bug
png
Issue History
2014-05-28 22:46sjkumarNew Issue
2014-05-28 22:46sjkumarAssigned To => vmromanos
2014-05-28 22:46sjkumarFile Added: Quantity_error.png
2014-05-29 12:02naiaramartinezNote Added: 0067569
2014-05-29 12:02naiaramartinezStatusnew => feedback
2014-05-29 18:40vmromanosStatusfeedback => scheduled
2014-05-29 18:40vmromanosNote Added: 0067578
2014-05-29 18:40vmromanosAssigned Tovmromanos => naiaramartinez
2014-05-29 18:40vmromanosfix_in_branch => pi
2014-05-29 18:49sjkumarNote Added: 0067579
2014-05-30 13:23hgbotCheckin
2014-05-30 13:23hgbotNote Added: 0067625
2014-05-30 13:23hgbotStatusscheduled => resolved
2014-05-30 13:23hgbotResolutionopen => fixed
2014-05-30 13:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/85946d8794af9fa57ed3be759ba330d22ca059f2 [^]
2014-05-30 13:45vmromanosReview Assigned To => vmromanos
2014-05-30 13:45vmromanosStatusresolved => closed

Notes
(0067569)
naiaramartinez   
2014-05-29 12:02   
We are not able to reproduce this issue. Are you working with the latest version of the module? Try to reproduce this issue in the latest version. If it is reproducible, please, send more information/screenshots (subscribed services, tier definition in the subscription and in the pricelist, usage...) to us in order to be able to have the same scenario as you.
(0067578)
vmromanos   
2014-05-29 18:40   
Document attached at 0026728 may contain the required info. Please review it
(0067579)
sjkumar   
2014-05-29 18:49   
This issue also happens in the new code drop:56.

I have a document attached to the issue: 26728: Overage computation resets the counter and starts from the beginning. Document name is 10000034_overage_issue.doc
if you open that doc, you will see that if you scroll in that document to the last screen shot you will see the quantity shows as 9479.18 where as it should be 1 for the first overage line.

You can reproduce the issue if you do the setup like the way I had done and attached in that screenshot.
(0067625)
hgbot   
2014-05-30 13:23   
Repository: erp/pmods/org.openbravo.contract.services
Changeset: 85946d8794af9fa57ed3be759ba330d22ca059f2
Author: Naiara Martinez <naiara.martinez <at> openbravo.com>
Date: Fri May 30 13:13:58 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/85946d8794af9fa57ed3be759ba330d22ca059f2 [^]

Fixed issue 26726 : Quantity field not correct when the price is ZERO(so, the cost is ZERO) in overage

---
M src/org/openbravo/contract/services/process/computation/Computation.java
---