[6.1] voucher journal entry not based on correct rate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
Hello,
test done under 6.1
I noticed that voucher journal entry not based on correct rate. Rate used is today 's rate instead of payment date (=voucher date) rate.
As we work with our scenario tool OpenERP Scenario (bzr+ssh:
Thank you
Frederic @ Camptocamp
######
#
# OERPScenario, OpenERP Functional Tests
# Copyright 2009 Camptocamp SA
#
#######
#######
# Branch # Module # Processes # System
@addons @account_voucher @2 @201
Feature: In order to validate multicurrency account_voucher behaviour. I create a customer invoice for 1000 USD (rate : 1.5) and pay 500 EUR (rate : 1). I import this invoice in a bank statement (module account_voucher is installed). The Journal entries must not calculate any currency gain/loss nor any write off. After the payment, my invoice should remains open.
@account_
Scenario: Create invoice 201
Given I need a "account.invoice" with oid: scen.voucher_
And having:
| name | value |
| name | SI_201 |
| date_invoice | %Y-01-01 |
| date_due | %Y-02-15 |
| address_invoice_id | by oid: scen.partner_1_add |
| partner_id | by oid: scen.partner_1 |
| account_id | by name: Debtors |
| journal_id | by name: Sales |
| currency_id | by name: USD |
| type | out_invoice |
Given I need a "account.
And having:
| name | value |
| name | invoice line 201 |
| quantity | 1 |
| price_unit | 1000 |
| account_id | by name: Sales |
| invoice_id | by oid:scen.
Given I find a "account.invoice" with oid: scen.voucher_
And I open the credit invoice
@account_
Scenario: Create Statement 201
Given I need a "account.
And having:
| name | value |
| name | Bk.St.201 |
| date | %Y-02-15 |
| currency_id | by name: EUR |
| journal_id | by oid: scen.voucher_
And the bank statement is linked to period "02/%Y"
@account_
Scenario: Import invoice into statement
Given I find a "account.
And I import invoice "SI_201" using import invoice button
@acccout_
Scenario: Modify the paid amount of the imported invoice to pay partialy my invoice
Given I need a "account.
Then I modify the bank statement line amount to 500
@account_
Scenario: confirm bank statement
Given I find a "account.
And I set bank statement end-balance
When I confirm bank statement
@account_
Scenario: validate voucher
Given I find a "account.
Then I should have following journal entries in voucher:
| date | period | account | debit | credit | curr.amt | curr. | reconcile | partial |
| %Y-02-15 | 02/%Y | Debtors | | 500.00 | -900.00 | USD | | yes |
| %Y-02-15 | 02/%Y | EUR bank account | 500.00 | | | | | |
# BUG : today (oct-2012), the currency amount is -815.00 based on oct-12 rate (1.63) instead -900.00 of feb-12 rate (1.8). This currency amount is used to calculate the residual amount on the invoice
@account_
Scenario: validate voucher
Given My invoice "SI_201" is in state "open" reconciled with a residual amount of "100"
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |