Commit e2a2ce20 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

build() activity should wait for '(path)_updateAppliedRule' tag, otherwise it...

build() activity should wait for '(path)_updateAppliedRule' tag, otherwise it will be invoked too early.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35575 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d5976297
......@@ -95,7 +95,7 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
\n
builder = pay_sheet.portal_deliveries.pay_sheet_transaction_builder\n
builder.activate( activity = \'SQLQueue\'\n
, after_tag = expand_tag\n
, after_tag = (tag, expand_tag)\n
, priority = PRIORITY\n
).build( explanation_uid = pay_sheet.getUid()\n
, activate_kw = activate_kw\n
......@@ -120,10 +120,13 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
build_trade_model_tag = \'invoice_transaction_build_trade_model_%s\' % \\\n
delivery.getRelativeUrl()\n
build_accounting_tag = \'invoice_transaction_build_accounting_%s\' % delivery.getRelativeUrl()\n
expand_tag = \'%s_expand\' % delivery.getPath()\n
path = delivery.getPath()\n
update_applied_rule_tag = \'%s_updateAppliedRule\' % path\n
expand_tag = \'%s_expand\' % path\n
builder.activate(\n
activity=\'SQLQueue\',\n
after_tag=(expand_tag,\n
after_tag=(update_applied_rule_tag,\n
expand_tag,\n
build_trade_model_tag,),\n
tag=build_accounting_tag,\n
activate_kw=dict(tag=build_accounting_tag)).build(\n
......@@ -134,6 +137,7 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
portal_deliveries.payment_transaction_builder.activate(\n
activity=\'SQLQueue\',\n
after_tag=( build_trade_model_tag,\n
update_applied_rule_tag,\n
expand_tag,\n
build_accounting_tag, ),\n
).build(\n
......@@ -204,6 +208,8 @@ if builder_by_ptype.has_key(delivery_portal_type) :\n
<string>order</string>
<string>build_trade_model_tag</string>
<string>build_accounting_tag</string>
<string>path</string>
<string>update_applied_rule_tag</string>
<string>dict</string>
</tuple>
</value>
......
1223
\ No newline at end of file
1224
\ No newline at end of file
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