~camptocamp/oerpscenario/add-count-items-lep

« back to all changes in this revision

Viewing changes to features/oerp_addons/account_voucher/account_voucher_413.feature

  • Committer: Alexandre Fayolle
  • Author(s): nicolas.bessi at camptocamp
  • Date: 2013-06-06 06:16:43 UTC
  • mfrom: (321.1.1 oerpscenario)
  • Revision ID: alexandre.fayolle@camptocamp.com-20130606061643-899xeg6ggx1hy5ok
[MRG] FIX base finance setup to be green in V7.0 and remove credit control tests that where moved into the addon

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
###############################################################################
2
 
#
3
 
#    OERPScenario, OpenERP Functional Tests
4
 
#    Copyright 2009 Camptocamp SA
5
 
#
6
 
##############################################################################
7
 
##############################################################################
8
 
# Branch      # Module       # Processes     # System
9
 
@addons       @account_voucher       @4     @413
10
 
 
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)
13
 
         with account_voucher. 
14
 
 
15
 
  @account_voucher_run
16
 
  Scenario: Create invoice 413
17
 
  Given I need a "account.invoice" with oid: scen.voucher_inv_413
18
 
    And having:
19
 
      | name               | value                              |
20
 
      | name               | SI_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                       |
28
 
      | type               | in_invoice                         |
29
 
 
30
 
 
31
 
    Given I need a "account.invoice.line" with oid: scen.voucher_inv413_line413
32
 
    And having:
33
 
      | name       | value                           |
34
 
      | name       | invoice line 413                |
35
 
      | quantity   | 1                               |
36
 
      | price_unit | 1000                            |
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
41
 
 
42
 
  @account_voucher_run
43
 
  Scenario: Create Statement 413
44
 
    Given I need a "account.bank.statement" with oid: scen.voucher_statement_413
45
 
    And having:
46
 
     | name        | value                             |
47
 
     | name        | Bk.St.413                         |
48
 
     | date        | %Y-02-15                          |
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"
52
 
 
53
 
 
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
58
 
 
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
64
 
    
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
70
 
     
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 |          |       |           |         |
78
 
 
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"