47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
|
|
<?php
|
||
|
|
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
||
|
|
|
||
|
|
global $sugar_version, $sugar_config, $current_user, $app_strings, $mod_strings, $current_user;
|
||
|
|
|
||
|
|
|
||
|
|
require_once ('include/time.php');
|
||
|
|
require_once('include/json_config.php');
|
||
|
|
|
||
|
|
$json_config = new json_config();
|
||
|
|
$focus = new EcmSyntheticAccount();
|
||
|
|
|
||
|
|
if(isset($_REQUEST['record']) && $_REQUEST['record'] != '') {
|
||
|
|
$focus->retrieve($_REQUEST['record']);
|
||
|
|
$focus->format_all_fields();
|
||
|
|
}
|
||
|
|
/*if (isset($_REQUEST['parent_id']) && $_REQUEST['parent_id']!='') {
|
||
|
|
$a = new Account();
|
||
|
|
$a->retrieve($_REQUEST['parent_id']);
|
||
|
|
$focus->id=create_guid();
|
||
|
|
$focus->parent_id = $a->id;
|
||
|
|
$focus->parent_name = $a->name;
|
||
|
|
$focus->payment_date = date('d.m.Y');
|
||
|
|
global $current_user;
|
||
|
|
$focus->assigned_user_id = $current_user->id;
|
||
|
|
$focus->assigned_user_name = $current_user->full_name;
|
||
|
|
$focus->format_all_fields();
|
||
|
|
unset($a);
|
||
|
|
}*/
|
||
|
|
|
||
|
|
require_once('include/MVC/View/SugarView.php');
|
||
|
|
require_once('modules/EcmSyntheticAccounts/view/EditView/view.edit.my.php');
|
||
|
|
|
||
|
|
$edit = new ViewEditEcmSyntheticAccounts();
|
||
|
|
$edit->ss = new Sugar_Smarty();
|
||
|
|
$edit->module = 'EcmSyntheticAccounts';
|
||
|
|
$edit->bean = $focus;
|
||
|
|
//$edit->tplFile = 'include/EditView/EditViewClassic.tpl';
|
||
|
|
|
||
|
|
$ul = $focus->showStructureanAlyticalList();
|
||
|
|
$edit->ss->assign('STRUCTUREANALYTICALPART_LIST', $ul);
|
||
|
|
|
||
|
|
$aal = $focus->getAnaliticalList();
|
||
|
|
$edit->ss->assign('ANALYTICALACCOUNTS_LIST', $aal);
|
||
|
|
$edit->preDisplay();
|
||
|
|
echo $edit->display();
|
||
|
|
?>
|