Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0010711
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 04. Warehouse managementminoralways2009-09-23 11:112009-10-12 09:19
ReporternetworkbView Statuspublic 
Assigned Torafaroda 
PriorityhighResolutionfixedFixed in Version2.40MP10
StatusclosedFix in branch2.40Fixed in SCM revision38004a07a7e9
ProjectionnoneETAnoneTarget Version2.40MP11
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0010711: Warehouse control report does not filter properly if serial number is used

DescriptionIf a product has a serial number, and its value is used to filter this report, does not find any record. The problem is that it is stored, as serial number, the number + '_'. So, if you fill 154 as serial number, the report does not show any record. However, if you enter 154_, the report shows the product.

Also, if the product has expiration date (154_01-01-2010), does not find any record, even using _ after serial number. In addition to this, it is not possible to enter the whole serial number (154_01-01-2010) in serial number field, so report will ever show this product.
Steps To ReproduceGo to Master Data Management > Product Setup > Serial Number Sequence. Create a new record (just fill name field). Save it.
Go to Master Data Management > Product Setup > Attribute Set. Create a new record. Enter a name, and check Serial No, and Expiration Date. Select as Serial No Control, the existing one. As guaranteed days, 365. Save it.
Go to Master Data Management > Product. Create a new one. Enter its name and select as Attribute Set, the created one.
Go to Warehouse management > Transactions > Physical Inventory. Create a new record. Save it.
Go to its lines. Select as a product, the new one (uncheck "With stock" in the selector). As Attribute Set Value, enter a Serial Number (154) and Expiration date (01-01-2010). Save it.
Go to Header, and press "Process Inventory Count".
Go to Warehouse Management > Analysis Tools > Warehouse control report. Enter as Serial Number, 154. Report does not show any record.
Do not fill Serial number field, and search. The product will appear. Copy its serial number (154_01-01-2010) and try to paste it into Serial Number field. It is not possible because of its length.
Proposed SolutionMake in the HTML the Serial Number field accept much more characters (50).

And the Serial Number comparison should not be equal but like.
In https://code.openbravo.com/erp/devel/pi/file/97dd457bbb50/src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl_data.xsql [^]
Replace:
<Parameter name="reference" optional="true" after="AND 1=1"><![CDATA[ AND M_ATTRIBUTESETINSTANCE.DESCRIPTION = ?]]></Parameter>
by
<Parameter name="reference" optional="true" after="AND 1=1"><![CDATA[ AND UPPER(M_ATTRIBUTESETINSTANCE.DESCRIPTION) LIKE '%'||UPPER(?)||'%']]></Parameter>
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00107102.40MP11 closedharikrishnan Warehouse control report does not filter properly if serial number is used 

-  Notes
(0020688)
hgbot (developer)
2009-10-05 07:17

Repository: erp/stable/2.40
Changeset: 38004a07a7e923efa84dceb1d30ce802320bcc95
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Mon Oct 05 10:46:03 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/38004a07a7e923efa84dceb1d30ce802320bcc95 [^]

Fixes Issue 10711: Warehouse control report does not filter properly if serial number is used.

---
M src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl.html
M src/org/openbravo/erpCommon/ad_reports/ReportWarehouseControl_data.xsql
---
(0020937)
sureshbabu (reporter)
2009-10-12 09:19

Tested working fine

- Issue History
Date Modified Username Field Change
2009-09-23 11:59 rafaroda Type defect => backport
2009-09-23 11:59 rafaroda fix_in_branch => 2.40
2009-09-23 12:07 rafaroda Steps to Reproduce Updated
2009-10-05 07:17 hgbot Checkin
2009-10-05 07:17 hgbot Note Added: 0020688
2009-10-05 07:17 hgbot Status scheduled => resolved
2009-10-05 07:17 hgbot Resolution open => fixed
2009-10-05 07:17 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/38004a07a7e923efa84dceb1d30ce802320bcc95 [^]
2009-10-12 09:19 sureshbabu Status resolved => closed
2009-10-12 09:19 sureshbabu Note Added: 0020937
2009-10-12 09:19 sureshbabu Fixed in Version => 2.40MP10


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker