Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010710Openbravo ERP04. Warehouse managementpublic2009-09-23 11:112009-10-08 00:00
networkb 
harikrishnan 
highminoralways
closedfixed 
5
2.40 
2.40MP112.50MP7 
Core
No
0010710: Warehouse control report does not filter properly if serial number is used
If 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.
Go 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.
Make 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>
No tags attached.
depends on backport 00107112.40MP11 closed rafaroda Warehouse control report does not filter properly if serial number is used 
Issue History
2009-09-23 11:11networkbNew Issue
2009-09-23 11:11networkbAssigned To => rafaroda
2009-09-23 11:11networkbTarget Version => 2.40MP11
2009-09-23 11:59rafarodaPriorityimmediate => high
2009-09-23 11:59rafarodaSteps to Reproduce Updated
2009-09-23 11:59rafarodaStatusnew => scheduled
2009-09-23 11:59rafarodafix_in_branch => pi
2009-09-23 12:07rafarodafix_in_branchpi =>
2009-09-23 12:07rafarodaSteps to Reproduce Updated
2009-10-05 05:41harikrishnanAssigned Torafaroda => harikrishnan
2009-10-05 07:04hgbotCheckin
2009-10-05 07:04hgbotNote Added: 0020687
2009-10-05 07:04hgbotStatusscheduled => resolved
2009-10-05 07:04hgbotResolutionopen => fixed
2009-10-05 07:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f6c9422cb897ce4af2fda0137f3706da8d1588f6 [^]
2009-10-07 08:29sureshbabuStatusresolved => closed
2009-10-07 08:29sureshbabuNote Added: 0020809
2009-10-07 08:29sureshbabuFixed in Version => 2.50MP7
2009-10-08 00:00anonymoussf_bug_id0 => 2874368

Notes
(0020687)
hgbot   
2009-10-05 07:04   
Repository: erp/devel/pi
Changeset: f6c9422cb897ce4af2fda0137f3706da8d1588f6
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Mon Oct 05 10:29:59 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/f6c9422cb897ce4af2fda0137f3706da8d1588f6 [^]

Fixes Issue 10710: 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
---
(0020809)
sureshbabu   
2009-10-07 08:29   
Tested working fine, right now report shows the product for all the combination (only serial no, serial no_, serial no_expiry date, serial no%)