Commit e8659ca1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not count Payment Transactions.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32040 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6d37e11
......@@ -2110,13 +2110,14 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
"""Rebuilds with sale_invoice_builder and checks nothing more is
created. """
accounting_module = self.getAccountingModule()
sale_invoice_transaction_count = len(accounting_module.objectValues())
portal_type_list = ('Sale Invoice Transaction', 'Purchase Invoice Transaction')
sale_invoice_transaction_count = len(accounting_module.objectValues(
portal_type=portal_type_list))
for builder in self.getPortal().portal_deliveries.objectValues():
builder.build()
self.assertEquals(sale_invoice_transaction_count,
len(accounting_module.objectValues(
portal_type=('Sale Invoice Transaction',
'Purchase Invoice Transaction'))))
portal_type=portal_type_list)))
def stepModifyInvoicesDate(self, sequence=None,
sequence_list=None, **kw):
......
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