diff --git a/oss/vtiger/trunk/modules/Services/AddServiceToPriceBooks.php b/oss/vtiger/trunk/modules/Services/AddServiceToPriceBooks.php
new file mode 100644
index 00000000..06f43edd
--- /dev/null
+++ b/oss/vtiger/trunk/modules/Services/AddServiceToPriceBooks.php
@@ -0,0 +1,168 @@
+id,'unit_price') != '0'){
+ echo "";
+ echo "
";
+ exit();
+}
+
+$smarty=new vtigerCRM_Smarty;
+
+$smarty->assign("MOD", $mod_strings);
+$smarty->assign("APP", $app_strings);
+$smarty->assign("IMAGE_PATH",$image_path);
+
+$focus = new PriceBooks();
+
+//Retreive the list of PriceBooks
+$list_query = getListQuery("PriceBooks");
+
+$list_query .= ' and vtiger_pricebook.active<>0 ORDER BY pricebookid DESC ';
+
+$list_result = $adb->query($list_query);
+$num_rows = $adb->num_rows($list_result);
+
+$record_string= "Total No of PriceBooks : ".$num_rows;
+
+//Retreiving the array of already releated products
+$sql1="select vtiger_crmentity.crmid, vtiger_pricebookproductrel.pricebookid,vtiger_service.unit_price
+ from vtiger_pricebookproductrel inner join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_pricebookproductrel.productid
+ inner join vtiger_service on vtiger_service.serviceid=vtiger_pricebookproductrel.productid
+ where vtiger_crmentity.deleted=0 and vtiger_pricebookproductrel.productid=?";
+$res1 = $adb->pquery($sql1, array($productid));
+$num_prod_rows = $adb->num_rows($res1);
+$pbk_array = Array();
+for($i=0; $i<$num_prod_rows; $i++)
+{
+ $pbkid=$adb->query_result($res1,$i,"pricebookid");
+ $pbk_array[$pbkid] = $pbkid;
+}
+
+$pro_unit_price = getUnitPrice($productid, $currentModule);
+$prod_price_details = getPriceDetailsForProduct($productid, $pro_unit_price, 'available', $currentModule);
+
+$prod_cur_price = array();
+for($i=0; $i
+