diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_getAccountingTransactionList.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_getAccountingTransactionList.xml index b2fa9421816147e36929fc6baf7b473d07f2813b..f76fc4de5e3c3920080000e32332f13834cd2e39 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_getAccountingTransactionList.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Node_getAccountingTransactionList.xml @@ -142,11 +142,10 @@ if from_date or node_account_type in (\'expense\', \'income\'):\n \n # Show the previous balance if not empty\n if previous_total_credit != 0 or previous_total_debit != 0:\n - from Products.ERP5Type.Document import newTempAccountingTransaction\n + from Products.ERP5Type.Document import newTempBase\n \n net_balance = previous_total_debit - previous_total_credit\n - previous_balance = newTempAccountingTransaction(\n - portal, \'_temp_accounting_transaction\')\n + previous_balance = newTempBase(portal, \'_temp_accounting_transaction\')\n previous_balance.edit(\n uid=\'new_000\',\n date=from_date,\n @@ -269,7 +268,7 @@ return portal.portal_simulation.getMovementHistoryList(\n <string>_apply_</string> <string>True</string> <string>Products.ERP5Type.Document</string> - <string>newTempAccountingTransaction</string> + <string>newTempBase</string> <string>previous_balance</string> </tuple> </value> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 8a32cf7839cd770c9bf35526cff2a66a770e0951..f123c4f4b597ed834ae3c05dd9d4c96cf014f2bb 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -250 \ No newline at end of file +251 \ No newline at end of file