Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi all,
does anyone knows how to activate a contract in a test-class?
Thanks,
Hannes
I've received an answer to this:
first create the contract in "draft", then set it to "activated";
Contract contract02 = new Contract(RecordTypeId = RT.Id, AccountID = acc.Id, Status = 'Entwurf'); insert contract02; contract02.Status = 'Aktiviert'; update contract02;
I've received an answer to this:
first create the contract in "draft", then set it to "activated";
Contract contract02 = new Contract(RecordTypeId = RT.Id, AccountID = acc.Id, Status = 'Entwurf');
insert contract02;
contract02.Status = 'Aktiviert';
update contract02;