Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0042429 | Openbravo ERP | 02. Master data management | public | 2019-11-28 10:20 | 2019-12-20 09:11 |
|
Reporter | maite | |
Assigned To | alostale | |
Priority | urgent | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR20Q1 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 13259 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0042429: Record is added in Organization tab in an Inactive Discounts and Promotion record, but it is lost when refreshing window |
Description | Weird behaviour found in Discounts and Promotions window: in case of having an Inactive Discounts and Promotions record user will be able to add new data in Organization tab. But when refreshing the tab the data will be removed from inactive discount and will be added to another active discount |
Steps To Reproduce | 1. Access Discounts and Promotions window, create new record named "first discount" with any valid date and
2. Create another record named "second discount" with any valid date and set it as INACTIVE
3. Go to Organization tab of this "second discount" and create new record, set "F&B España, S.A" organization and save
4. Refresh the Organization tab and realize that record has been removed
5. Go to "first discount" and verify that "F&B España, S.A" has been added to its Organization tab |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0042614 | 3.0PR19Q4.1 | closed | alostale | Record is added in Organization tab in an Inactive Discounts and Promotion record, but it is lost when refreshing window | depends on | backport | 0042615 | 3.0PR19Q3.3 | closed | alostale | Record is added in Organization tab in an Inactive Discounts and Promotion record, but it is lost when refreshing window |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2019-11-28 10:20 | maite | New Issue | |
2019-11-28 10:20 | maite | Assigned To | => Triage Finance |
2019-11-28 10:20 | maite | OBNetwork customer | => OBPS |
2019-11-28 10:20 | maite | Modules | => Core |
2019-11-28 10:20 | maite | Support ticket | => 13259 |
2019-11-28 10:20 | maite | Resolution time | => 1576710000 |
2019-11-28 10:20 | maite | Triggers an Emergency Pack | => No |
2019-11-28 10:20 | maite | Issue Monitored: networkb | |
2019-11-28 10:26 | Practics | Issue Monitored: Practics | |
2019-11-28 12:15 | aferraz | Assigned To | Triage Finance => collazoandy4 |
2019-12-02 09:58 | aferraz | Assigned To | collazoandy4 => platform |
2019-12-04 16:04 | alostale | Assigned To | platform => alostale |
2019-12-09 11:19 | alostale | Review Assigned To | => caristu |
2019-12-09 12:07 | hgbot | Checkin | |
2019-12-09 12:07 | hgbot | Note Added: 0116147 | |
2019-12-09 12:07 | hgbot | Status | new => resolved |
2019-12-09 12:07 | hgbot | Resolution | open => fixed |
2019-12-09 12:07 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/e8bc37990836742d002f7f70bdad65bbaaeffa1a [^] |
2019-12-09 12:07 | hgbot | Checkin | |
2019-12-09 12:07 | hgbot | Note Added: 0116148 | |
2019-12-09 12:12 | caristu | Note Added: 0116149 | |
2019-12-09 12:12 | caristu | Status | resolved => closed |
2019-12-09 12:12 | caristu | Fixed in Version | => 3.0PR20Q1 |
2019-12-20 08:55 | alostale | Status | closed => new |
2019-12-20 08:55 | alostale | Resolution | fixed => open |
2019-12-20 08:55 | alostale | Fixed in Version | 3.0PR20Q1 => |
2019-12-20 08:55 | alostale | Status | new => scheduled |
2019-12-20 08:56 | alostale | Status | scheduled => resolved |
2019-12-20 08:56 | alostale | Fixed in Version | => 3.0PR20Q1 |
2019-12-20 08:56 | alostale | Resolution | open => fixed |
2019-12-20 08:56 | alostale | Status | resolved => closed |
2019-12-20 09:11 | alostale | Severity | major => critical |
Notes |
|
(0116147)
|
hgbot
|
2019-12-09 12:07
|
|
Repository: erp/devel/pi
Changeset: e8bc37990836742d002f7f70bdad65bbaaeffa1a
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Dec 04 16:04:05 2019 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e8bc37990836742d002f7f70bdad65bbaaeffa1a [^]
fixed BUG-42429: Discount Organization can add rows to incorrect header
If parent Discount header is inactive, when adding rows to Organization tab,
they were added to the first active Discount instead of to the proper parent.
This was caused because M_Offer_Organization.AD_Org_ID column is used to store
the organization the discount is applicable for instead of just row's organization.
AD_Org columns have an special treatment, when they are changed, a
virtual callout is executed to refresh all combos. Mandatory combos
take the first available value in case their default is not available,
which is the case if it is inactive. As M_Offer_ID column had a
TableDir reference, it was treated as a combo, if its parent was
inactive, first active record was taken in place.
A proper solution would be not to use AD_Org_ID column to store the
actual value but to use instead a new column. This change would be
much more aggressive being an API change that would require of
updating existing data. That's why, the problem has been fixed by
replaciing TableDir reference with Search without selector, in this
way FK reltionship is preserved, but only the value is used in UI
instead of creating a combo.
---
M src-db/database/sourcedata/AD_COLUMN.xml
---
|
|
|
(0116148)
|
hgbot
|
2019-12-09 12:07
|
|
Repository: erp/devel/pi
Changeset: 580b8b2924336723d9eedc88b86289d4d6732388
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Dec 04 16:14:22 2019 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/580b8b2924336723d9eedc88b86289d4d6732388 [^]
related to BUG-42429: minor UI adjustments
For Discount > Order tab, Discount field:
- Do not show it in grid as it's the link to the parent
- Make it readonly
---
M src-db/database/sourcedata/AD_FIELD.xml
---
|
|
|
|
|