| Server IP : 138.197.176.125 / Your IP : 216.73.217.122 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/soltelcocrm/ |
Upload File : |
<?php
include_once 'vtlib/Vtiger/Module.php';
include_once 'vtlib/Vtiger/Menu.php';
$Vtiger_Utils_Log = true;
$module = new Vtiger_Module();
$module->name = "Products";
$module=$module->getInstance('Products');
$block1 = new Vtiger_Block();
$block1->label = "LBL_STOCK_INFORMATION";
$block1=$block1->getInstance($block1->label,$module);
/*
$field6 = new Vtiger_Field();
$field6->name = 'purchaseoid';
$field6->label= 'Purchase Order ID';
$field6->uitype= 1;
$field6->table= $module->basetable;
$field6->column = $field6->name;
$field6->columntype = 'VARCHAR(50)';
$field6->typeofdata = 'V~O';
$block1->addField($field6);
$field7 = new Vtiger_Field();
$field7->name = 'purchaseorderdt';
$field7->label= 'Purchase Order Date';
$field7->uitype= 5;
$field7->table= $module->basetable;
$field7->column = $field7->name;
$field7->columntype = 'Date';
$field7->typeofdata = 'D~O';
$block1->addField($field7);
$field8 = new Vtiger_Field();
$field8->name = 'receivedt';
$field8->label= 'Receive Date';
$field8->uitype= 5;
$field8->table= $module->basetable;
$field8->column = $field8->name;
$field8->columntype = 'Date';
$field8->typeofdata = 'D~O';
$block1->addField($field8);*/
$field8 = new Vtiger_Field();
$field8->name = 'approvedstock';
$field8->label= 'Approved Qty';
$field8->uitype= 7;
$field8->table= $module->basetable;
$field8->column = $field8->name;
$field8->columntype = 'int(11)';
$field8->typeofdata = 'I~O';
$block1->addField($field8);