Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0024996 | Openbravo ERP | Z. Others | public | 2013-10-23 11:41 | 2014-02-12 18:29 |
|
Reporter | VictorVillar | |
Assigned To | shankarb | |
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | 3.0PR14Q2 | Fixed in Version | 3.0PR14Q2 | |
Merge Request Status | |
Review Assigned To | AugustoMauch |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 24163 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0024996: CSV Exportation is not working as expected in Price List based on cost |
Description | CSV Exportation is not working as expected in Price List based on cost.
The Cost field shows in the application decimals regarding the GeneralQty number type in Format.xml |
Steps To Reproduce | As System Admin role,
Go to Currency window,
Select EUR and USD and put the Costing precision = 8
As group admin role,
Go to Price List Schema window
change the base List Price and the Base unit Price = cost for the Price List Schema. --> Margin = 44
Go to Price list window,
Create a new one: - Sales Price List = Yes
- Price List based on cost = Yes
Price List version tab:
Price List Schema = Price List Schema
Click on Create Price List button.
Realise in the Product Price tab is showed the Cost field in grid view, and check that the cost values informed are with 6 decimals according to the GeneralQty number in the Format.xml
Export it to CSV, check that the cost values are exported in the CSV with 2 decimals, it is wrong, it should be with 6 decimals |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | ExportIssue.diff (541) 2014-01-02 04:45 https://issues.openbravo.com/file_download.php?file_id=6598&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2013-10-23 11:41 | VictorVillar | New Issue | |
2013-10-23 11:41 | VictorVillar | Assigned To | => dmiguelez |
2013-10-23 11:41 | VictorVillar | Modules | => Core |
2013-10-23 11:41 | VictorVillar | OBNetwork customer | => Yes |
2013-10-23 11:41 | VictorVillar | Support ticket | => 24163 |
2013-10-23 11:41 | VictorVillar | Resolution time | => 1389049200 |
2013-10-23 11:41 | VictorVillar | Triggers an Emergency Pack | => No |
2013-10-23 11:41 | VictorVillar | Issue Monitored: networkb | |
2013-10-23 11:55 | VictorVillar | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=5140#r5140 |
2013-10-25 09:09 | dmiguelez | Assigned To | dmiguelez => jonalegriaesarte |
2013-11-04 09:54 | jonalegriaesarte | Target Version | 3.0MP30 => 3.0MP31 |
2014-01-02 04:45 | shankarb | Assigned To | jonalegriaesarte => shankarb |
2014-01-02 04:45 | shankarb | File Added: ExportIssue.diff | |
2014-01-02 04:46 | shankarb | Status | new => scheduled |
2014-01-02 04:46 | shankarb | fix_in_branch | => pi |
2014-01-02 12:38 | jonalegriaesarte | Target Version | 3.0MP31 => 3.0MP32 |
2014-01-09 04:57 | shankarb | Issue Monitored: AugustoMauch | |
2014-01-09 04:57 | shankarb | Review Assigned To | => AugustoMauch |
2014-01-09 04:57 | shankarb | fix_in_branch | pi => |
2014-01-09 04:58 | hgbot | Checkin | |
2014-01-09 04:58 | hgbot | Note Added: 0063319 | |
2014-01-09 04:58 | hgbot | Status | scheduled => resolved |
2014-01-09 04:58 | hgbot | Resolution | open => fixed |
2014-01-09 04:58 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/abbf2aa1426e3bac0479f2ec6f82db12872781aa [^] |
2014-01-13 11:06 | VictorVillar | Note Added: 0063382 | |
2014-01-17 15:49 | hudsonbot | Checkin | |
2014-01-17 15:49 | hudsonbot | Note Added: 0063487 | |
2014-01-20 18:44 | AugustoMauch | Note Added: 0063547 | |
2014-01-20 18:44 | AugustoMauch | Status | resolved => new |
2014-01-20 18:44 | AugustoMauch | Resolution | fixed => open |
2014-01-21 09:58 | AugustoMauch | Note Added: 0063562 | |
2014-01-23 06:49 | hgbot | Checkin | |
2014-01-23 06:49 | hgbot | Note Added: 0063631 | |
2014-01-23 06:49 | hgbot | Status | new => resolved |
2014-01-23 06:49 | hgbot | Resolution | open => fixed |
2014-01-23 06:49 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/abbf2aa1426e3bac0479f2ec6f82db12872781aa [^] => http://code.openbravo.com/erp/devel/pi/rev/5cf31fdaa1ef98a78635d746a3f0438bf00f71ed [^] |
2014-01-24 12:03 | AugustoMauch | Note Added: 0063671 | |
2014-01-24 12:03 | AugustoMauch | Status | resolved => closed |
2014-01-24 12:03 | AugustoMauch | Fixed in Version | => 3.0MP32 |
2014-02-12 18:29 | hudsonbot | Checkin | |
2014-02-12 18:29 | hudsonbot | Note Added: 0064102 | |
Notes |
|
(0063319)
|
hgbot
|
2014-01-09 04:58
|
|
Repository: erp/devel/pi
Changeset: abbf2aa1426e3bac0479f2ec6f82db12872781aa
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Thu Jan 09 09:27:10 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/abbf2aa1426e3bac0479f2ec6f82db12872781aa [^]
Fixes Issue 0024996: CSV Exportation is not working as expected in Price List based on cost
The number reference used DecimalUIDefinition.
The format of this type should be generalQuantity instead of euro.
---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
---
|
|
|
|
Verified, it is working fine regarding the case reported. |
|
|
|
|
|
|
I think the change is not proper. With this change, both DecimalUIDefinition and BigDecimalUIDefinition have the same format, and they would be identical. Probably a better option is to just change the reference of the Cost column to General Quantity |
|
|
|
It is not a good idea to change the User Interface definition of the Number reference from 'org.openbravo.client.kernel.reference.NumberUIDefinition$DecimalUIDefinition' to 'org.openbravo.client.kernel.reference.NumberUIDefinition$BigDecimalUIDefinition'. If you do that, the 'Number' reference will be exactly the same as the 'General Quantity' reference, and there will not be any reference that uses the euroedition format. |
|
|
(0063631)
|
hgbot
|
2014-01-23 06:49
|
|
Repository: erp/devel/pi
Changeset: 5cf31fdaa1ef98a78635d746a3f0438bf00f71ed
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Jan 21 14:38:08 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/5cf31fdaa1ef98a78635d746a3f0438bf00f71ed [^]
Fixes Issue 0024996: CSV Exportation is not working as expected in Price List based on cost
Reference has been changed to General Quantity.
---
M src-db/database/sourcedata/AD_COLUMN.xml
---
|
|
|
|
Code reviewed and verified in pi@5cf31fdaa1ef |
|
|
|
|