Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009277Openbravo ERP07. Sales managementpublic2009-06-01 19:272009-07-16 17:55
mirurita 
harikrishnan 
normalminoralways
closedfixed 
20rPath Linux
2.50 
pi 
Core
No
0009277: Is not possible to include the same Product/Product Category in two different External Point of Sales
Two different External Point of Sale can't have the same Product Categories or Products included.

ERROR: duplicate key value violates unique constraint "c_extposcat_prodcategory_un"

ERROR: duplicate key value violates unique constraint "c_extposprod_product_un"
Go to Sales Management || Setup || External Point of Sales
Create the first External POS
- search key: epos1
- name: epos1
- Document type: POS Order
- add a Business Partner
In Product Categories tab add Clothes category and save

Create the second External POS
- search key: epos2
- name: epos2
- Document type: POS Order
- add a Business Partner
In Product Categories tab add Clothes category and save

The same behavior with included Products.
Change the unique constraints
c_extposcat_prodcategory_un UNIQUE (m_product_category_id)
CONSTRAINT c_extposprod_product_un UNIQUE (m_product_id)

including c_externalpos_id field.

No tags attached.
Issue History
2009-06-01 19:27miruritaNew Issue
2009-06-01 19:27miruritaAssigned To => rafaroda
2009-06-05 13:10psarobeStatusnew => scheduled
2009-06-05 13:10psarobefix_in_branch => pi
2009-06-05 15:32rafarodaAssigned Torafaroda => sathiyan
2009-06-05 15:32rafarodafix_in_branchpi =>
2009-06-29 16:50sathiyanAssigned Tosathiyan => harikrishnan
2009-07-02 11:38hgbotCheckin
2009-07-02 11:38hgbotNote Added: 0017755
2009-07-02 11:38hgbotStatusscheduled => resolved
2009-07-02 11:38hgbotResolutionopen => fixed
2009-07-02 11:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/683280592d184ce720bd9d54da6c4ef131c0768b [^]
2009-07-03 11:33sureshbabuStatusresolved => closed
2009-07-03 11:33sureshbabuNote Added: 0017777
2009-07-03 11:33sureshbabuFixed in Version => pi
2009-07-16 17:55anonymoussf_bug_id0 => 2822554

Notes
(0017755)
hgbot   
2009-07-02 11:38   
Repository: erp/devel/pi
Changeset: 683280592d184ce720bd9d54da6c4ef131c0768b
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Thu Jul 02 15:01:57 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/683280592d184ce720bd9d54da6c4ef131c0768b [^]

Fixes Issue 9277: Is not possible to include the same Product/Product Category in two different External Point of Sales

---
M src-db/database/model/tables/C_EXTERNALPOS_CATEGORY.xml
M src-db/database/model/tables/C_EXTERNALPOS_PRODUCT.xml
---
(0017777)
sureshbabu   
2009-07-03 11:33   
Tested working fine