Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0015594 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] 07. Sales management | minor | always | 2011-01-10 12:14 | 2011-04-05 13:28 | |||
Reporter | maite | View Status | public | |||||
Assigned To | adrianromero | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | pi | Fixed in SCM revision | db632ec7ce27 | |||
Projection | none | ETA | none | Target Version | 2.50MP27 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.50MP25 | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0015594: Not possible to modify available fields of Discount line when order is processed | |||||||
Description | 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. | |||||||
Steps To Reproduce | 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||||||||||||||||
|
![]() |
|
(0034933) hgbot (developer) 2011-03-16 12:34 |
Repository: erp/stable/2.50 Changeset: 03df43a71e8c65e07ecbf46d8d99ade28df1d3a5 Author: Adrián Romero <adrianromero <at> openbravo.com> Date: Wed Mar 16 12:32:39 2011 +0100 URL: http://code.openbravo.com/erp/stable/2.50/rev/03df43a71e8c65e07ecbf46d8d99ade28df1d3a5 [^] Fixes issue 0015594: 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 --- |
(0034971) hgbot (developer) 2011-03-17 09:39 |
Repository: erp/stable/2.50 Changeset: edf90f26beeda45eb7d784e8615fa71fdfd3895d Author: Adrián Romero <adrianromero <at> openbravo.com> Date: Thu Mar 17 09:37:28 2011 +0100 URL: http://code.openbravo.com/erp/stable/2.50/rev/edf90f26beeda45eb7d784e8615fa71fdfd3895d [^] Backed out changeset 03df43a71e8c Issue 15594 --- 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 --- |
(0034983) hgbot (developer) 2011-03-17 11:14 |
Repository: erp/stable/2.50 Changeset: 3d47b2a6d255b3b8a4d41961b437bba23a2c0890 Author: Adrián Romero <adrianromero <at> openbravo.com> Date: Thu Mar 17 11:04:56 2011 +0100 URL: http://code.openbravo.com/erp/stable/2.50/rev/3d47b2a6d255b3b8a4d41961b437bba23a2c0890 [^] Fixes issue 0015594: 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 --- |
(0035132) maite (viewer) 2011-03-22 11:07 |
Reported error is not obtained any more, but when trying to modify 'description' field in discount line I obtain error "Document posted/processed". I should be able to modify description discount line as I am able to modify description in rest of lines |
(0035144) adrianromero (viewer) 2011-03-22 13:24 edited on: 2011-03-22 13:27 |
The issue now is because in this specific configuration currency prices in the database have a precision of 4 decimals and in the Format.xml configuration file prices have a precision of 2 decimals. With this configuration, discount line ammounts have a precision of 4 decimals when generated in the complete order process. But whe trying to save the new description once the order has been completed, the precision used to format prices in the windows is 2 decimals then when saving the new description ammounts are diferent because of the different precisions and an exception is raised because it detects different amounts in a complete order. A way to workaround this is to set the same precision for prices in the currency records and in the "priceEdition" entry in the Format.xml configuration file. |
(0035276) jonalegriaesarte (viewer) 2011-03-28 16:28 |
Verified |
(0035452) hgbot (developer) 2011-04-01 12:32 |
Repository: erp/stable/2.50 Changeset: db632ec7ce27da15965b5df28b26fc8fcd9f0d41 Author: Adrián Romero <adrianromero <at> openbravo.com> Date: Thu Mar 24 18:29:27 2011 +0100 URL: http://code.openbravo.com/erp/stable/2.50/rev/db632ec7ce27da15965b5df28b26fc8fcd9f0d41 [^] Fixes issue 0015594: 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 --- |
(0035602) maite (viewer) 2011-04-05 13:28 |
verified |
![]() |
|||
Date Modified | Username | Field | Change |
2011-01-10 12:14 | maite | New Issue | |
2011-01-10 12:14 | maite | Assigned To | => adrianromero |
2011-01-10 12:14 | maite | Modules | => Core |
2011-01-10 12:14 | maite | OBNetwork customer | => Yes |
2011-03-16 12:29 | adrianromero | Status | new => scheduled |
2011-03-16 12:29 | adrianromero | Type | defect => backport |
2011-03-16 12:29 | adrianromero | Issue cloned | 0016321 |
2011-03-16 12:29 | adrianromero | Relationship added | depends on 0016321 |
2011-03-16 12:34 | hgbot | Checkin | |
2011-03-16 12:34 | hgbot | Note Added: 0034933 | |
2011-03-16 12:34 | hgbot | Status | scheduled => resolved |
2011-03-16 12:34 | hgbot | Resolution | open => fixed |
2011-03-16 12:34 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.50/rev/03df43a71e8c65e07ecbf46d8d99ade28df1d3a5 [^] |
2011-03-17 09:39 | hgbot | Checkin | |
2011-03-17 09:39 | hgbot | Note Added: 0034971 | |
2011-03-17 11:13 | adrianromero | Relationship added | duplicate of 0016070 |
2011-03-17 11:14 | hgbot | Checkin | |
2011-03-17 11:14 | hgbot | Note Added: 0034983 | |
2011-03-17 11:14 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/stable/2.50/rev/03df43a71e8c65e07ecbf46d8d99ade28df1d3a5 [^] => http://code.openbravo.com/erp/stable/2.50/rev/3d47b2a6d255b3b8a4d41961b437bba23a2c0890 [^] |
2011-03-17 11:15 | adrianromero | Relationship replaced | has duplicate 0016070 |
2011-03-22 11:07 | maite | Note Added: 0035132 | |
2011-03-22 11:07 | maite | Status | resolved => new |
2011-03-22 11:07 | maite | Resolution | fixed => open |
2011-03-22 13:24 | adrianromero | Note Added: 0035144 | |
2011-03-22 13:27 | adrianromero | Note Edited: 0035144 | View Revisions |
2011-03-28 16:27 | jonalegriaesarte | Status | new => scheduled |
2011-03-28 16:27 | jonalegriaesarte | fix_in_branch | => pi |
2011-03-28 16:28 | jonalegriaesarte | Status | scheduled => resolved |
2011-03-28 16:28 | jonalegriaesarte | Fixed in Version | => 2.50MP28 |
2011-03-28 16:28 | jonalegriaesarte | Resolution | open => fixed |
2011-03-28 16:28 | jonalegriaesarte | Note Added: 0035276 | |
2011-03-28 16:28 | jonalegriaesarte | Status | resolved => closed |
2011-04-01 12:32 | hgbot | Checkin | |
2011-04-01 12:32 | hgbot | Note Added: 0035452 | |
2011-04-01 12:32 | hgbot | Status | closed => resolved |
2011-04-01 12:32 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/stable/2.50/rev/3d47b2a6d255b3b8a4d41961b437bba23a2c0890 [^] => http://code.openbravo.com/erp/stable/2.50/rev/db632ec7ce27da15965b5df28b26fc8fcd9f0d41 [^] |
2011-04-05 13:28 | maite | Note Added: 0035602 | |
2011-04-05 13:28 | maite | Status | resolved => closed |
2011-04-05 13:28 | maite | Fixed in Version | 2.50MP28 => |
2011-04-15 15:15 | jonalegriaesarte | Relationship added | blocks 0016831 |
2011-04-15 15:41 | dalsasua | Relationship added | related to 0016832 |
2011-04-15 15:42 | dalsasua | Relationship deleted | blocks 0016831 |
Copyright © 2000 - 2009 MantisBT Group |