This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$hook_array['process_record'][] = Array(1, 'Sum_Each', 'custom/modules/Agreements/sum.php','SumAgreementsHook', 'sumTotalFromEachRow'); | |
$hook_array['after_ui_frame'][] = Array(1, 'Display_Sum', 'custom/modules/Agreements/sum.php','SumAgreementsHook', 'displaySumTotal'); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SumAgreementsHook | |
{ | |
protected static $sum = 0; | |
/** | |
* Called as process_record logic hook on the Opportunities module | |
*/ | |
public function sumTotalFromEachRow($bean, $event, $arguments) |