RE: Quick One – Item Receipt

When I open up an Item Receipt in edit mode, each item has the “Received” box checked by default.   How do I change it so that it defaults to unchecked?

UCN Rookie Asked on November 5, 2019 in Administration.
Add Comment
3 Answers

I don’t believe there is a setting for this, but it could be achieved with a client script unchecking them on pageInit trigger.

The code would look something like:

var rec = context.newRecord;

var lineCount = rec.getLineCount({sublistId: 'item'})
for(var i = 0; i < lineCount; i++){

rec.selectLine({sublistId: 'item', line: i});

rec.setCurrentSublistValue({sublistId: 'item', fieldId: 'itemreceive', value: false});

rec.commitLine({sublistId: 'item'});

}

Hope that helps!

 

Beginner Answered on November 5, 2019.

The guy above is right, you’d want to be super careful about the context you run this script in. Glad he found a setting for it!

on November 6, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.