[Vtigercrm-commits] [vtiger-commits] r9472 - /vtigercrm/trunk/modules/PurchaseOrder/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Sep 12 18:15:56 EDT 2006
Author: richie
Date: Tue Sep 12 16:15:50 2006
New Revision: 9472
Log:
When saving the po if status is delivered then the product qty in stock will be updated -- By mickie
Modified:
vtigercrm/trunk/modules/PurchaseOrder/Save.php
Modified: vtigercrm/trunk/modules/PurchaseOrder/Save.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/Save.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/Save.php Tue Sep 12 16:15:50 2006
@@ -36,7 +36,7 @@
//Added code for auto product stock updation on receiving goods
$update_prod_stock='';
-if($focus->column_fields['postatus'] == 'Received Shipment' && $focus->mode == 'edit')
+if($focus->column_fields['postatus'] == 'Delivered' && $focus->mode == 'edit')
{
$prev_postatus=getPoStatus($focus->id);
if($focus->column_fields['postatus'] != $prev_postatus)
@@ -50,7 +50,7 @@
//Based on the total Number of rows we will save the product relationship with this entity
-saveInventoryProductDetails(&$focus, 'PurchaseOrder');
+saveInventoryProductDetails(&$focus, 'PurchaseOrder', $update_prod_stock);
$return_id = $focus->id;
More information about the vtigercrm-commits
mailing list