Assigne field clock issue

Hi Experts,

 

We have configured clocks for assignee field in quotes , the configuration is given below, the issue is the assignee field is not mandatory during quote update ( assignment group could be mapped , however current set up assignee need not be mandatory when reassigning or raising quotes , the issue im facing is when quote are raised and and any reassignment happends from group 1 to group 2 with no assignee selection intially getting subroutine error that it cannot be executed. However when any assignee is assigned and when reassignement to different assignes the clocks functions as usual , please suggest what needs to be done so the sbubroutinr error wouldnot trigger.


fc- subroutines:ocmq


subroutines- apm.stop.clock
Stop Macro Clock
name:ocmq
prompt:"Assignee:" assigned.to in $file0
query:number in $file
sting1: stop

Update:assigned.to in $file0~=assigned.to in $file or status in $file="Pending Customer"

Delete:true

 

subroutines- apm.start.clock
Stop Macro Clock
name:ocmq
prompt:"Assignee:" assigned.to in $file
query:number in $file
sting1: stop


Update:not (same(assigned.dept in $file, assigned.dept in $file0)) and not (status in $file="Pending
Customer") or status in $file0="Pending Customer" and not (status in $file="Pending Customer")
Add:true

 

The above code works perfect when assignee field already has a value and reassignment happens.