Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016321Openbravo ERP07. Sales managementpublic2011-03-16 12:292011-04-06 00:00
adrianromero 
adrianromero 
highminoralways
closedfixed 
5
pi 
 
Core
No
0016321: Not possible to modify available fields of Discount line when order is processed
When creating an order you can add a Discount in Discount tab. Then you process the order and new line with this discount is added in the order. If you try to modify available field in this line you obtain error message as Business Partner and Partner Address fields are not filled when creating Discount line.
1. Sales Management || Transactions || Sales Order || Header : Create Sales Order Header
2. Sales Management || Transactions || Sales Order || Header >> Lines : Add one Order line with Line Amount <> 0
3. Sales Management || Transactions || Sales Order || Header >> Discounts: Add one line in Discount Tab with a discount with discount percent <> 0
4. Complete the Sales Order
5. Go to the new created line corresponding to the discount
6. Update Description field
7. Try to save
No tags attached.
related to defect 00168312.50MP29 closed dalsasua A trigger condition in c_orderline has been added and can cause problems in special conditions 
blocks backport 00155942.50MP27 closed adrianromero Not possible to modify available fields of Discount line when order is processed 
Issue History
2011-03-16 12:29adrianromeroNew Issue
2011-03-16 12:29adrianromeroAssigned To => adrianromero
2011-03-16 12:29adrianromeroModules => Core
2011-03-16 12:29adrianromeroIssue generated from0015594
2011-03-16 12:29adrianromeroRelationship addedblocks 0015594
2011-03-16 12:30adrianromeroSeveritymajor => minor
2011-03-22 11:20hgbotCheckin
2011-03-22 11:20hgbotNote Added: 0035133
2011-03-22 11:20hgbotStatusnew => resolved
2011-03-22 11:20hgbotResolutionopen => fixed
2011-03-22 11:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/493535b2d705c2a33cc6a90ed1595090e3ae71f7 [^]
2011-03-24 18:33hgbotCheckin
2011-03-24 18:33hgbotNote Added: 0035220
2011-03-24 18:33hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/493535b2d705c2a33cc6a90ed1595090e3ae71f7 [^] => http://code.openbravo.com/erp/devel/pi/rev/1f543286dd0cda44d33813a5abee9caf0a45bf4a [^]
2011-04-05 13:38maiteNote Added: 0035603
2011-04-05 13:38maiteStatusresolved => closed
2011-04-06 00:00anonymoussf_bug_id0 => 3276663
2011-04-15 15:43dalsasuaRelationship addedrelated to 0016831

Notes
(0035133)
hgbot   
2011-03-22 11:20   
Repository: erp/devel/pi
Changeset: 493535b2d705c2a33cc6a90ed1595090e3ae71f7
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Wed Mar 16 12:37:25 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/493535b2d705c2a33cc6a90ed1595090e3ae71f7 [^]

Fixes issue 0016321: Not possible to modify available fields of Discount line when order is processed
It has been hidden the fields Business Partner and Partner Address for lines that are discounts. It has been removed the mandatory flag for Partner address and it has been added this removed logic to the trigger. Now Partner Address is mandatory only for lines that are not discounts.

---
M src-db/database/model/triggers/C_ORDLINE_CHK_RESTRICTIONS_TRG.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0035220)
hgbot   
2011-03-24 18:33   
Repository: erp/devel/pi
Changeset: 1f543286dd0cda44d33813a5abee9caf0a45bf4a
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Mar 24 18:32:06 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/1f543286dd0cda44d33813a5abee9caf0a45bf4a [^]

Fixes issue 0016321: Not possible to modify available fields of Discount line when order is processed
It has been modified the precision of prices to 2 to be consistent with the precision used for prices in the configuration file Formats.xml

---
M src-db/database/sourcedata/referencedData/C_CURRENCY.xml
---
(0035603)
maite   
2011-04-05 13:38   
verified