| 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/eyeclinic/ |
Upload File : |
<?php
error_reporting(0);
include_once('vtlib/Vtiger/Menu.php');
include_once('vtlib/Vtiger/Module.php');
$module = new Vtiger_Module();
$module->name = "Payments";
$module->parent = 'PATIENT';
$module->save();
$module->initTables();
$module->initWebservice();
$block1 = new Vtiger_Block();
$block1->label = "LBL_PAYMENT_FINAL_INFORMATION";
$module->addBlock($block1);
$field30 = new Vtiger_Field();
$field30->name = 'final_payment_notes';
$field30->label= 'FinalPayments Notes';
$field30->uitype= 2;
$field30->column = $field30->name;
$field30->columntype = 'VARCHAR(100)';
$field30->table = $module->basetable;
$field30->typeofdata = 'V~O';
$block1->addField($field30);
echo "Done";exit;
/*$field10 = new Vtiger_Field();
$field10->name = 'other_amount';
$field10->label= 'Other Amount';
$field10->uitype= 2;
$field10->column = $field10->name;
$field10->columntype = 'VARCHAR(255)';
$field10->table = 'vtiger_payments';
$field10->typeofdata = 'V~O';
$block1->addField($field10);
$field10 = new Vtiger_Field();
$field10->name = 'type';
$field10->label= 'Type';
$field10->uitype= 2;
$field10->column = $field10->name;
$field10->columntype = 'VARCHAR(255)';
$field10->table = 'vtiger_payments';
$field10->typeofdata = 'V~O';
$block1->addField($field10);*/
echo "Done";exit;