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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020114
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 02. Master data managementminoralways2012-03-26 15:462012-04-02 06:13
ReportervmromanosView Statuspublic 
Assigned Tonaiaramartinez 
PrioritynormalResolutionfixedFixed in Version3.0MP10
StatusclosedFix in branchpiFixed in SCM revision6aee986e08a4
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_12
OS VersionDebian 5.0Database version8.3.8Ant version1.7.0
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020114: Bill of materials display logic

DescriptionProduct window, Bill of materials display logic is:
@IsSummary@='N' & @ProductType@='I' | @ProductType@='S'

When you enter Product window, the following error is written into the log:
>>>>>>> Issues found in javascript <<<<<<<<<
Core.View:186:301: The '&&' subexpression should be wrapped in parens. >> offending code: name: 'billOfMaterials', title: 'Bill of Materials', sessionProperty: true, hasDefaultValue: true,columnName: 'IsBOM', inpColumnName: 'inpisbom', redrawOnChange: true, showIf: function(item, value, form, currentValues, context) { return (OB.Utilities.getValue(currentValues,'summaryLevel') === false && OB.Utilities.getValue(currentValues,'productType') === 'I' || OB.Utilities.getValue(currentValues,'productType') === 'S'); }, "width":1,"overflow":"visible",
>>>>>>> Issues (6029ms) <<<<<<<<<

It looks like the display logic should be changed to:
(@IsSummary@='N' & @ProductType@='I') | @ProductType@='S'
Steps To ReproduceGo to Product Window
Create a new record
Check and uncheck Bill of materials checkbox
Read the server log
Proposed SolutionIt looks like the display logic should be changed to:
(@IsSummary@='N' & @ProductType@='I') | @ProductType@='S'
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0046868)
naiaramartinez (developer)
2012-03-29 11:25

Test Plan:
  Go to Product Window
  Create a new record
  Check and uncheck Bill of materials checkbox
  Read the server log. Now you can see that there is not message related to:
   '>>>>>>> Issues found in javascript <<<<<<<<<'
(0046984)
hgbot (developer)
2012-03-30 14:00

Repository: erp/devel/pi
Changeset: 6aee986e08a4b5f58f06543689532e8d377fec05
Author: Naiara Martinez <naiara.martinez <at> openbravo.com>
Date: Thu Mar 29 11:11:36 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/6aee986e08a4b5f58f06543689532e8d377fec05 [^]

fixed bug 20114 Bill of materials display logic

---
M src-db/database/sourcedata/AD_FIELD.xml
---
(0046985)
vmromanos (manager)
2012-03-30 14:01

code review + testing OK
(0047287)
hudsonbot (developer)
2012-04-02 06:13

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/7814864461ac [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2012-03-26 15:46 vmromanos New Issue
2012-03-26 15:46 vmromanos Assigned To => alostale
2012-03-26 15:46 vmromanos Modules => Core
2012-03-26 15:46 vmromanos Assigned To alostale => vmromanos
2012-03-29 10:51 naiaramartinez Assigned To vmromanos => naiaramartinez
2012-03-29 10:52 naiaramartinez Status new => scheduled
2012-03-29 10:52 naiaramartinez fix_in_branch => pi
2012-03-29 11:25 naiaramartinez Note Added: 0046868
2012-03-30 14:00 hgbot Checkin
2012-03-30 14:00 hgbot Note Added: 0046984
2012-03-30 14:00 hgbot Status scheduled => resolved
2012-03-30 14:00 hgbot Resolution open => fixed
2012-03-30 14:00 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/6aee986e08a4b5f58f06543689532e8d377fec05 [^]
2012-03-30 14:01 vmromanos Note Added: 0046985
2012-03-30 14:01 vmromanos Status resolved => closed
2012-03-30 14:01 vmromanos Fixed in Version => 3.0MP10
2012-04-02 06:13 hudsonbot Checkin
2012-04-02 06:13 hudsonbot Note Added: 0047287


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker