Path: | lib/Helpers/AccountBankStatement.rb |
Last Update: | Fri Mar 05 15:16:34 +0100 2010 |
OERPScenario, OpenERP Functional Tests Author Nicolas Bessi & Joel Grand-Guillaume 2009 Copyright Camptocamp SA
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 Afero of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Create an statement with given informations Input :
- options { journal : A valid AccountJournal instance currency_code (Default : EUR) : An ISO code for currency name (Default : computed by OpenERP sequence) : A valid name if you wanna set it }
Return
- The created AccountBankStatement as a instance of the class¨
Usage Example: statement = AccountBankStatement.create_statement_with_currency({currency_code =>’CHF’})
Import invoices into the given bank statements Input :
- invoices : A valid dict of AccountInvoice instance - statement : A valid AccountBankStatement instance - options { date (Default today) : date used into the first screen of the wizard (date imported in lines) }
Return
- The AccountBankStatement as a instance of the class¨
Usage Example: statement = AccountBankStatement.import_invoice(invoices,statement)
TODO implement journals TODO filter acc_move_line_ids to take the right one TODO Remove self to use it from an instance of the class