Commit e6bf53a5 authored by Aurel's avatar Aurel

default quantity set initially to 0 in fast input

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12910 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9a24d460
...@@ -120,7 +120,7 @@ else:\n ...@@ -120,7 +120,7 @@ else:\n
check_amount = line.get(\'check_amount\',None)\n check_amount = line.get(\'check_amount\',None)\n
quantity = int(line.get(\'quantity\',0))\n quantity = int(line.get(\'quantity\',0))\n
if item_model.isFixedPrice():\n if item_model.isFixedPrice():\n
if quantity != 1:\n if quantity > 1:\n
message = \'You must define one by one in this case\'\n message = \'You must define one by one in this case\'\n
generate_error(line,\'quantity\',message)\n generate_error(line,\'quantity\',message)\n
if destination_payment_reference not in (None,\'\'):\n if destination_payment_reference not in (None,\'\'):\n
......
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <string></string> </value> <value> <string>0</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
......
70 72
\ 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