[Vtigercrm-commits] [vtiger-commits] r9730 - /vtigercrm/branches/5.0.2/modules/PurchaseOrder/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Oct 26 13:25:06 EDT 2006
Author: richie
Date: Thu Oct 26 11:24:58 2006
New Revision: 9730
Log:
moved module specific save code to enitity.php file
Modified:
vtigercrm/branches/5.0.2/modules/PurchaseOrder/Save.php
Modified: vtigercrm/branches/5.0.2/modules/PurchaseOrder/Save.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/PurchaseOrder/Save.php (original)
+++ vtigercrm/branches/5.0.2/modules/PurchaseOrder/Save.php Thu Oct 26 11:24:58 2006
@@ -29,29 +29,21 @@
$focus = new PurchaseOrder();
global $current_user;
-$currencyid=fetchCurrency($current_user->id);
-$rate_symbol = getCurrencySymbolandCRate($currencyid);
-$rate = $rate_symbol['rate'];
setObjectValuesFromRequest(&$focus);
//Added code for auto product stock updation on receiving goods
-$update_prod_stock='';
+$focus->update_prod_stock='';
if($focus->column_fields['postatus'] == 'Received Shipment' && $focus->mode == 'edit')
{
$prev_postatus=getPoStatus($focus->id);
if($focus->column_fields['postatus'] != $prev_postatus)
{
- $update_prod_stock='true';
+ $focus->update_prod_stock='true';
}
}
$focus->save("PurchaseOrder");
-
-
-//Based on the total Number of rows we will save the product relationship with this entity
-saveInventoryProductDetails(&$focus, 'PurchaseOrder', $update_prod_stock);
-
$return_id = $focus->id;
More information about the vtigercrm-commits
mailing list