Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0048616Openbravo ERP02. Master data managementpublic2022-02-17 12:072022-03-03 09:05
sofidossant 
jorge-garcia 
highmajoralways
closedfixed 
5
pi 
PR22Q2 
Core
No
0048616: Creation of daughters of Variants.
There is an error in the creation of variants from the backoffice and it is that it is creating the children from the function of creating variants with the same date as the generic one.

If you create a variant months later than the parent, it doesn't make any sense for it to have the same date.

This is causing errors in data analysis when analyzing volume of new articles, for example.
1- Create variant child from the create variants function
2- Check creation dates (same as the date as the generic)
Add variant.setCreationDate(new Date()) after creating the variant in VariantAutomaticGenerationProcess.java.
No tags attached.
related to defect 0040972 closed collazoandy4 When clicking 'Manage Variant' to create a variant of a product, the new product date is the same as the generic. 
? diff.tar.xz (764) 2022-02-17 12:07
https://issues.openbravo.com/file_download.php?file_id=16637&type=bug
Issue History
2022-02-17 12:07sofidossantNew Issue
2022-02-17 12:07sofidossantAssigned To => Triage Finance
2022-02-17 12:07sofidossantFile Added: diff.tar.xz
2022-02-17 12:07sofidossantModules => Core
2022-02-17 12:07sofidossantTriggers an Emergency Pack => No
2022-02-17 12:24PracticsIssue Monitored: Practics
2022-03-02 13:15aferrazRelationship addedrelated to 0040972
2022-03-02 13:16aferrazProposed Solution updated
2022-03-02 13:16aferrazAssigned ToTriage Omni OMS => jorge-garcia
2022-03-02 13:18aferrazProposed Solution updated
2022-03-02 13:59jorge-garciaStatusnew => scheduled
2022-03-02 14:48hgbotNote Added: 0135388
2022-03-03 09:05hgbotResolutionopen => fixed
2022-03-03 09:05hgbotStatusscheduled => closed
2022-03-03 09:05hgbotNote Added: 0135418
2022-03-03 09:05hgbotFixed in Version => PR22Q2
2022-03-03 09:05hgbotNote Added: 0135419

Notes
(0135388)
hgbot   
2022-03-02 14:48   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/536 [^]
(0135418)
hgbot   
2022-03-03 09:05   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/536 [^]
(0135419)
hgbot   
2022-03-03 09:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: ab3156870880b5fdc3b7f0160ae2dd7b3f518d0e
Author: Jorge GarcĂ­a <jorge.garcia@openbravo.com>
Date: 03-03-2022 08:05:11
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/ab3156870880b5fdc3b7f0160ae2dd7b3f518d0e [^]

Fixed ISSUE-48616: Set current date when creating variants of generic product

---
M src/org/openbravo/materialmgmt/VariantAutomaticGenerationProcess.java
---