Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056980Retail ModulesRetail APIpublic2024-11-05 11:552024-12-02 11:05
hbrasme 
jgalarza 
normalmajoralways
closedfixed 
5
 
 
approved
Gold
No
0056980: API Product - Error when updating a related product
Following 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
Create 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
         }
      ]
   }
   
]
It would be necessary to be able to update the related products if they already exist.
No tags attached.
depends on backport 0057340RR24Q4 closed jgalarza API Product - Error when updating a related product 
related to defect 0058054 closed Sathishkumar Import Product: relation of related product inversed 
Issue History
2024-11-05 11:55hbrasmeNew Issue
2024-11-05 11:55hbrasmeAssigned To => Retail
2024-11-05 11:55hbrasmeTriggers an Emergency Pack => No
2024-11-05 12:01javietxeOBNetwork customer => Gold
2024-11-05 15:05jorgewederagoAssigned ToRetail => jorgewederago
2024-11-05 15:05jorgewederagoStatusnew => acknowledged
2024-11-06 21:26fofarrilAssigned Tojorgewederago => fofarril
2024-11-06 21:26fofarrilStatusacknowledged => scheduled
2024-11-07 12:53jorgewederagoAssigned Tofofarril => Triage Omni OMS
2024-11-07 12:53jorgewederagoStatusscheduled => feedback
2024-11-07 12:53jorgewederagoStatusfeedback => new
2024-11-11 11:29jonaeAssigned ToTriage Omni OMS => kousalya_r
2024-11-11 11:32jonaeNote Added: 0171754
2024-11-19 11:35jonaeAssigned Tokousalya_r => jgalarza
2024-11-25 14:14hgbotMerge Request Status => open
2024-11-25 14:14hgbotNote Added: 0172549
2024-11-25 19:20fofarrilAssigned Tojgalarza => fofarril
2024-11-25 19:20fofarrilStatusnew => scheduled
2024-11-26 10:44aaroncaleroAssigned Tofofarril => jgalarza
2024-11-26 14:56javietxeIssue Monitored: javietxe
2024-11-30 07:45hgbotMerge Request Statusopen => approved
2024-11-30 07:45hgbotNote Added: 0172796
2024-11-30 07:46jonaeStatusscheduled => resolved
2024-11-30 07:46jonaeResolutionopen => fixed
2024-11-30 07:46jonaeNote Added: 0172797
2024-11-30 07:46jonaeStatusresolved => closed
2024-12-02 10:38jgalarzaStatusclosed => new
2024-12-02 10:38jgalarzaResolutionfixed => open
2024-12-02 10:39jgalarzaStatusnew => scheduled
2024-12-02 11:05jonaeStatusscheduled => resolved
2024-12-02 11:05jonaeResolutionopen => fixed
2024-12-02 11:05jonaeStatusresolved => closed
2025-02-24 17:13aaroncaleroRelationship addedrelated to 0058054

Notes
(0171754)
jonae   
2024-11-11 11:32   
https://openbravo.atlassian.net/browse/RM-19004 [^]
(0172549)
hgbot   
2024-11-25 14:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/395 [^]
(0172796)
hgbot   
2024-11-30 07:45   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/395 [^]
(0172797)
jonae   
2024-11-30 07:46   
https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/c6364e10cb7c49bc8930410bb028095b0c19974a [^]