[Vtigercrm-commits] [vtiger-commits] r10690 - in /vtigercrm/branches/5.0.3/modules: PriceBooks/PriceBooks.js Products/EditListPrice.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sun Apr 15 13:23:41 EDT 2007


Author: saraj
Date: Sun Apr 15 11:23:35 2007
New Revision: 10690

Log:
Unit price is not working properly- fixed. Fixes #3362

Modified:
    vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js
    vtigercrm/branches/5.0.3/modules/Products/EditListPrice.php

Modified: vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js (original)
+++ vtigercrm/branches/5.0.3/modules/PriceBooks/PriceBooks.js Sun Apr 15 11:23:35 2007
@@ -164,4 +164,26 @@
                 }
 	);
 }
+function verify_data(form)
+{
+	var returnValue = true;
+        if(form.list_price.value != '')
+        {
+                 intval= intValidate('list_price','EditListPrice');
 
+                if(!intval)
+                {
+                        returnValue =  false;
+                }
+               
+        }
+        else
+        {
+
+                alert(alert_arr.LISTPRICE_CANNOT_BE_EMPTY);
+                returnValue = false;
+        }
+	return returnValue;
+
+}
+

Modified: vtigercrm/branches/5.0.3/modules/Products/EditListPrice.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Products/EditListPrice.php (original)
+++ vtigercrm/branches/5.0.3/modules/Products/EditListPrice.php Sun Apr 15 11:23:35 2007
@@ -61,7 +61,7 @@
 <table border=0 cellspacing=0 cellpadding=5 width=100% class="layerPopupTransport">
 <tr>
 	<td colspan="3" align="center" class="small">
-	<input type="button" onclick="gotoUpdateListPrice('.$return_id.','.$pricebook_id.','.$product_id.');return verify_data(EditView)" name="button" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="crmbutton small save">
+	<input type="button" onclick="gotoUpdateListPrice('.$return_id.','.$pricebook_id.','.$product_id.'); if(verify_data(index) == false) document.getElementById(\'roleLay\').style.display=\'inline\';" name="button" value="'.$app_strings["LBL_SAVE_BUTTON_LABEL"].'" class="crmbutton small save">
 	<input title="'.$app_strings["LBL_CANCEL_BUTTON_LABEL"].'" accessKey="'.$app_strings["LBL_CANCEL_BUTTON_KEY"].'" class="crmbutton small cancel" onClick="document.getElementById(\'editlistprice\').style.display=\'none\';" type="button" name="button" value="'.$app_strings["LBL_CANCEL_BUTTON_LABEL"].'">
 	</td>
 </tr>





More information about the vtigercrm-commits mailing list