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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0021820
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 09. Financial managementminoralways2012-10-01 18:212012-12-04 17:10
ReporterVictorVillarView Statuspublic 
Assigned ToioritzCia 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionacd485beec84
ProjectionnoneETAnoneTarget Version3.0MP18
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned ToVictorVillar
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0021820: Wrong calculation of a journal entry under some circumstancies

DescriptionWrong calculation of a journal entry under some circumstancies
Steps To ReproduceAs group admin role,

Go to financial account:
  Create a new financial account:
      Org: España
      Name: Cuenta en dolares para España
  Go to Payment Method:
    Create a new register:
       Payment method: Transferencia
       Allow payment out and payment in and Receive/make payments in multiple Currencies flag = Yes
      Upon receipt Use= In transit payment Account
      Upon payment Use= In transit payment Account
  Go to Accounting Configuration:
      Payment In section:
    In Transit Payment IN Account: whatever
      Payment Out section:
      In Transit Payment OUT Account: whatever
Go to business Partner window,
   Select Bebidas Alegres
      Go to Vendor/Creditor tab
          Purchase Pricelist: Tarifa bebidas alegres
          PO Payment Method: Transferencia
          PO Payment Terms: 30 days
          PO Financial Account: Cuenta en dolares para España
Go to Price list window:
   select Tarifa de bebidas alegres
          currency: USD
Go to purchase order window
   create a new window:
       Org: España
       BP: Bebidas alegres
       Price list: Tarifa bebidas alegres
 go to lines tab:
    create new line:
        product: Cerveza Ale 0.5l
        net unit price: 199
        tax: compras exentas
realise that the Order is in USD
Book it

Go to Purchase invoice:
  Create two registers:
       1.- Org: España
           BP: Business partner
    Create lines from order created before
    Create a new line:
         Product: Vino blanco, net unit price: 18, tax: compras exentas
   Go to exchange rate tab:
      Create a new register:
         currency: USD to Currency: EUR
         rate: 1.2502
         foreign amount: 271.29
   Complete it

2.- Org: España
    BP: Bebidas alegres
   Lines tab:
      Create a new line
           Product: Cerveza Ale 0.5L
           net unit Price: 107.70
           tax: compras exentas
   Exchange rate:
      Create a new register:
            currency: USD to currency: EUR
            rate: 1.2472
            Foreign Amount: 134.32
   complete it.

Go to Payment Out,
   create a new register
       Org: España
       paying to: Bebidas alegres
       paying from: Cuenta de dolares para España
    add details
       select orders and invoices
          select 3 lines:
                1- amount: 18
                2.- amount: 107.70
                3.- amount: 199
Process it.
Reactivate it and do NOT remove the lines.
Go to exchange rate tab:
   create a new line:
      currency: Usd to currency: EUR rate: 1.274869, foreign amount: 413.95
Process it and post it.
realise that in the journal entry line of Diferencia negativas de cambio account is missing a cent. see the attached screenshot




 
TagsNo tags attached.
Attached Filespng file icon issue.png [^] (132,524 bytes) 2012-10-01 18:21


diff file icon 21820.diff [^] (3,357 bytes) 2012-10-24 12:56 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0053617)
ioritzCia (developer)
2012-10-24 12:55

The patch was delivered to the partner. The fix is going throug some tests and it will be included in MP18.
(0054161)
hgbot (developer)
2012-11-12 12:52

Repository: erp/devel/pi
Changeset: acd485beec84efe63309662d92120a03ffa96c82
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri Oct 26 13:01:57 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/acd485beec84efe63309662d92120a03ffa96c82 [^]

Fixes issue 21820: Wrong calculation of a journal entry under some circumstancies

---
M src/org/openbravo/erpCommon/ad_forms/Fact.java
M src/org/openbravo/erpCommon/ad_forms/FactLine.java
---
(0054361)
hudsonbot (developer)
2012-11-21 06:06

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/c3c5e61b0164 [^]

Maturity status: Test
(0054711)
VictorVillar (developer)
2012-12-04 17:10

Verified for the case reported

- Issue History
Date Modified Username Field Change
2012-10-01 18:21 VictorVillar New Issue
2012-10-01 18:21 VictorVillar Assigned To => dmiguelez
2012-10-01 18:21 VictorVillar File Added: issue.png
2012-10-01 18:21 VictorVillar Modules => Core
2012-10-01 18:21 VictorVillar Resolution time => 1350943200
2012-10-01 18:21 VictorVillar Issue Monitored: networkb
2012-10-01 18:26 VictorVillar Target Version => 3.0MP17
2012-10-01 18:47 dmiguelez Assigned To dmiguelez => jonalegriaesarte
2012-10-04 16:08 jonalegriaesarte Assigned To jonalegriaesarte => jecharri
2012-10-09 20:22 jonalegriaesarte Priority urgent => immediate
2012-10-16 12:28 jecharri Assigned To jecharri => ioritzCia
2012-10-24 12:55 ioritzCia Note Added: 0053617
2012-10-24 12:55 ioritzCia Priority immediate => high
2012-10-24 12:55 ioritzCia Severity major => minor
2012-10-24 12:55 ioritzCia Status new => scheduled
2012-10-24 12:55 ioritzCia Target Version 3.0MP17 => 3.0MP18
2012-10-24 12:56 ioritzCia File Added: 21820.diff
2012-11-12 12:52 hgbot Checkin
2012-11-12 12:52 hgbot Note Added: 0054161
2012-11-12 12:52 hgbot Status scheduled => resolved
2012-11-12 12:52 hgbot Resolution open => fixed
2012-11-12 12:52 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/acd485beec84efe63309662d92120a03ffa96c82 [^]
2012-11-21 06:06 hudsonbot Checkin
2012-11-21 06:06 hudsonbot Note Added: 0054361
2012-11-27 12:03 ioritzCia Status resolved => new
2012-11-27 12:03 ioritzCia Resolution fixed => open
2012-11-27 12:03 ioritzCia Review Assigned To => VictorVillar
2012-11-27 12:03 ioritzCia Status new => scheduled
2012-11-27 12:03 ioritzCia Status scheduled => resolved
2012-11-27 12:03 ioritzCia Resolution open => fixed
2012-12-04 17:10 VictorVillar Note Added: 0054711
2012-12-04 17:10 VictorVillar Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker