Commit 4de506b2 authored by Sebastien Robin's avatar Sebastien Robin

better calculation of the exchange value on traveler check

smalle updates on some forms

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10590 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e14e6ffc
...@@ -84,6 +84,12 @@ ...@@ -84,6 +84,12 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
......
...@@ -101,6 +101,8 @@ for listbox_line in listbox:\n ...@@ -101,6 +101,8 @@ for listbox_line in listbox:\n
item_dict[\'destination_trade\'] = item.getDestinationTrade()\n item_dict[\'destination_trade\'] = item.getDestinationTrade()\n
item_dict["resource_value"] = item.getResourceValue()\n item_dict["resource_value"] = item.getResourceValue()\n
item_dict["check_amount"] = item.getCheckAmount()\n item_dict["check_amount"] = item.getCheckAmount()\n
item_dict["check_type"] = item.getCheckType()\n
item_dict["price_currency"] = item.getPriceCurrency()\n
item_dict["aggregate_value"] = item\n item_dict["aggregate_value"] = item\n
item_dict["quantity"] = 1\n item_dict["quantity"] = 1\n
delivery_line.edit(**item_dict)\n delivery_line.edit(**item_dict)\n
......
...@@ -87,30 +87,12 @@ ...@@ -87,30 +87,12 @@
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
</item> </item>
<item>
<key> <string>left</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
......
...@@ -76,13 +76,19 @@ ...@@ -76,13 +76,19 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>left</string> </key> <key> <string>bottom</string> </key>
<value> <value>
<list> <list>
<string>my_vault</string> <string>my_vault</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
......
...@@ -104,7 +104,7 @@ for movement in movement_list:\n ...@@ -104,7 +104,7 @@ for movement in movement_list:\n
msg = Message(domain = "ui", message="Sorry, the price was not defined on some traveler checks")\n msg = Message(domain = "ui", message="Sorry, the price was not defined on some traveler checks")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
if total_debit>0:\n if total_debit>0:\n
total_debit = round(total_debit+0.5)\n total_debit = round(total_debit)\n
# Source and destination will be updated automaticaly based on the category of bank account\n # Source and destination will be updated automaticaly based on the category of bank account\n
# The default account chosen should act as some kind of *temp* account or *parent* account\n # The default account chosen should act as some kind of *temp* account or *parent* account\n
movement = transaction.get(\'movement\',None)\n movement = transaction.get(\'movement\',None)\n
......
7 9
\ 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