Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||||||||||||||||
| View Issue Details | |||||||||||||||||||||||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||||||
| 0032934 | Openbravo ERP | 04. Warehouse management | public | 2016-05-11 17:31 | 2018-01-26 10:51 | ||||||||||||||||||||||||||||
| Reporter | ngarcia | ||||||||||||||||||||||||||||||||
| Assigned To | markmm82 | ||||||||||||||||||||||||||||||||
| Priority | urgent | Severity | major | Reproducibility | always | ||||||||||||||||||||||||||||
| Status | closed | Resolution | fixed | ||||||||||||||||||||||||||||||
| Platform | OS | 5 | OS Version | ||||||||||||||||||||||||||||||
| Product Version | |||||||||||||||||||||||||||||||||
| Target Version | Fixed in Version | ||||||||||||||||||||||||||||||||
| Merge Request Status | |||||||||||||||||||||||||||||||||
| Review Assigned To | aferraz | ||||||||||||||||||||||||||||||||
| OBNetwork customer | OBPS | ||||||||||||||||||||||||||||||||
| Web browser | |||||||||||||||||||||||||||||||||
| Modules | Core | ||||||||||||||||||||||||||||||||
| Support ticket | 41744 | ||||||||||||||||||||||||||||||||
| Regression level | |||||||||||||||||||||||||||||||||
| Regression date | |||||||||||||||||||||||||||||||||
| Regression introduced in release | |||||||||||||||||||||||||||||||||
| Regression introduced by commit | |||||||||||||||||||||||||||||||||
| Triggers an Emergency Pack | No | ||||||||||||||||||||||||||||||||
| Summary | 0032934: Wrong definition of convertUOM function in RestoreStockValue_data.xsql | ||||||||||||||||||||||||||||||||
| Description | Wrong definition of convertUOM function in RestoreStockValue_data.xsql. It should be changed from callableStatement to preparedStatement | ||||||||||||||||||||||||||||||||
| Steps To Reproduce | As system admin role: Set as Displayed the fields related with second UOM feature in Windows Tab and Fields window, for Purchaser Order window, Lines Tab: Order UOM Order Quantity Set as Active the tabs used in that feature: Product window - UOM tab Unit Of Measure window - Conversion tab Install the org.openbravo.module.fixstock module (it is not available in the module management window, it is on https://code.openbravo.com/erp/pmods [^] repository) As group admin role: Create a product Add a new unit in the UOM tab Configure the conversion between both of them Add a purchase price to it Create a purchase order and add the previously created order You should fill the Order Quantity and Order UOM fields Book it Create a partial goods receipt from it Check there is an entry in the m_storage_pending for that product Go to Process Request window and launch the Fix Stock process Check the following error message is shown in the log 867946fe 12275108 [DefaultQuartzScheduler_Worker-7] ERROR org.openbravo.module.fixstock.RestoreStockValue - java.lang.NullPointerException at java.math.BigDecimal.<init>(BigDecimal.java:739) at org.openbravo.module.fixstock.RestoreStockValue.addSalesOrderEntries(RestoreStockValue.java:590) at org.openbravo.module.fixstock.RestoreStockValue.doExecute(RestoreStockValue.java:70) at org.openbravo.service.db.DalBaseProcess.execute(DalBaseProcess.java:82) at org.openbravo.scheduling.DefaultJob.execute(DefaultJob.java:62) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Check there is no entry in the m_storage_pending for that product It is also reproducible in sales flow | ||||||||||||||||||||||||||||||||
| Proposed Solution | Change the following code <SqlMethod name="convertUOM" type="callableStatement" connection="true" return="string"> with <SqlMethod name="convertUOM" type="preparedStatement" connection="true" return="string"> in RestoreStockValue_data.xsql | ||||||||||||||||||||||||||||||||
| Additional Information | |||||||||||||||||||||||||||||||||
| Tags | Fix Stock | ||||||||||||||||||||||||||||||||
| Relationships |
| ||||||||||||||||||||||||||||||||
| Attached Files | |||||||||||||||||||||||||||||||||
| Issue History | |||||||||||||||||||||||||||||||||
| Date Modified | Username | Field | Change | ||||||||||||||||||||||||||||||
| 2016-05-11 17:31 | ngarcia | New Issue | |||||||||||||||||||||||||||||||
| 2016-05-11 17:31 | ngarcia | Assigned To | => Triage Finance | ||||||||||||||||||||||||||||||
| 2016-05-11 17:31 | ngarcia | OBNetwork customer | => Yes | ||||||||||||||||||||||||||||||
| 2016-05-11 17:31 | ngarcia | Modules | => Core | ||||||||||||||||||||||||||||||
| 2016-05-11 17:31 | ngarcia | Support ticket | => 41744 | ||||||||||||||||||||||||||||||
| 2016-05-11 17:31 | ngarcia | Resolution time | => 1466200800 | ||||||||||||||||||||||||||||||
| 2016-05-11 17:31 | ngarcia | Triggers an Emergency Pack | => No | ||||||||||||||||||||||||||||||
| 2016-05-11 17:32 | ngarcia | Relationship added | depends on 0028459 | ||||||||||||||||||||||||||||||
| 2016-05-11 17:32 | ngarcia | Issue Monitored: networkb | |||||||||||||||||||||||||||||||
| 2016-05-11 17:35 | ngarcia | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=12058#r12058 | ||||||||||||||||||||||||||||||
| 2016-05-11 17:39 | ngarcia | Relationship added | blocks 0032935 | ||||||||||||||||||||||||||||||
| 2016-05-11 17:53 | aferraz | Assigned To | Triage Finance => markmm82 | ||||||||||||||||||||||||||||||
| 2016-05-12 17:02 | markmm82 | Status | new => scheduled | ||||||||||||||||||||||||||||||
| 2016-05-13 22:18 | markmm82 | Note Added: 0086447 | |||||||||||||||||||||||||||||||
| 2016-05-16 17:38 | aferraz | Relationship added | related to 0032943 | ||||||||||||||||||||||||||||||
| 2016-05-16 17:39 | aferraz | Relationship added | related to 0032951 | ||||||||||||||||||||||||||||||
| 2016-05-17 11:51 | psanjuan | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=12129#r12129 | ||||||||||||||||||||||||||||||
| 2016-05-20 15:13 | hgbot | Checkin | |||||||||||||||||||||||||||||||
| 2016-05-20 15:13 | hgbot | Note Added: 0086624 | |||||||||||||||||||||||||||||||
| 2016-05-20 15:13 | hgbot | Status | scheduled => resolved | ||||||||||||||||||||||||||||||
| 2016-05-20 15:13 | hgbot | Resolution | open => fixed | ||||||||||||||||||||||||||||||
| 2016-05-20 15:13 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.module.fixstock/rev/408ed751de816784e82cff02effc965d64cbdc99 [^] | ||||||||||||||||||||||||||||||
| 2016-05-20 15:13 | hgbot | Checkin | |||||||||||||||||||||||||||||||
| 2016-05-20 15:13 | hgbot | Note Added: 0086627 | |||||||||||||||||||||||||||||||
| 2016-05-20 15:14 | aferraz | Review Assigned To | => aferraz | ||||||||||||||||||||||||||||||
| 2016-05-20 15:14 | aferraz | Note Added: 0086629 | |||||||||||||||||||||||||||||||
| 2016-05-20 15:14 | aferraz | Status | resolved => closed | ||||||||||||||||||||||||||||||
| 2018-01-26 10:51 | ngarcia | Tag Attached: Fix Stock | |||||||||||||||||||||||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||