alin Posted March 11, 2004 Posted March 11, 2004 Hi everybody, I am developing a DB for invoicing. In the invoice line I have the following fields: Description | UnitPrice | Coefficient1 | Coefficient2 | LineTotal LineTotal = UnitPrice * Coefficient1 * Coefficient2 An example could be
alin Posted March 11, 2004 Author Posted March 11, 2004 I got it myself. So, there is no need for an answer, or maybe, another way of solving it? My solution looks like that: LineTotal= Case( IsEmpty(coef1) and IsEmpty(coef2), coef3, IsEmpty(coef1) and IsEmpty(coef3), coef2, IsEmpty(coef2) and IsEmpty(coef3), coef1, IsEmpty(coef1) , coef2*coef3, IsEmpty(coef2), coef1*coef3, IsEmpty(coef3), coef1*coef2, coef1*coef2*coef3) Thank you anyway Alin
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now