Hi Andre,
I have one last favour to ask...
The fields that you enter the numbers into, what type of field do they need to be, textfield, decimal or something else?
Also i have attempted to create some Logic_hooks. Can you have a quick look and see if they look good to you.
AccountLogicHook.php...
PHP Code:
<?php
//prevents directly accessing this file from a web browser
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class AccountLogicHook {
function calculateField(& $focus, $event, $arguments){
$focus->test = $focus->alpha + $focus->bravo;
}
}
?>
logic_hook.php...
PHP Code:
<?php
// Do not store anything in this file that is not part of the array or the hook version. This file will
// be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['before_save'] = Array();
$hook_array['before_save'][] = Array(1, 'calculatedField', 'modules/Accounts/AccountLogicHook.php ','AccountLogicHook', 'calculateField');
?>
Many Thanks Again!
Bookmarks