Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027862Openbravo ERP02. Master data managementpublic2014-10-14 13:102018-01-18 11:51
lorenzofidalgo 
dmiguelez 
normalmajoralways
closedfixed 
5
 
3.0PR18Q2 
dmiguelez
Google Chrome
Core
No
0027862: Trying to separate discounts using different organizations that are not in the same branch DOES NOT separate these discounts. RR
This problem has been found in RR14Q4.
Trying to separate discounts using different organizations that are not in the same branch DOES NOT separate these discounts. (Using "Discounts and Promotions" window).
All these discounts appear for all the users when they should be separated.
LogIn to RR14Q4 ERP as Openbravo/openbravo.
Using the default role, go to "Discounts and Promotions" window.
--
Create a new record and set the following data:
Organization: Vall Blanca Store
Discount/Promotion Type *: Fixed Percentage Discount
Name: Test 1%
Printed Name: Test 1%
Starting date: 01-01-2013
Included Products: Only those defined
Discount: 1.
Save.
--
Go to Products tab.
Create new record.
Product: Alpine poles
Active: Enabled.
Save.
--
Then, let's create a second record:
Go to "Discounts and Promotions" window.
--
Create a new record and set the following data:
Organization: Central Mountains Store
Discount/Promotion Type *: Fixed Percentage Discount
Name: Test 2%
Printed Name: Test 2%
Starting date: 01-01-2013
Included Products: Only those defined
Discount: 2.
Save.
--
Go to Products tab.
Create new record.
Product: Alpine poles
Active: Enabled.
Save.

Then go to POS and login as centralmountains/openbravo.
Go to Seach then write "alpine" and click "Alpine Poles". You will see that Alpine Poles product has "Test 1%" and "Test 2%" applied. This should not happend because centralmountain's organization is "Central Mountains Store" and "Vall Blanca Store" is in other branch.
No tags attached.
blocks defect 0037640 closed AtulOpenbravo Trying to separate discounts using different organizations that are not in the same branch DOES NOT separate these discounts 
png Discounts.png (284,802) 2014-10-14 13:10
https://issues.openbravo.com/file_download.php?file_id=7360&type=bug
Issue History
2014-10-14 13:10lorenzofidalgoNew Issue
2014-10-14 13:10lorenzofidalgoAssigned To => dmiguelez
2014-10-14 13:10lorenzofidalgoFile Added: Discounts.png
2014-10-14 13:10lorenzofidalgoWeb browser => Google Chrome
2014-10-14 13:10lorenzofidalgoModules => Core
2014-10-14 13:10lorenzofidalgoTriggers an Emergency Pack => No
2014-11-03 11:58lorenzofidalgoNote Added: 0071347
2018-01-12 13:12martinsdanFile Added: patch27862.patch
2018-01-12 13:13martinsdanNote Added: 0101679
2018-01-13 09:19martinsdanNote Edited: 0101679bug_revision_view_page.php?bugnote_id=0101679#r16531
2018-01-13 09:28martinsdanIssue Monitored: martinsdan
2018-01-15 17:29samuel_nicuesaRelationship addedblocks 0037640
2018-01-15 17:55samuel_nicuesaFile Deleted: patch27862.patch
2018-01-15 17:56samuel_nicuesaNote Deleted: 0101679
2018-01-18 11:49dmiguelezStatusnew => scheduled
2018-01-18 11:50dmiguelezNote Added: 0101770
2018-01-18 11:50dmiguelezStatusscheduled => resolved
2018-01-18 11:50dmiguelezFixed in Version => 3.0PR18Q2
2018-01-18 11:50dmiguelezFixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/7f73f128fec8ab03189bcdda3d1392c0ee152370 [^]
2018-01-18 11:50dmiguelezResolutionopen => fixed
2018-01-18 11:51dmiguelezReview Assigned To => dmiguelez
2018-01-18 11:51dmiguelezNote Added: 0101771
2018-01-18 11:51dmiguelezStatusresolved => closed

Notes
(0071347)
lorenzofidalgo   
2014-11-03 11:58   
It seems that Organizations tree does not matter in discounts topic but what discounts affects to is based only in "Discounts and promotions" window - "Organization" tab.
It is strange that Organizations tree is ignored for this performance.
(0101770)
dmiguelez   
2018-01-18 11:50   
Resolved by commit: https://code.openbravo.com/erp/devel/pi/rev/7f73f128fec8ab03189bcdda3d1392c0ee152370 [^]
(0101771)
dmiguelez   
2018-01-18 11:51   
Code Review + Testing Ok