Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012487 | Openbravo ERP | 04. Warehouse management | public | 2010-02-26 14:21 | 2010-04-16 00:00 |
Reporter | networkb | ||||
Assigned To | gorkaion | ||||
Priority | immediate | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | 2.50MP11 | ||||
Target Version | 2.50MP14 | Fixed in Version | |||
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 | 0012487: m_generate_average_costs doesn't round to Cost Precision | ||||
Description | In an application with: * Format.xml showing 5 decimals * Currency precisions set to: StandardPrecision=2; CostPrecision=3; PricePrecision=4. * Currency Conversion from EUR to CUP and CUP to EUR * PriceList with currency=CUP and any price for a certain product with 4 decimals If you have a Goods Receipt and its associated Purchase Invoice, and you run "Generate Average cost" process, cost and price values are calculated using 2 decimals (StdPrecision) instead of 3 (CostPrecision). The problem is function C_Currency_Convert (which is called by M_Generate_Average_Costs) calls function C_Currency_Round with last parameter 'p_costing' always set to NULL. Due to that, C_Currency_Round takes StandardPrecision instead of CostPrecision. | ||||
Steps To Reproduce | 1. Modify Format.xml to set euroRelation,euroEdition,priceRelation,priceEdition fields with 5 decimals. 2. Compile application: ant compile.development -Dtab=xxx 3. Logged as System Administrator, Go to General Setup || Application || Currency and set EUR to Standard Precision=2 Price Precision=4 Cost Precision=3 4. General Setup || Application || Conversion Rates: EUR - CUP Validfrom= 01-01-2006 validto=31-12-2006 Multiply=2 CUP - EUR Validfrom= 01-01-2006 validto=31-12-2006 Multiply=0.5 5. Master Data Management || Pricing || Price List: create price list in CUP setting; Price list version valid from 01-01-2006; Product Price for Hammer product as 1.12345 6. Procurement Management || Transactions || Goods Receipt: date= 03-05-2006 partner=mcgiver product=hammer qty=1 complete 7. Procurement Management || Transactions || Purchase Invoice: date=03-05-2006 partner=mcgiver pricelist=cup create lines from good receipt already created go to line and ensure that price=1.12345 complete 8. Warehouse Management and run "Generate Average Cost" process. 9. Master Data Management || Product || Product >> Costing : check that price is 0.56 instead of 0.562 (as it should be taken 3 decimals instead of 2) | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2010-02-26 14:21 | networkb | New Issue | |||
2010-02-26 14:21 | networkb | Assigned To | => adrianromero | ||
2010-02-26 14:21 | networkb | OBNetwork customer | => Yes | ||
2010-02-26 16:26 | networkb | Assigned To | adrianromero => dalsasua | ||
2010-02-26 16:26 | networkb | Priority | urgent => immediate | ||
2010-02-26 16:46 | dalsasua | Assigned To | dalsasua => gorkaion | ||
2010-02-26 18:57 | hgbot | Checkin | |||
2010-02-26 18:57 | hgbot | Note Added: 0024879 | |||
2010-02-26 18:57 | hgbot | Status | new => resolved | ||
2010-02-26 18:57 | hgbot | Resolution | open => fixed | ||
2010-02-26 18:57 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f718ec3e327c7548843652384ea64e2b9dcbab61 [^] | ||
2010-03-08 16:05 | jpabloae | Target Version | 2.50MP13 => 2.50MP14 | ||
2010-03-12 22:40 | hudsonbot | Checkin | |||
2010-03-12 22:40 | hudsonbot | Note Added: 0025356 | |||
2010-04-15 13:52 | sureshbabu | Note Added: 0026258 | |||
2010-04-15 13:52 | sureshbabu | Status | resolved => closed | ||
2010-04-16 00:00 | anonymous | sf_bug_id | 0 => 2987959 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|