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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0055222
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APImajorhave not tried2024-04-17 14:302024-04-18 10:37
Reporterazzeddine_meftohView Statuspublic 
Assigned ToRetail 
PrioritynormalResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionmainSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0055222: Price API - importing price for deactivated product

DescriptionWhen importing a price for a deativated product we get the error :
ERROR: duplicate key value violates unique constraint "m_productprice_pricelist_ve_un"
Steps To Reproducedeactivate a product
import a price for this product with the API
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0163352)
adrianromero (manager)
2024-04-18 10:37

This is the expected behaviour when trying to import any Openbravo entity with the same keys as another existing deactivated entity.

Deactivated entities are maintanined in the database for reference and reporting purposes but cannot be used in new processes or selected, etc... and as consequence:

* Deactivated records cannot be updated by the import API and kept deactivated
* Deactivated records cannot be reactivated and updated as a result of an import API request
* Openbravo cannot create a new activated record due the database constraints that can end in an inconsistent database with two records with the same keys, one activated and the other deactivated.

- Issue History
Date Modified Username Field Change
2024-04-17 14:30 azzeddine_meftoh New Issue
2024-04-17 14:30 azzeddine_meftoh Assigned To => Triage Platform Conn
2024-04-17 14:30 azzeddine_meftoh Triggers an Emergency Pack => No
2024-04-17 14:49 victor_perez Severity minor => major
2024-04-18 10:29 jorgewederago Assigned To Triage Platform Conn => Retail
2024-04-18 10:29 jorgewederago Status new => acknowledged
2024-04-18 10:37 adrianromero Note Added: 0163352
2024-04-18 10:37 adrianromero Status acknowledged => closed
2024-04-18 10:37 adrianromero Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker