Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0022694 | Openbravo ERP | 09. Financial management | public | 2012-12-28 09:38 | 2013-03-14 11:50 | |||||||
| Reporter | malsasua | |||||||||||
| Assigned To | naiaramartinez | |||||||||||
| Priority | high | Severity | minor | Reproducibility | always | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | pramakrishnan | |||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | Google Chrome | |||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0022694: wrong amount with accruals & deferrals post invoice [oracle] | |||||||||||
| Description | In oracle, the amount calculate when you post an invoice with deferred revenue is wrong. | |||||||||||
| Steps To Reproduce | F&B . create new sales invoice . create new line: . product: Cerveza Ale 0.5 L . invoiced qty: 1 . net unit price & list price: 350 . deferred revenue: selected . revenue plan type: monthly . period number: 12 . starting period: Nov-12 process and post The accounting generated is: the amount of entries to deferred account is 29.00 and it should be 29.17 | |||||||||||
| Proposed Solution | change in method calculateAccDefPlan of file DocInvoice.java from BigDecimal periodAmount = amount.divide(new BigDecimal(periodNumber), BigDecimal.ROUND_HALF_UP); to int stdPrecision = OBDal.getInstance().get(Currency.class, this.C_Currency_ID) .getStandardPrecision().intValue(); BigDecimal periodAmount = amount.divide(new BigDecimal(periodNumber), new MathContext(32, RoundingMode.HALF_UP)).setScale(stdPrecision, BigDecimal.ROUND_HALF_UP); | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2012-12-28 09:38 | malsasua | New Issue | ||||||||||
| 2012-12-28 09:38 | malsasua | Assigned To | => dmiguelez | |||||||||
| 2012-12-28 09:38 | malsasua | Web browser | => Google Chrome | |||||||||
| 2012-12-28 09:38 | malsasua | Modules | => Core | |||||||||
| 2012-12-28 09:38 | malsasua | OBNetwork customer | => No | |||||||||
| 2012-12-28 09:38 | malsasua | Triggers an Emergency Pack | => No | |||||||||
| 2012-12-28 10:26 | malsasua | Web browser | Google Chrome => Google Chrome | |||||||||
| 2012-12-28 10:26 | malsasua | Proposed Solution updated | ||||||||||
| 2013-01-11 13:51 | naiaramartinez | Assigned To | dmiguelez => naiaramartinez | |||||||||
| 2013-01-11 13:51 | naiaramartinez | Status | new => scheduled | |||||||||
| 2013-01-11 13:51 | naiaramartinez | fix_in_branch | => pi | |||||||||
| 2013-01-14 11:13 | naiaramartinez | Note Added: 0055501 | ||||||||||
| 2013-03-14 10:27 | hgbot | Checkin | ||||||||||
| 2013-03-14 10:27 | hgbot | Note Added: 0057243 | ||||||||||
| 2013-03-14 10:27 | hgbot | Status | scheduled => resolved | |||||||||
| 2013-03-14 10:27 | hgbot | Resolution | open => fixed | |||||||||
| 2013-03-14 10:27 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/c305b1980e666b90a4aa386a1db9630f937aec11 [^] | |||||||||
| 2013-03-14 11:50 | pramakrishnan | Review Assigned To | => pramakrishnan | |||||||||
| 2013-03-14 11:50 | pramakrishnan | Note Added: 0057251 | ||||||||||
| 2013-03-14 11:50 | pramakrishnan | Status | resolved => closed | |||||||||
| 2013-03-18 12:20 | naiaramartinez | Relationship added | related to 0023327 | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||