Commit 47848978 authored by Aurel's avatar Aurel

fix condition + getTotalPrice must not be fast

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18820 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1aeb6f74
......@@ -67,7 +67,7 @@
<key> <string>_body</string> </key>
<value> <string>source = context.getSource()\n
destination = context.getDestinationSection()\n
if source is None and destination is None:\n
if source is None or destination is None:\n
return None\n
if source.split("/")[-1] == destination.split("/")[-1]:\n
destination = "site/agence/principale/%s/caveau/serre/encaisse_des_billets_neufs_non_emis" % destination.split("/")[-1]\n
......
......@@ -98,7 +98,7 @@ if listbox is None:\n
container_dict[\'cash_number_range_stop\'] = cash_container.getCashNumberRangeStop()\n
container_dict[\'resource_translated_title\'] = container_line.getResourceTranslatedTitle()\n
container_dict[\'quantity\'] = container_line.getQuantity()\n
container_dict[\'total_price\'] = container_line.getTotalPrice()\n
container_dict[\'total_price\'] = container_line.getTotalPrice(fast=0)\n
container_dict[\'selection\'] = 0\n
container_dict[\'uid\'] = \'new_%s\' %(cash_container.getUid(),) #cash_container.getReference().replace(\'/\', \'_\'),)\n
\n
......
562
\ No newline at end of file
564
\ 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