[Vtigercrm-commits] [vtiger-commits] r6639 - /vtigercrm/trunk/include/js/Inventory.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 03:05:02 EDT 2006
Author: saraj
Date: Mon May 29 01:04:58 2006
New Revision: 6639
Log:
* Modified to hadle the duplicate product condition and alert message
Modified:
vtigercrm/trunk/include/js/Inventory.js
Modified: vtigercrm/trunk/include/js/Inventory.js
==============================================================================
--- vtigercrm/trunk/include/js/Inventory.js (original)
+++ vtigercrm/trunk/include/js/Inventory.js Mon May 29 01:04:58 2006
@@ -254,9 +254,9 @@
{
product_id[j] = getObj("hdnProductId"+j).value;
}
- if(product_id[i] == product_id[j])
+ if(product_id[i] == product_id[j] && product_id[i] != '')
{
- alert("You have selected < "+getObj("txtProduct"+j).value+" > more than once in line items "+i+" & "+j+".\n Please select it once and change the Qty");
+ alert("You have selected < "+getObj("txtProduct"+j).value+" > more than once in line items "+i+" & "+j+".\n It is advisable to select the product just once but change the Qty. Thank You");
return false;
}
}
More information about the vtigercrm-commits
mailing list