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


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.


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