Commit ca2ed64f authored by Aurel's avatar Aurel

use bank account reference as is of bank inventory inventory

use a counter for id of line


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18003 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04f17822
......@@ -798,12 +798,12 @@ class TestERP5BankingMixin:
site_value=self.testsite,
stop_date=DateTime().Date())
account_inventory_line_id = 'account_inventory_line_%s' %(self.account_inventory_number,)
inventory = self.bank_account_inventory.newContent(id=account_inventory_line_id,
inventory = self.bank_account_inventory.newContent(id=bank_account.getReference(),
portal_type='Bank Account Inventory',
destination_payment_value=bank_account,)
inventory_line = inventory.newContent(id='line',
account_inventory_line_id = 'account_inventory_line_%s' %(self.account_inventory_number,)
inventory_line = inventory.newContent(id=account_inventory_line_id,
portal_type='Bank Account Inventory Line',
resource_value=currency,
quantity=amount)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment