[Vtigercrm-commits] [vtiger-commits] r4492 - /vtigercrm/trunk/modules/Invoice/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 27 23:23:53 EST 2006
Author: saraj
Date: Mon Mar 27 21:23:49 2006
New Revision: 4492
Log:
junk code has been removed
Modified:
vtigercrm/trunk/modules/Invoice/Save.php
Modified: vtigercrm/trunk/modules/Invoice/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/Save.php (original)
+++ vtigercrm/trunk/modules/Invoice/Save.php Mon Mar 27 21:23:49 2006
@@ -38,22 +38,15 @@
$focus->mode = $_REQUEST['mode'];
}
-//$focus->retrieve($_REQUEST['record']);
-
foreach($focus->column_fields as $fieldname => $val)
{
if(isset($_REQUEST[$fieldname]))
{
$value = $_REQUEST[$fieldname];
- //echo '<BR>';
- //echo $fieldname." ".$value;
- //echo '<BR>';
$focus->column_fields[$fieldname] = $value;
}
}
-
-//print_r($focus->column_fields);
$focus->save("Invoice");
@@ -80,7 +73,6 @@
}
$query1 = "delete from invoiceproductrel where invoiceid=".$focus->id;
- //echo $query1;
$adb->query($query1);
}
@@ -118,8 +110,7 @@
function updateStk($product_id,$qty,$mode,$ext_prod_arr)
{
- global $adb;
- global $current_user;
+ global $adb,$current_user;
$prod_name = getProductName($product_id);
$qtyinstk= getPrdQtyInStck($product_id);
if($mode == 'edit')
@@ -163,17 +154,13 @@
sendPrdStckMail($product_id,$upd_qty,$prod_name);
}
-
- //$query= "update products set qtyinstock=".$upd_qty." where productid=".$product_id;
- //$adb->query($query);
//Check for reorder level and send mail
}
function sendPrdStckMail($product_id,$upd_qty,$prod_name)
{
- global $current_user;
- global $adb;
+ global $current_user,$adb;
$reorderlevel = getPrdReOrderLevel($product_id);
if($upd_qty < $reorderlevel)
{
More information about the vtigercrm-commits
mailing list