Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011728Openbravo ERP07. Sales managementpublic2009-12-10 16:202010-01-22 17:05
networkb 
rafaroda 
urgentminoralways
closedfixed 
5
2.50MP9 
2.50MP112.50MP11 
Core
No
0011728: Discounts when change a sale order from Quotation to Standar Order
When you complete a Quotation(the sale order is "Under Way"), a discount is applied. If you change the Sale Order from Quotation to Standar order and complete again, the discount is applied again.
-As Openbravo Admin go to Master Data Management || Business Partner
-Select Mcgiver and go to Discount and create a new record.
   -Discount: Discount 15%
   -Set Apply in Order
-Save and go to Sales Management || Transactions || Sales Order
-Create a new record
    -Bussines Partner: McGiver Supplies
    -Transaction Document: Quotation
-Save go to Lines and create a new record (Select a product and unit Price: 100)
-Save and go back to the Header.
-Complete
-Realize that the Summed Line Amount is 85 and the Document Status is Under Way.

-Change the Transaction Document to Standard Order
-Save and complete

-Realize that the Summed Line Amount is 70 now
No tags attached.
Issue History
2009-12-10 16:20networkbNew Issue
2009-12-10 16:20networkbAssigned To => rafaroda
2009-12-30 17:55psarobeStatusnew => scheduled
2009-12-30 17:55psarobefix_in_branch => pi
2010-01-04 09:22rafarodaNote Added: 0023183
2010-01-04 09:22rafarodaPriorityimmediate => urgent
2010-01-04 09:22rafarodafix_in_branchpi =>
2010-01-20 23:18hgbotCheckin
2010-01-20 23:18hgbotNote Added: 0023632
2010-01-20 23:18hgbotStatusscheduled => resolved
2010-01-20 23:18hgbotResolutionopen => fixed
2010-01-20 23:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8c5b57d9a6a476924b14b59cd2f0561d9c31f330 [^]
2010-01-20 23:26rafarodaNote Added: 0023674
2010-01-21 05:56sureshbabuNote Added: 0023687
2010-01-21 05:56sureshbabuStatusresolved => closed
2010-01-21 05:56sureshbabuFixed in Version => 2.50MP11
2010-01-22 00:00anonymoussf_bug_id0 => 2936683
2010-01-22 17:05hudsonbotCheckin
2010-01-22 17:05hudsonbotNote Added: 0023757

Notes
(0023183)
rafaroda   
2010-01-04 09:22   
Changed its Priority to Urgent.
(0023632)
hgbot   
2010-01-20 23:18   
Repository: erp/devel/pi
Changeset: 8c5b57d9a6a476924b14b59cd2f0561d9c31f330
Author: Rafa Roda Palacios <rafael.roda <at> openbravo.com>
Date: Wed Jan 20 04:08:16 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/8c5b57d9a6a476924b14b59cd2f0561d9c31f330 [^]

Fixes issue 11728 Discounts are now cleared and re-calculated in Order completion.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0023674)
rafaroda   
2010-01-20 23:26   
Steps to test the fix:

1) As Openbravo Admin go to Master Data Management || Business Partner

2) Select Mcgiver and go to Discount tab and create a new record.
* Discount: Discount 15%
* Set Apply in Order

3) Save and go to Sales Management || Transactions || Sales Order

4) Create a new record
* Business Partner: McGiver Supplies
* Transaction Document: Quotation

5) Save go to Lines and create a new record (Select a product and unit Price: 100)

6) Save and go back to the Header and click on Complete button.

7) Check that:
* Summed Line Amount is 85 (100 -100*0.15)
* Document Status is Under Way
* You find the Discount 15% in Discounts tab.

8) Change the Transaction Document to Standard Order

9) Save and click on Complete button.

7) Check that:
* Summed Line Amount is 85 (100 -100*0.15)
* Document Status is Complete
* You find the Discount 15% in Discounts tab.
(0023687)
sureshbabu   
2010-01-21 05:56   
tested working fine
(0023757)
hudsonbot   
2010-01-22 17:05   
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/8c5b57d9a6a4 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/ba83bb4d9240 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15962.obx [^]