From e6bf53a58d936073964c7631523d356fa75b595c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Tue, 20 Feb 2007 13:14:42 +0000 Subject: [PATCH] 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 --- .../CheckDelivery_generateCheckDetailInputDialog.xml | 2 +- .../CheckDetail_viewLineFastInputForm/listbox_quantity.xml | 2 +- bt5/erp5_banking_check/bt/revision | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml index 136042a07a..8a74e255ec 100644 --- a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDelivery_generateCheckDetailInputDialog.xml @@ -120,7 +120,7 @@ else:\n check_amount = line.get(\'check_amount\',None)\n quantity = int(line.get(\'quantity\',0))\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 generate_error(line,\'quantity\',message)\n if destination_payment_reference not in (None,\'\'):\n diff --git a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDetail_viewLineFastInputForm/listbox_quantity.xml b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDetail_viewLineFastInputForm/listbox_quantity.xml index 8c0c71e0f0..869348a425 100644 --- a/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDetail_viewLineFastInputForm/listbox_quantity.xml +++ b/bt5/erp5_banking_check/SkinTemplateItem/portal_skins/erp5_banking_check_operation/CheckDetail_viewLineFastInputForm/listbox_quantity.xml @@ -195,7 +195,7 @@ </item> <item> <key> <string>default</string> </key> - <value> <string></string> </value> + <value> <string>0</string> </value> </item> <item> <key> <string>description</string> </key> diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision index d7765fe47e..9cd72aa941 100644 --- a/bt5/erp5_banking_check/bt/revision +++ b/bt5/erp5_banking_check/bt/revision @@ -1 +1 @@ -70 \ No newline at end of file +72 \ No newline at end of file -- 2.30.9