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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056980
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Retail APImajoralways2024-11-05 11:552024-12-02 11:05
ReporterhbrasmeView Statuspublic 
Assigned Tojgalarza 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0056980: API Product - Error when updating a related product

DescriptionFollowing the implementation of contributions, management is carried out through the related product and the multiplier field.

However, this field must be able to be updated when the contribution is revised


Currently when I want to update a multiplier I get the error message below:

ERROR: duplicate key value violates unique constraint "m_product_service_prod"
Detail: Key (m_product_id, m_related_product_id)=(358807CC49444D5DB82C0FD66AE7F678, 7A763395EA494A13B0D5FF4D920B48DF) already exists
Steps To ReproduceCreate a related product to a contribution like that :

[
   {
      "client":"TERRENA",
      "organization":"*",
      "searchKey":"Contribution RPD",
      "relatedProducts":[{
         "product":"1200900",
         "multiplicator":1.14,
         "active":true
         }
      ]
   }
   
]


Try to change the multiplicator field (Put 1.25 instead of 1.14) :

[
   {
      "client":"TERRENA",
      "organization":"*",
      "searchKey":"Contribution RPD",
      "relatedProducts":[{
         "product":"1200900",
         "multiplicator":1.25,
         "active":true
         }
      ]
   }
   
]
Proposed SolutionIt would be necessary to be able to update the related products if they already exist.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0057340RR24Q4 closedjgalarza API Product - Error when updating a related product 

-  Notes
(0171754)
jonae (developer)
2024-11-11 11:32

https://openbravo.atlassian.net/browse/RM-19004 [^]
(0172549)
hgbot (developer)
2024-11-25 14:14

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/395 [^]
(0172796)
hgbot (developer)
2024-11-30 07:45

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/395 [^]
(0172797)
jonae (developer)
2024-11-30 07:46

https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/c6364e10cb7c49bc8930410bb028095b0c19974a [^]

- Issue History
Date Modified Username Field Change
2024-11-05 11:55 hbrasme New Issue
2024-11-05 11:55 hbrasme Assigned To => Retail
2024-11-05 11:55 hbrasme Triggers an Emergency Pack => No
2024-11-05 15:05 jorgewederago Assigned To Retail => jorgewederago
2024-11-05 15:05 jorgewederago Status new => acknowledged
2024-11-06 21:26 fofarril Assigned To jorgewederago => fofarril
2024-11-06 21:26 fofarril Status acknowledged => scheduled
2024-11-07 12:53 jorgewederago Assigned To fofarril => Triage Omni OMS
2024-11-07 12:53 jorgewederago Status scheduled => feedback
2024-11-07 12:53 jorgewederago Status feedback => new
2024-11-11 11:29 jonae Assigned To Triage Omni OMS => kousalya_r
2024-11-11 11:32 jonae Note Added: 0171754
2024-11-19 11:35 jonae Assigned To kousalya_r => jgalarza
2024-11-25 14:14 hgbot Note Added: 0172549
2024-11-25 19:20 fofarril Assigned To jgalarza => fofarril
2024-11-25 19:20 fofarril Status new => scheduled
2024-11-26 10:44 aaroncalero Assigned To fofarril => jgalarza
2024-11-26 14:56 javietxe Issue Monitored: javietxe
2024-11-30 07:45 hgbot Note Added: 0172796
2024-11-30 07:46 jonae Status scheduled => resolved
2024-11-30 07:46 jonae Resolution open => fixed
2024-11-30 07:46 jonae Note Added: 0172797
2024-11-30 07:46 jonae Status resolved => closed
2024-12-02 10:38 jgalarza Status closed => new
2024-12-02 10:38 jgalarza Resolution fixed => open
2024-12-02 10:39 jgalarza Status new => scheduled
2024-12-02 11:05 jonae Status scheduled => resolved
2024-12-02 11:05 jonae Resolution open => fixed
2024-12-02 11:05 jonae Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker