[Erp5-report] r14466 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 11 15:29:03 CEST 2007
Author: jerome
Date: Fri May 11 15:29:03 2007
New Revision: 14466
URL: http://svn.erp5.org?rev=14466&view=rev
Log:
When creating a reversal transaction for an existing transction, the new transaction will have the same causality as the voided transaction (+this transaction itself)
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml?rev=14466&r1=14465&r2=14466&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml Fri May 11 15:29:03 2007
@@ -79,6 +79,9 @@
else:\n
specific_reference = context.getDestinationReference()\n
\n
+causality_value_list = context.getCausalityValueList()\n
+causality_value_list.append(context)\n
+\n
reversal = accounting_module.newContent (\n
portal_type=context.getPortalType(),\n
source_section=context.getSourceSection(),\n
@@ -93,7 +96,7 @@
\'specific_reference\': specific_reference}),\n
resource=context.getResource(),\n
reference=context.getReference(),\n
- causality_value=context,\n
+ causality_value_list=causality_value_list,\n
created_by_builder=1 # XXX to prevent init script to create lines\n
)\n
\n
@@ -189,6 +192,7 @@
<string>accounting_module</string>
<string>is_source</string>
<string>specific_reference</string>
+ <string>causality_value_list</string>
<string>unicode</string>
<string>reversal</string>
<string>line_list</string>
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=14466&r1=14465&r2=14466&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Fri May 11 15:29:03 2007
@@ -1,1 +1,1 @@
-300
+301
More information about the Erp5-report
mailing list