[Vtigercrm-commits] [vtiger-commits] r3971 - /vtigercrm/trunk/include/utils/InventoryUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Feb 28 00:51:20 EST 2006
Author: richie
Date: Mon Feb 27 22:51:16 2006
New Revision: 3971
Log:
Added the product details block in Inventory.
Modified:
vtigercrm/trunk/include/utils/InventoryUtils.php
Modified: vtigercrm/trunk/include/utils/InventoryUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/InventoryUtils.php (original)
+++ vtigercrm/trunk/include/utils/InventoryUtils.php Mon Feb 27 22:51:16 2006
@@ -15,8 +15,9 @@
* column fields/
*/
-function getProductDetailsBlockInfo($mode,$module,$focus,$num_of_products='',$associated_prod='')
+function getProductDetailsBlockInfo($mode,$module,$focus='',$num_of_products='',$associated_prod='')
{
+
$productDetails = Array();
$productBlock = Array();
if($num_of_products=='')
@@ -32,12 +33,21 @@
{
$productDetails['product_details'] = $associated_prod;
}
- $productBlock[] = Array('mode'=>$focus->mode);
- $productBlock[] = $productDetails['product_details'];
- $productBlock[] = Array('taxvalue' => $focus->column_fields['txtTax']);
- $productBlock[] = Array('taxAdjustment' => $focus->column_fields['txtAdjustment']);
- $productBlock[] = Array('hdnSubTotal' => $focus->column_fields['hdnSubTotal']);
- $productBlock[] = Array('hdnGrandTotal' => $focus->column_fields['hdnGrandTotal']);
+ if($focus != '')
+ {
+ $productBlock[] = Array('mode'=>$focus->mode);
+ $productBlock[] = $productDetails['product_details'];
+ $productBlock[] = Array('taxvalue' => $focus->column_fields['txtTax']);
+ $productBlock[] = Array('taxAdjustment' => $focus->column_fields['txtAdjustment']);
+ $productBlock[] = Array('hdnSubTotal' => $focus->column_fields['hdnSubTotal']);
+ $productBlock[] = Array('hdnGrandTotal' => $focus->column_fields['hdnGrandTotal']);
+ }
+ else
+ {
+ $productBlock[] = Array('Product Details' => 'Product Details');
+
+ }
+ //echo '<pre>';print_r($productBlock);echo '</pre>';
return $productBlock;
}
?>
More information about the vtigercrm-commits
mailing list