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, ...@@ -2110,13 +2110,14 @@ class TestSaleInvoiceMixin(TestInvoiceMixin,
"""Rebuilds with sale_invoice_builder and checks nothing more is """Rebuilds with sale_invoice_builder and checks nothing more is
created. """ created. """
accounting_module = self.getAccountingModule() 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(): for builder in self.getPortal().portal_deliveries.objectValues():
builder.build() builder.build()
self.assertEquals(sale_invoice_transaction_count, self.assertEquals(sale_invoice_transaction_count,
len(accounting_module.objectValues( len(accounting_module.objectValues(
portal_type=('Sale Invoice Transaction', portal_type=portal_type_list)))
'Purchase Invoice Transaction'))))
def stepModifyInvoicesDate(self, sequence=None, def stepModifyInvoicesDate(self, sequence=None,
sequence_list=None, **kw): 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