Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0048098 | Retail Modules | Web POS | public | 2021-11-17 20:26 | 2022-01-03 09:47 |
|
Reporter | dromero | |
Assigned To | ranjith_qualiantech_com | |
Priority | high | Severity | critical | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0048098: Error when importing orders from tpv with attributes |
Description | Is reproduced in livebuilds:
https://livebuilds.openbravo.com/retail_mp_3.0RR21Q4.1/web/org.openbravo.retail.posterminal/?terminal=VBS-1#login [^]
I forgot to comment in the video that it happens with products without stock of the attribute entered and that you have to activate the preference Web POS Enable support for product attributes. |
Steps To Reproduce | Video explaining how to reproduce the error:
https://watch.screencastify.com/v/KpdUH8F5GbGDMk5dzbMF [^]
1.- Check the preference "Web POS Enable support for product attributes" where the field "Value" has to be "Y"
2.- Create an "Attribute Set" with the configuration shown in the video and with an "Attribute" that is of type "Instance Attribute" and has the "Mandatory" checkbox checked.
3.- Go to a product that has not been in stock before and uncheck the "Grouped Product" checkbox.
4.- Go to the Web POS, add the product twice and assign it an attribute
5.- Complete the ticket with above product.
Order is not saved in backoffice.
Eror Occured
org.openbravo.base.exception.OBException: Error in OrderLoader: Error when creating the shipment:
Caused by: org.postgresql.util.PSQLException: ERROR: insert or update on table "m_storage_detail" violates foreign key constraint "m_storage_detail_m_attributese"
Detail: Key (m_attributesetinstance_id)=(D2FD04C1E75C47E4947CD020A2630087) is not present in table "m_attributesetinstance". |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-11-17 20:26 | dromero | New Issue | |
2021-11-17 20:26 | dromero | Assigned To | => Retail |
2021-11-17 20:26 | dromero | Regression date | => 2021-12-01 |
2021-11-17 20:26 | dromero | Triggers an Emergency Pack | => No |
2021-11-17 20:34 | Practics | Issue Monitored: Practics | |
2021-11-25 21:05 | dromero | Note Added: 0133375 | |
2021-12-01 16:46 | egoitz | Regression date | 2021-12-01 => |
2021-12-04 06:49 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-12-06 16:25 | ivazquez | Note Added: 0133505 | |
2021-12-07 12:09 | ranjith_qualiantech_com | Status | new => scheduled |
2021-12-07 12:37 | ranjith_qualiantech_com | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=23387#r23387 |
2021-12-09 08:50 | hgbot | Note Added: 0133536 | |
2021-12-09 11:55 | hgbot | Resolution | open => fixed |
2021-12-09 11:55 | hgbot | Status | scheduled => closed |
2021-12-09 11:55 | hgbot | Fixed in Version | => RR22Q1 |
2021-12-09 11:55 | hgbot | Note Added: 0133557 | |
2021-12-09 11:55 | hgbot | Note Added: 0133558 | |
2021-12-24 08:26 | swathi_kamal | Note Added: 0133936 | |
2021-12-24 08:26 | swathi_kamal | Status | closed => new |
2021-12-24 08:26 | swathi_kamal | Resolution | fixed => open |
2021-12-24 08:26 | swathi_kamal | Fixed in Version | RR22Q1 => |
2022-01-02 07:14 | ranjith_qualiantech_com | Status | new => scheduled |
2022-01-02 18:54 | hgbot | Note Added: 0134089 | |
2022-01-03 09:47 | hgbot | Resolution | open => fixed |
2022-01-03 09:47 | hgbot | Status | scheduled => closed |
2022-01-03 09:47 | hgbot | Note Added: 0134095 | |
2022-01-03 09:47 | hgbot | Note Added: 0134096 | |
Notes |
|
(0133375)
|
dromero
|
2021-11-25 21:05
|
|
|
|
|
Hello Team,
Will you have any news?
Regards,
Ignacio Vazquez |
|
|
(0133536)
|
hgbot
|
2021-12-09 08:50
|
|
|
|
(0133557)
|
hgbot
|
2021-12-09 11:55
|
|
|
|
(0133558)
|
hgbot
|
2021-12-09 11:55
|
|
|
|
|
The error continues to reproduce, the case that it did not recreate the attributetesetinstance and that it would use the one from the order line has been solved.
But the problem that there is is if there has never been stock of that attribute with which the attributesetinstance does not exist and when the order is processed it gives the same error again.
Solved it by adding a flush after creating the attribute. |
|
|
(0134089)
|
hgbot
|
2022-01-02 18:54
|
|
|
|
(0134095)
|
hgbot
|
2022-01-03 09:47
|
|
|
|
(0134096)
|
hgbot
|
2022-01-03 09:47
|
|
|