Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0048166Openbravo ERP02. Master data managementpublic2021-11-26 11:172022-02-07 09:24
william_vermersch 
Triage Platform Base 
highminoralways
closedduplicate 
30Openbravo Appliance 14.04
3.0PR19Q1 
 
Mozilla Firefox
Core
No
0048166: Impossible to add multiple filter in Manage Variant screen (Characteristic Description filter)
Hello,

It seems that in 19Q releases it is impossible to use the Characteristic Description filter fully.

In the ManageVariantDS class (readCrtieria method) :

if (criteria.has("_constructor")
          && "AdvancedCriteria".equals(criteria.getString("_constructor"))
          && criteria.has("criteria")) {
        JSONArray innerCriteriaArray = new JSONArray(criteria.getString("criteria"));
        criteria = innerCriteriaArray.getJSONObject(0);
      }

There is only the first criteria taken into account (AdvancedCriteria).

The problem was reproducible in livebuild in 19Q release. (Not reproducible after 20Q release).

Regards,
William
Go into Product screen.
Create a Generic Product.
Add two characteristics (Color, Size), check off the variant atrribute (Variant = Yes).
Click on Manage Variants button.
Use a filter with Color : Black/White, Size: XL.

When fetching the result one of the two criteria is not used.
No tags attached.
duplicate of defect 0041900 closed AugustoMauch In Product Characteristics, the Manage variants filter, in doesn't filter for more than one characteristics 
png manage_variant_filters.png (208,947) 2021-11-26 11:17
https://issues.openbravo.com/file_download.php?file_id=16402&type=bug
png
Issue History
2021-11-26 11:17william_vermerschNew Issue
2021-11-26 11:17william_vermerschAssigned To => Triage Finance
2021-11-26 11:17william_vermerschFile Added: manage_variant_filters.png
2021-11-26 11:17william_vermerschWeb browser => Mozilla Firefox
2021-11-26 11:17william_vermerschModules => Core
2021-11-26 11:17william_vermerschTriggers an Emergency Pack => No
2021-12-03 10:38mdubreuxNote Added: 0133500
2022-01-11 15:30william_vermerschNote Added: 0134226
2022-01-11 15:33william_vermerschNote Deleted: 0134226
2022-01-11 15:33william_vermerschNote Added: 0134227
2022-01-11 15:34william_vermerschWeb browserMozilla Firefox => Mozilla Firefox
2022-01-11 15:34william_vermerschAssigned ToTriage Finance => Retail
2022-01-24 11:53william_vermerschWeb browserMozilla Firefox => Mozilla Firefox
2022-01-24 11:53william_vermerschPrioritynormal => high
2022-01-24 11:54william_vermerschNote Added: 0134508
2022-01-28 09:24william_vermerschWeb browserMozilla Firefox => Mozilla Firefox
2022-01-28 09:25william_vermerschNote Added: 0134644
2022-02-07 08:12marvintmAssigned ToRetail => Triage Platform Base
2022-02-07 09:24alostaleRelationship addedduplicate of 0041900
2022-02-07 09:24alostaleStatusnew => closed
2022-02-07 09:24alostaleResolutionopen => duplicate

Notes
(0133500)
mdubreux   
2021-12-03 10:38   
Hello,

Could you please provide us some visibility on this topic?
We need to know when this could be corrected.

Best regards,
Matthieu
(0134227)
william_vermersch   
2022-01-11 15:33   
Hello,

Seems like the assignment was wrong.

Can you help us with this subject ?

Regards,
William
(0134508)
william_vermersch   
2022-01-24 11:54   
Priority set to high.

Can you at least tell us if the version will be corrected ?

Regards,
William
(0134644)
william_vermersch   
2022-01-28 09:25   
Adding missing due date.