[Vtigercrm-commits] [vtiger-commits] r6268 - /vtigercrm/trunk/modules/PurchaseOrder/DetailView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sun May 21 06:17:05 EDT 2006


Author: saraj
Date: Sun May 21 04:17:01 2006
New Revision: 6268

Log:
added for ajaxvalidation

Modified:
    vtigercrm/trunk/modules/PurchaseOrder/DetailView.php

Modified: vtigercrm/trunk/modules/PurchaseOrder/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/DetailView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/DetailView.php Sun May 21 04:17:01 2006
@@ -79,6 +79,15 @@
 //Get the associated Products and then display above Terms and Conditions
 $smarty->assign("ASSOCIATED_PRODUCTS",getDetailAssociatedProducts('PurchaseOrder',$focus));
 
+ $po_tables = Array('purchaseorder','pobillads','poshipads');
+ $tabid = getTabid("PurchaseOrder");
+ $validationData = getDBValidationData($po_tables,$tabid);
+ $data = split_validationdataArray($validationData);
+
+ $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']);
+ $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']);
+ $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']);
+
 $check_button = Button_Check($module);
 $smarty->assign("CHECK", $check_button);
 $smarty->display("InventoryDetailView.tpl");





More information about the vtigercrm-commits mailing list