Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012805Openbravo ERP07. Sales managementpublic2010-03-25 13:392010-06-08 14:13
sureshbabu 
sivaraman 
highmajoralways
closedfixed 
30
main 
2.50MP17 
Core
No
0012805: Inactive Discount still apples to the sales order
I created a discount and attached to a business partner, then i move back to Discount tab and i deactivate that Discount.

When i created a sales order for the respective sales order, still the deactivated discount applies to the Sales order.
1) To Crete a product name "Discount 10%"

Navigate to Master Data Management || Product || Product window and click and enter Name & Search key as "Discount 10%" and click save.

2) To create Discount name "Discount 10% applies to BP:Red bunny"

Navigate to Master Data Management || Business Partner Setup || Discount || Discount and click New t
Then enter the below details
Name: Discount 10% applies to BP:Red Bunny
Product: Discount 10%
Discount: 10% and click save

3) Assigning the "Discount 10%" to BP:Red bunny

Navigate to Master Data Management || Business Partner || Business Partner and select the BP: Red Bunny
Then select the "Discount" sub tab
Click new and enter the below details
Discount: Discount 10% applies to BP:Red Bunny
And check all the below check boxes
Apply in order: Check
Customer & vendor: Check

5) Deactivate the Discount
Navigate to Master Data Management || Business Partner Setup || Discount || Discount
And select the above created Discount: Discount 10% applies to BP:Red Bunny
And un check the "Active" checkbox and click save

4) Create a sales order for Red bunny
Create and complete a sales order for the above business partner with below details
BP: Red bunny, Product: Hammer, qty: 1
then click complete button

Expected result: Verify 10% discount Should not apply to the order after the order is completed

Actual result: Discount is wrongly applies to the order.
No tags attached.
jpg Inactive Discount, still attachs to the sales order.JPG (174,207) 2010-03-25 13:39
https://issues.openbravo.com/file_download.php?file_id=2382&type=bug
jpg
Issue History
2010-03-25 13:39sureshbabuNew Issue
2010-03-25 13:39sureshbabuAssigned To => adrianromero
2010-03-25 13:39sureshbabuFile Added: Inactive Discount, still attachs to the sales order.JPG
2010-03-29 22:32psarobePrioritynormal => high
2010-03-29 22:32psarobeSeverityminor => major
2010-03-29 22:32psarobeStatusnew => scheduled
2010-03-29 22:32psarobeTarget Version => 2.50MP15
2010-04-23 12:18sivaramanAssigned Toadrianromero => sivaraman
2010-04-23 12:24hgbotCheckin
2010-04-23 12:24hgbotNote Added: 0026611
2010-04-23 12:24hgbotStatusscheduled => resolved
2010-04-23 12:24hgbotResolutionopen => fixed
2010-04-23 12:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/aeacb7e398a6f8bc398be097be998c21b9330cb9 [^]
2010-04-23 12:30sivaramanNote Added: 0026613
2010-04-26 13:36sureshbabuNote Added: 0026678
2010-04-26 13:36sureshbabuStatusresolved => closed
2010-04-27 00:00anonymoussf_bug_id0 => 2992604
2010-05-14 15:27hudsonbotCheckin
2010-05-14 15:27hudsonbotNote Added: 0027280
2010-05-18 12:12gorka_gilTarget Version2.50MP15 => 2.50MP17
2010-06-04 14:45hgbotCheckin
2010-06-04 14:45hgbotNote Added: 0027973
2010-06-04 14:45hgbotStatusclosed => resolved
2010-06-04 14:45hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/aeacb7e398a6f8bc398be097be998c21b9330cb9 [^] => http://code.openbravo.com/erp/devel/pi/rev/7f5988a1f872853a39aa7d4006838e27db54aba5 [^]
2010-06-07 21:21hudsonbotCheckin
2010-06-07 21:21hudsonbotNote Added: 0028095
2010-06-07 23:43hudsonbotCheckin
2010-06-07 23:43hudsonbotNote Added: 0028137
2010-06-08 14:13sureshbabuNote Added: 0028185
2010-06-08 14:13sureshbabuStatusresolved => closed

Notes
(0026611)
hgbot   
2010-04-23 12:24   
Repository: erp/devel/pi
Changeset: aeacb7e398a6f8bc398be097be998c21b9330cb9
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Fri Apr 23 15:53:55 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/aeacb7e398a6f8bc398be097be998c21b9330cb9 [^]

Fixes issue 12805: Inactive Discount still apples to the sales order

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0026613)
sivaraman   
2010-04-23 12:30   
Steps to test: Kindly follow all the steps as specified in 'Steps To Reproduce' section.
(0026678)
sureshbabu   
2010-04-26 13:36   
Tested working fine, but a inactive discount is added in the Discounts tab which i will raise it as a new issue.
(0027280)
hudsonbot   
2010-05-14 15:27   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/aeacb7e398a6 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/36f76c8d7193 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17198.obx [^]
(0027973)
hgbot   
2010-06-04 14:45   
Repository: erp/devel/pi
Changeset: 7f5988a1f872853a39aa7d4006838e27db54aba5
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Fri Apr 23 15:53:55 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/7f5988a1f872853a39aa7d4006838e27db54aba5 [^]

Fixes issue 12805: Inactive Discount still apples to the sales order

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0028095)
hudsonbot   
2010-06-07 21:21   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/7f5988a1f872 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/8b43a1f2fff4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17563.obx [^]
(0028137)
hudsonbot   
2010-06-07 23:43   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/7f5988a1f872 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/8b43a1f2fff4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17563.obx [^]
(0028185)
sureshbabu   
2010-06-08 14:13   
verified..in live qa pi oracle build