0
我目前正在使用vTiger 6.5中的自定义模块,我想根据另外两个计算来填充字段。这是我在下面试过的。我正在寻找这样做,而不使用工作流程。在保存处理程序之前计算vTiger字段
$units = $entityData->get('numberofunits');
$value = $entityData->get('unitvalue');
$entitydata->set('currentamount',$units * $value);
}
我不知道这是一个语法问题,或者如果我的方向是错误的。
感谢
我也尝试将计算放入一个变量并且厌倦了'$ entitydata-> set('currentamount',$ calculation);'并且我用成功回显了变量。 – Diddy