Jump to content

This topic is 7631 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

This topic is 7631 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.