Groovy Script for Validating Sales Order Line Type with Negative Unit Price and Amount
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.
Tagged:
0