Commit 94375bf9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

we need more matching testers and divergence testers for invoice transaction rule.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31898 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0e27e0b8
......@@ -109,7 +109,9 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
destination_value=account_module[line_destination_id])
# matching provider for source and destination
for category in ('source', 'destination',):
for category in ('resource', 'source', 'destination',
'destination_total_asset_price',
'source_total_asset_price'):
invoice_rule.newContent(
portal_type='Category Membership Divergence Tester',
title='%s divergence tester' % category,
......@@ -119,11 +121,20 @@ class TestERP5SimulationMixin(TestInvoiceMixin):
# matching provider for quantity (i.e. only used for expand)
invoice_rule.newContent(
portal_type='Net Converted Quantity Divergence Tester',
title='%s divergence tester' % category,
title='quantity divergence tester',
tested_property='quantity',
quantity=0,
divergence_provider=False,
matching_provider=True)
# divergence provider for date
for property_id in ('start_date', 'stop_date'):
invoice_rule.newContent(
portal_type='DateTime Divergence Tester',
title='%s divergence tester' % property_id,
tested_property=property_id,
quantity=0,
divergence_provider=True,
matching_provider=False)
invoice_rule.validate()
transaction.commit()
self.tic()
......
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