Commit 6b9b8abe authored by Jérome Perrin's avatar Jérome Perrin

Accounting Rule Cell contains Accounting Transaction Line, not Sale Invoice

Transaction !


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12844 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a4fd3997
...@@ -220,7 +220,7 @@ class TestInvoice(TestPackingListMixin, ...@@ -220,7 +220,7 @@ class TestInvoice(TestPackingListMixin,
for line_id, line_source_id, line_destination_id, line_ratio in \ for line_id, line_source_id, line_destination_id, line_ratio in \
self.transaction_line_definition_list: self.transaction_line_definition_list:
line = cell.newContent(id=line_id, line = cell.newContent(id=line_id,
portal_type=self.sale_invoice_transaction_portal_type) portal_type='Accounting Transaction Line')
line.setQuantity(line_ratio) line.setQuantity(line_ratio)
line.setSourceValue(account_module[line_source_id]) line.setSourceValue(account_module[line_source_id])
line.setDestinationValue(account_module[line_destination_id]) line.setDestinationValue(account_module[line_destination_id])
......
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