Ok,<div><br></div><div>Will do a little more adjusting, thanks for the help.</div><div><br clear="all">-- Bart<br>
<br><br><div class="gmail_quote">Op 8 december 2011 12:28 schreef Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruz@bestpractical.com">ruz@bestpractical.com</a>></span> het volgende:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, Dec 8, 2011 at 14:46, Bart <<a href="mailto:bart@pleh.info">bart@pleh.info</a>> wrote:<br>
> sub Prepare {<br>
> my $self = shift;<br>
> my $new_value = $self->TicketObj-> FirstCustomFieldValue( 'Teller New' )<br>
> + 5;<br>
> $self->TicketObj->AddCustomFieldValue(Field => 'Teller New', Value =><br>
> $new_value, RecordTransaction => 0 );<br>
> return 1;<br>
> }<br>
<br>
</div>You should move all this code into Commit. Don't change objects during prepare.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Best regards, Ruslan.<br>
</font></span></blockquote></div><br></div>