Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0027932 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] 09. Financial management | major | have not tried | 2014-10-21 13:47 | 2014-11-03 13:40 | |||
Reporter | plujan | View Status | public | |||||
Assigned To | umartirena | |||||||
Priority | normal | Resolution | no change required | Fixed in Version | main | |||
Status | closed | Fix in branch | pi | Fixed in SCM revision | ||||
Projection | none | ETA | none | Target Version | 3.0PR14Q4 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | main | SCM revision | ||||||
Review Assigned To | umartirena | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Packaging and release | |||||||
Regression date | ||||||||
Regression introduced in release | main | |||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0027932: [Costing] Costing Background process is assuming a negative shipment as a voided shipment | |||||||
Description | When creating a negative shipment to calculate the initial cost of a product, the process monitor shows an error that seems to be caused by wrongly assuming the shipment is voiding a positive shipment (that does not actually exist) | |||||||
Steps To Reproduce | 1. Login as: Username: QAAdmin Password: QAAdmin 2. Modify Document Types Go to Financial Management || Accounting || Setup || Document Type: Select the record with Name: "RFC Order" Set "Organization": * Select the record with Name: "RFC Receipt" Set "Organization": * Select the record with Name: "RTV Order" Set "Organization": * Select the record with Name: "RTV Shipment" Set "Organization": * 3. Schedule the Costing Process Go to General Setup || Process Scheduling || Process Request: Click New and select: "Client": QA Testing "Organization": * "Process": Costing Background process "Timing": Run Immediately Click on "Schedule Process". A popup should appear with the message: "Process completed succesfully" 4. Create the Product Go to Master Data Management || Product: Click New and select: "Organization": USA "Search Key": CostingProduct "Name": CostingProduct "UOM": Unit "Product Type": Item 5. Create the Price List for Purchase and Sales Go to Master Data Management || Pricing || Price List: Click New and select: "Organization": USA "Name": Costing Price List "Currency": USD Move to Price List Version and create a new row: "Name": Costing Price List "Valid from Date": 01-01-2012 Move to Product Price and create a new row: "Product": CostingProduct "Net Unit Price": 50.00 "Net List Price": 50.00 Click New and select: "Organization": USA "Name": Costing Price List Sales "Currency": USD "Sales Price List": Checked Move to Price List Version and create a new row: "Name": Costing Price List Sales "Valid from Date": 01-01-2012 Move to Product Price and create a new row: "Product": CostingProduct "Net Unit Price": 50.00 "Net List Price": 50.00 6. Create a Business Partner: Go to Master Data Management || Business Partner: Click New and select: "Organization": * "Search Key": Costing Business Partner "Commercial Name": Costing Business Partner Move to Customer. "Price List": Costing Price List Sales "Payment Method": 1 (USA) "Payment Terms": 90 days "Financial Account" USD - USA Cashbook Move to Vendor/Creditor. "Vendor": Checked "Purchase Price List": Costing Price List "PO Payment Method": 1 (USA) "PO Payment Terms": 90 days "PO Financial Account" USD - USA Cashbook Move to Location/Address "Location / Address": "1st line": Street "Postal Code": 0123456 "City": City "Country": United States "Region": AK 7. Create a Tax Rate: Go to Financial Management || Accounting || Setup || Tax Rate: Click New and select: "Organization": USA "Name": Costing Tax Rate "Valid From Date": 01-01-2012 "Tax Category": Exempt "Default": Checked 8. Create Negative Goods Shipment. Go to Sales Management || Transactions || Goods Shipment: Click New and select: "Organization": USA “Business Partner”: Costing Business Partner Move to Lines. Click new and select: “Product”: CostingProduct “Movement Quantity”: -50 "Storage Bin": USA111 Click the “Complete” button. Click OK. 9. Reschedule the Process Go to General Setup || Process Scheduling || Process Request: Select the process Costing Background Process. Click on "Reschedule Process" Expected result: A popup should appear with the message: "Process completed succesfully" Actual result: "Index: 0, Size: 0" Log message 2014-10-21 10:44:53,575 [DefaultQuartzScheduler_Worker-6] ERROR org.openbravo.costing.CostingBackground - Index: 0, Size: 0 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at org.hibernate.collection.PersistentBag.get(PersistentBag.java:446) at org.openbravo.costing.CostingAlgorithm.getOriginalInOutLineCost(CostingAlgorithm.java:326) at org.openbravo.costing.CostingAlgorithm.getShipmentVoidCost(CostingAlgorithm.java:200) at org.openbravo.costing.CostingAlgorithm.getTransactionCost(CostingAlgorithm.java:109) at org.openbravo.costing.AverageAlgorithm.getTransactionCost(AverageAlgorithm.java:45) at org.openbravo.costing.CostingServer.process(CostingServer.java:104) at org.openbravo.costing.CostingBackground.doExecute(CostingBackground.java:106) at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:80) at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:58) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0071239) umartirena (reporter) 2014-10-29 09:57 |
Unable to reproduce the issue |
(0071353) umartirena (reporter) 2014-11-03 13:39 |
Reopened |
(0071354) umartirena (reporter) 2014-11-03 13:40 |
The issue was happening because there was some bad data (missing m_transaction records), but this has no relation with Costing Engine process. |
Issue History | |||
Date Modified | Username | Field | Change |
2014-10-21 13:47 | plujan | New Issue | |
2014-10-21 13:47 | plujan | Assigned To | => Sandrahuguet |
2014-10-21 13:47 | plujan | Modules | => Core |
2014-10-21 13:47 | plujan | Triggers an Emergency Pack | => No |
2014-10-21 13:48 | plujan | Regression level | => Packaging and release |
2014-10-21 13:48 | plujan | Regression introduced in release | => main |
2014-10-21 13:48 | plujan | version | => main |
2014-10-21 13:53 | plujan | Issue cloned | 0027934 |
2014-10-21 13:53 | plujan | Relationship added | related to 0027934 |
2014-10-29 09:57 | umartirena | Status | new => scheduled |
2014-10-29 09:57 | umartirena | Assigned To | Sandrahuguet => umartirena |
2014-10-29 09:57 | umartirena | fix_in_branch | => pi |
2014-10-29 09:57 | umartirena | Review Assigned To | => umartirena |
2014-10-29 09:57 | umartirena | Note Added: 0071239 | |
2014-10-29 09:57 | umartirena | Status | scheduled => closed |
2014-10-29 09:57 | umartirena | Resolution | open => unable to reproduce |
2014-10-29 09:57 | umartirena | Fixed in Version | => pi |
2014-11-03 13:39 | umartirena | Note Added: 0071353 | |
2014-11-03 13:39 | umartirena | Status | closed => new |
2014-11-03 13:39 | umartirena | Resolution | unable to reproduce => open |
2014-11-03 13:39 | umartirena | Fixed in Version | pi => |
2014-11-03 13:40 | umartirena | Note Added: 0071354 | |
2014-11-03 13:40 | umartirena | Status | new => closed |
2014-11-03 13:40 | umartirena | Resolution | open => no change required |
2014-11-03 13:40 | umartirena | Fixed in Version | => main |
Copyright © 2000 - 2009 MantisBT Group |