Openbravo Issue Tracking System - Modules
View Issue Details
0026314ModulesService Contract Managementpublic2014-04-17 08:042014-05-20 12:36
sjkumar 
naiaramartinez 
normalmajoralways
closedfixed 
5
 
 
vmromanos
0026314: Service Contract is not updating the available amount correctly.
Available amount is not drawn down for the metered service line.
1.Setup product (parent) and basket product (child) in the product window. At least setup two product in the basket product window and their UOM code should be different.
2.Setup the price list and version that is valid from 04/16/2014. Make sure to give price to both parent and child product in this price list.
Also setup one of the product as the tier product with tier ranges and price as below

1000 0.17
3000 0.12
Infinite range 0.10

3.Create Service contract with the following data
Start Date = 04/16/2014
End Date = 04/15/2015
Invoicing Schedule with Invoicing Frequency = “At Signature - renewal“
4. Create a Invoice Plan Template with following data
Start Date = 04/16/2014
End Date = 04/15/2015
Quantity = 120000
NetUnit Price = 1.00 USD
price Period = Service Period
TCLV = 120000
Flag Service Metered Commitment check box at the line level and make sure that available amount is populated with 120000
3. Click onthe Explode Basket button and populate the basket product into the Invoice plan template. At this stage the price for these product should have come from price list version.
4. Click on the 'Complete' button and generate the invoice plans.
5. Now enter a Metered Services line with following
   Start Date = 04/16/2014 22:00:00
   End Date = 04/16/2014 22:30:00
   Quantity = 100000
   Enter product that is setup in the Basket product window.
   UOM = Choose the same UOM code as setup on the product.
6. Now enter one more metered service line with following
   Start Date = 04/16/2014 22:00:00
   End Date = 04/16/2014 22:30:00
   Quantity = 10000
   Enter product that is setup in the Basket product window. Here enter a product different than in step 5.
   UOM = Choose the same UOM code as setup on the product.

7. Now run the Subscription Billing with date range of 04/16/2014 to 04/16/2014 and Run Metered Service Computation. This should create the invoice for the main subscribed service line as well as the metered service line.

8. At this stage the available amount is only reduced from the first processed line and not from the second line.

I have attached the screenshot for the issues.
No tags attached.
docx Incorrect Available Amount.docx (214,792) 2014-04-17 08:04
https://issues.openbravo.com/file_download.php?file_id=6860&type=bug
Issue History
2014-04-17 08:04sjkumarNew Issue
2014-04-17 08:04sjkumarAssigned To => vmromanos
2014-04-17 08:04sjkumarFile Added: Incorrect Available Amount.docx
2014-04-22 18:50naiaramartinezAssigned Tovmromanos => naiaramartinez
2014-04-22 18:50naiaramartinezStatusnew => scheduled
2014-04-23 16:56hgbotCheckin
2014-04-23 16:56hgbotNote Added: 0066561
2014-04-23 16:56hgbotStatusscheduled => resolved
2014-04-23 16:56hgbotResolutionopen => fixed
2014-04-23 16:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/b0b4e3f0996b4d86f7e36ebba8916e2b89ec928b [^]
2014-05-20 12:36vmromanosReview Assigned To => vmromanos
2014-05-20 12:36vmromanosNote Added: 0067304
2014-05-20 12:36vmromanosStatusresolved => closed

Notes
(0066561)
hgbot   
2014-04-23 16:56   
Repository: erp/pmods/org.openbravo.contract.services
Changeset: b0b4e3f0996b4d86f7e36ebba8916e2b89ec928b
Author: Naiara Martinez <naiara.martinez <at> openbravo.com>
Date: Tue Apr 22 18:52:34 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.contract.services/rev/b0b4e3f0996b4d86f7e36ebba8916e2b89ec928b [^]

Fixed issue 26314: Service Contract is not updating the available amount correctly.

---
M src/org/openbravo/contract/services/process/computation/Computation.java
---
(0067304)
vmromanos   
2014-05-20 12:36   
Code review OK