Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Groovy Script for Validating Sales Order Line Type with Negative Unit Price and Amount — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Groovy Script for Validating Sales Order Line Type with Negative Unit Price and Amount

Received Response
21
Views
4
Comments

Summary:


Content (required):

Hello Friends

Our user keeps doing a mistake while creating a sales order. System allows to put negative price and amount even though it is not a return order.

Is there a groovy script available in which I would like to validate that with given SO line type, negative price and amount is NOT allowed?

I am thinking below to write in groovy script.

When Line Type contains a word “Return” then validate that amount on SO line Should be Negative.

When Line Type does NOT contain a word “Return” on SO line then Validate that amount on SO line should be Positive.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!