+ function beforeDelete($dependants_array, $roo) {
+ if ($this->delivered()) {
+ $roo->jerr("you can not delete a record of a successfull delivery");
+ }
+ }
+ function beforeInsert($request,$roo)
+ {
+ if (empty($request['act_when']) && !empty($request['act_start'])) {
+ $this->act_start($request['act_start']);
+ }
+
+ }
+ function beforeUpdate($old, $request,$roo)
+ {
+ if (empty($request['act_when']) && !empty($request['act_start'])) {
+ $this->act_start($request['act_start']);
+ }
+ }
+
+
+ function act_start($set = false, $force = false)