diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getTotalCredit.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getTotalCredit.xml
index b54eab00e1d6fa16a1e0509b5314872630e68d81..562308c195c9d1ff71bf518cf856ac5eac5307f4 100644
--- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getTotalCredit.xml
+++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getTotalCredit.xml
@@ -54,15 +54,15 @@
         <item>
             <key> <string>_body</string> </key>
             <value> <string>is_source = context.AccountingTransaction_isSourceView()\n
-total_debit = 0\n
+total_credit = 0\n
 for line in context.getMovementList(\n
       portal_type=context.getPortalAccountingMovementTypeList()):\n
   if is_source:\n
-    total_debit += line.getDestinationInventoriatedTotalAssetDebit()\n
+    total_credit += line.getSourceInventoriatedTotalAssetCredit()\n
   else:\n
-    total_debit += line.getSourceInventoriatedTotalAssetDebit()\n
+    total_credit += line.getDestinationInventoriatedTotalAssetCredit()\n
 \n
-return total_debit\n
+return total_credit\n
 </string> </value>
         </item>
         <item>
@@ -103,7 +103,7 @@ return total_debit\n
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>is_source</string>
-                            <string>total_debit</string>
+                            <string>total_credit</string>
                             <string>_getiter_</string>
                             <string>line</string>
                             <string>_inplacevar_</string>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index c6a6d63ac8732319edccf32aac0a48a4063c862a..c1f4de8cc33d9f03029bbab6cbe34cbe36a24bec 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-902
\ No newline at end of file
+903
\ No newline at end of file