Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020861
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 08. Project and service managementcriticalalways2012-06-25 23:052012-06-28 13:35
ReportermalsasuaView Statuspublic 
Assigned Tomirurita 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiondb25f47ad0a4
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned To
Web browserGoogle Chrome
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0020861: error with decimals to run process "create ap expense invoice"

DescriptionIf you have a line in an expense sheet with amount with more of 2 decimals (stdPrecision=2), if you create an invoice from this expense, the invoice is generated, but error is returned when it is processed.
Steps To Reproduce. in F&B:
 . product: Cerveza Ale 0.5L:
  . stocked=N
  . product type: expense type

 . employee: Javier Martin
  . vendor=Y
  . purchase price list: bebidas alegres
  . po payment method: Al contado
  . po payment terms: 30 days
  . po financial account: libro de caja españa - región norte

 . create new project: name: test

 . create new expense sheet:
  . org: F&B Españá
  . employee: javier martin
  . date: 25/06/2012
  . create new line:
   . product: cerveza ale 0.5 L
   . qty: 38.56
   . net unit price: 0.55
   . project: test

 . run process: create AP Expense invoice:
  . employee: javi martin
  . from date - to date: 25-06-2012
  . date invoice: 01-07-2012
  . run
. purchase invoice is generated:
 . process it. error is returned:
Accounting amount differs from lines amount
Proposed SolutionThe invoice is generated with a new record in invoice line accounting dimension (in live, this tab is hidden, but the record has been created in database). The amount in this record is not rounded to strPrecision

Attached a file with proposed solution
TagsNo tags attached.
Attached Filesdiff file icon diffRedondeoFacturaProvenienteHojaGasto.diff [^] (2,989 bytes) 2012-06-27 12:42 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0050193)
hgbot (developer)
2012-06-27 17:08

Repository: erp/devel/pi
Changeset: db25f47ad0a40579de4321ef7a56b6ac74684702
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Wed Jun 27 16:55:42 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/db25f47ad0a40579de4321ef7a56b6ac74684702 [^]

Fixes issue 20861: error with decimals to run process 'create ap expense invoice'

---
M src/org/openbravo/erpCommon/ad_process/ExpenseAPInvoice.java
---
(0050222)
hudsonbot (developer)
2012-06-28 07:59

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c66e853c5cf4 [^]

Maturity status: Test
(0050253)
eduardo_Argal (developer)
2012-06-28 13:35

Tested and working. Now amount is rounded

- Issue History
Date Modified Username Field Change
2012-06-25 23:05 malsasua New Issue
2012-06-25 23:05 malsasua Assigned To => mirurita
2012-06-25 23:05 malsasua Web browser => Google Chrome
2012-06-25 23:05 malsasua Modules => Core
2012-06-27 12:42 malsasua Web browser Google Chrome => Google Chrome
2012-06-27 12:42 malsasua Proposed Solution updated
2012-06-27 12:42 malsasua File Added: diffRedondeoFacturaProvenienteHojaGasto.diff
2012-06-27 17:08 hgbot Checkin
2012-06-27 17:08 hgbot Note Added: 0050193
2012-06-27 17:08 hgbot Status new => resolved
2012-06-27 17:08 hgbot Resolution open => fixed
2012-06-27 17:08 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/db25f47ad0a40579de4321ef7a56b6ac74684702 [^]
2012-06-28 07:59 hudsonbot Checkin
2012-06-28 07:59 hudsonbot Note Added: 0050222
2012-06-28 13:35 eduardo_Argal Note Added: 0050253
2012-06-28 13:35 eduardo_Argal Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker