Commit 6a5539ab authored by Jacek Medrzycki's avatar Jacek Medrzycki

Forgot to remove context.logs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21638 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a2731573
...@@ -96,8 +96,9 @@ kw.update(params_kw)\n ...@@ -96,8 +96,9 @@ kw.update(params_kw)\n
\n \n
\n \n
sum = 0\n sum = 0\n
\n
for account in accounts :\n for account in accounts :\n
kw[\'node_category\']= context.shortAccountNumberToFullGapCategory(account)\n kw[\'node_category\']= context.shortAccountNumberToFullGapCategory(account, **kw)\n
#context.log(\'KW for getInventory\',kw)\n #context.log(\'KW for getInventory\',kw)\n
try : \n try : \n
#val = (context.portal_simulation.getInventory(**kw) or 0)\n #val = (context.portal_simulation.getInventory(**kw) or 0)\n
...@@ -108,7 +109,7 @@ for account in accounts :\n ...@@ -108,7 +109,7 @@ for account in accounts :\n
except AttributeError: # no account of this gap nr has been set up\n except AttributeError: # no account of this gap nr has been set up\n
return 0\n return 0\n
# except :\n # except :\n
# raise \'error on\', (account, shortAccountNumberToFullGapCategory(account, **kw))\n # raise \'error on\', (account, shortAccountNumberToFullGapCategory(account))\n
return float ("%.2f"%(sum))\n return float ("%.2f"%(sum))\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -66,7 +66,6 @@ ...@@ -66,7 +66,6 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>gap_root = kw.get(\'gap_root\', context.getPortalObject().portal_preferences.getPreferredAccountingTransactionGap())\n <value> <string>gap_root = kw.get(\'gap_root\', context.getPortalObject().portal_preferences.getPreferredAccountingTransactionGap())\n
context.log(gap_root)\n
\n \n
parts=[]\n parts=[]\n
for i in range(len(accountNumber)+1):\n for i in range(len(accountNumber)+1):\n
......
46 48
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment