1
###############################################################################
3
# OERPScenario, OpenERP Functional Tests
4
# Copyright 2009 Camptocamp SA
6
##############################################################################
7
##############################################################################
8
# Branch # Module # Processes # System
9
@addons @account_voucher @4 @413
11
Feature: In order to validate multicurrency account_voucher behaviour as an admin user I do a reconciliation run.
12
I want to create a supplier invoice for 1000 EUR (rate : 1) and pay it in full in EUR (rate : 1)
16
Scenario: Create invoice 413
17
Given I need a "account.invoice" with oid: scen.voucher_inv_413
21
| date_invoice | %Y-01-01 |
22
| date_due | %Y-02-15 |
23
| address_invoice_id | by oid: scen.partner_1_add |
24
| partner_id | by oid: scen.partner_1 |
25
| account_id | by name: Creditors |
26
| journal_id | by name: Purchases |
27
| currency_id | by name: EUR |
31
Given I need a "account.invoice.line" with oid: scen.voucher_inv413_line413
34
| name | invoice line 413 |
37
| account_id | by name: Sales |
38
| invoice_id | by oid:scen.voucher_inv_413 |
39
Given I find a "account.invoice" with oid: scen.voucher_inv_413
40
And I open the credit invoice
43
Scenario: Create Statement 413
44
Given I need a "account.bank.statement" with oid: scen.voucher_statement_413
49
| currency_id | by name: EUR |
50
| journal_id | by oid: scen.voucher_eur_journal |
51
And the bank statement is linked to period "02/%Y"
54
@account_voucher_run @account_voucher_import_invoice
55
Scenario: Import invoice into statement
56
Given I find a "account.bank.statement" with oid: scen.voucher_statement_413
57
And I import invoice "SI_413" using import invoice button
59
@acccout_voucher_run @account_statement_line_amount_modified
60
Scenario: Modify the paid amount of the imported invoice to pay partialy my invoice
61
Given I need a "account.bank.statement.line" with name: SI_413
62
And the line amount should be -1000
63
Then I modify the bank statement line amount to 950
65
@account_voucher_run @account_voucher_confirm
66
Scenario: confirm bank statement
67
Given I find a "account.bank.statement" with oid: scen.voucher_statement_413
68
And I set bank statement end-balance
69
When I confirm bank statement
71
@account_voucher_run @account_voucher_valid_413
72
Scenario: validate voucher
73
Given I find a "account.bank.statement" with oid: scen.voucher_statement_413
74
Then I should have following journal entries in voucher:
75
| date | period | account | debit | credit | curr.amt | curr. | reconcile | partial |
76
| %Y-02-15 | 02/%Y | Creditors | 950.00 | | | | | yes |
77
| %Y-02-15 | 02/%Y | EUR bank account | | 950.00 | | | | |
79
@account_voucher_run @account_voucher_valid_invoice_413
80
Scenario: validate voucher
81
Given My invoice "SI_413" is in state "open" reconciled with a residual amount of "50.0"