[Erp5-report] r25513 - in /erp5/trunk/bt5/erp5_trade: WorkflowTemplateItem/portal_workflow/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 10 17:17:52 CET 2009
Author: jerome
Date: Tue Feb 10 17:17:48 2009
New Revision: 25513
URL: http://svn.erp5.org?rev=25513&view=rev
Log:
Don't update tax lines if we are curently in the process of solving a divergence. User cannot modify lines, and also this may change the current divergence
Modified:
erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/tax_interaction_workflow/scripts/Delivery_updateTaxLineList.xml
erp5/trunk/bt5/erp5_trade/bt/revision
Modified: erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/tax_interaction_workflow/scripts/Delivery_updateTaxLineList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/tax_interaction_workflow/scripts/Delivery_updateTaxLineList.xml?rev=25513&r1=25512&r2=25513&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/tax_interaction_workflow/scripts/Delivery_updateTaxLineList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_trade/WorkflowTemplateItem/portal_workflow/tax_interaction_workflow/scripts/Delivery_updateTaxLineList.xml [utf8] Tue Feb 10 17:17:48 2009
@@ -55,7 +55,9 @@
<key> <string>_body</string> </key>
<value> <string>movement = state_change[\'object\']\n
delivery = movement.getExplanationValue()\n
-delivery.Delivery_updateTaxLineList()\n
+# if we are already solving a divergence, don\'t update\n
+if delivery.getProperty(\'causality_state\') not in (\'solving\',):\n
+ delivery.Delivery_updateTaxLineList()\n
</string> </value>
</item>
<item>
Modified: erp5/trunk/bt5/erp5_trade/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_trade/bt/revision?rev=25513&r1=25512&r2=25513&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_trade/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_trade/bt/revision [utf8] Tue Feb 10 17:17:48 2009
@@ -1,1 +1,1 @@
-591
+592
More information about the Erp5-report
mailing list