Hello all.
I'm new to sugercrm development and php.
I'm following the developers guide to creating custom hooks and want to add this function to calculate the total value over the next 5 years.
class kld_pipeline extends kld_pipeline_sugar {
function save($check_notify = FALSE){
$this->totalsummitcontract = $this->fy1 + $this->fy2 + $this->fy3 + $this->fy4 + $this->fy5;
$this->summitcut = $this->totalsummitcontract / $this->totalcontract;
$this->totalsummitrisk = $this->totalsummitcontract * $this->probwin / 100;
parent::save($check_notify);
}
function kld_pipeline(){
parent::kld_pipeline_sugar();
}
Ever time I save/deploy the module, the page is now blank and I have no errors on the screen. Is there an error log file I can look at for more information on why this hangs/dies/crashes?
Kdaniel


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks