Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

logic for field

Former Member
0 Likes
389

Hi,

I am having one field with name 'Book Value' in Invoice. Book value depends on Excise Number Range.

For example Excise Number Range is 1 - 100000. If Excise No falls between 1 and 50 the Book Value is 1 and If Excise No falls between 51 and 100 the Book Value is 2 and If Excise No falls between 101 and 150 the Book Value is 3 and so on . The book value gets incremented by 1 for the range of 50.

How can i code this. Please suggest.

Thanks

K Srinivas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
371

divide excise number by 50 then add 1 to the quotient u get. that will be the book value

2 REPLIES 2
Read only

Former Member
0 Likes
372

divide excise number by 50 then add 1 to the quotient u get. that will be the book value

Read only

Former Member
0 Likes
371
If Excise_No between 1 and 50.
Book_Value  = 1.
elseif Excise_No between 51 and 100.
Book_Value  = 2.
.
.
.and so on
ENDIF