Commit 9fede5d3 authored by Jérome Perrin's avatar Jérome Perrin

Handle simulation_state for Balance Transfer Transaction

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16575 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c2975d2a
...@@ -121,6 +121,8 @@ def getIsSourceMovementItemList(invoice):\n ...@@ -121,6 +121,8 @@ def getIsSourceMovementItemList(invoice):\n
portal_type=portal.getPortalAccountingMovementTypeList())]\n portal_type=portal.getPortalAccountingMovementTypeList())]\n
for btt in context.getCausalityRelatedValueList(\n for btt in context.getCausalityRelatedValueList(\n
portal_type=\'Balance Transfer Transaction\'):\n portal_type=\'Balance Transfer Transaction\'):\n
if simulation_state and btt.getSimulationState() not in simulation_state:\n
continue\n
btt_is_source = btt.AccountingTransaction_isSourceView()\n btt_is_source = btt.AccountingTransaction_isSourceView()\n
for btt_movement in btt.getMovementList(\n for btt_movement in btt.getMovementList(\n
portal_type=portal.getPortalAccountingMovementTypeList()):\n portal_type=portal.getPortalAccountingMovementTypeList()):\n
......
418 419
\ No newline at end of file \ 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