[Vtigercrm-commits] [vtiger-commits] r9728 - /vtigercrm/branches/5.0.2/modules/Invoice/Save.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Oct 26 13:19:35 EDT 2006


Author: richie
Date: Thu Oct 26 11:19:28 2006
New Revision: 9728

Log:
moved module specific save code to enitity.php file

Modified:
    vtigercrm/branches/5.0.2/modules/Invoice/Save.php

Modified: vtigercrm/branches/5.0.2/modules/Invoice/Save.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Invoice/Save.php (original)
+++ vtigercrm/branches/5.0.2/modules/Invoice/Save.php Thu Oct 26 11:19:28 2006
@@ -30,25 +30,9 @@
 
 $focus = new Invoice();
 global $current_user;
-$currencyid=fetchCurrency($current_user->id);
-$rate_symbol = getCurrencySymbolandCRate($currencyid);
-$rate = $rate_symbol['rate'];
 setObjectValuesFromRequest(&$focus);
 
 $focus->save("Invoice");
-
-//Checking if vtiger_salesorderid is present and updating the quote status
-if($focus->column_fields["salesorder_id"] != '')
-{
-        $so_id = $focus->column_fields["salesorder_id"];
-        $query1 = "update vtiger_salesorder set sostatus='Approved' where salesorderid=".$so_id;
-        $adb->query($query1);
-}
-
-
-//Based on the total Number of rows we will save the product relationship with this entity
-saveInventoryProductDetails(&$focus, 'Invoice');
-
 
 $return_id = $focus->id;
 





More information about the vtigercrm-commits mailing list