From 085e56ef67a3accd16dc49856fd36e55abf2f64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 17 Sep 2008 16:32:20 +0000 Subject: [PATCH] ad hoc case: ignore related transactions with "MAJO" origin ID git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23678 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Invoice_getRemainingTotalPayablePrice.xml | 26 ++----------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml index 98ea642941..ab5366e003 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml @@ -9,22 +9,10 @@ </pickle> <pickle> <dictionary> - <item> - <key> <string>Python_magic</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>Script_magic</string> </key> <value> <int>3</int> </value> </item> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_bind_names</string> </key> <value> @@ -163,6 +151,8 @@ related_transaction_list = context.getCausalityRelatedValueList(\n for related_transaction in related_transaction_list:\n if related_transaction.getSimulationState() not in simulation_state:\n continue\n + if related_transaction.getOriginId() == \'MAJO\':\n + continue\n \n # if we have a payment related to multiple invoices, we cannot say the\n # remaining price on those invoices.\n @@ -241,18 +231,6 @@ else:\n <none/> </value> </item> - <item> - <key> <string>_filepath</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_owner</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_params</string> </key> <value> <string>detailed=0, at_date=None, account_id=None, simulation_state=None, mirror_section_relative_url=None</string> </value> -- 2.30.9