Barry685 Posted October 16, 2013 Posted October 16, 2013 I know this is easy but IM not particularly good at formulas. Can you please redo this calculation using the "Let Function" Sum(invoices|INVOICE_LINES::c_totalTax) *(taxRate/100) - Sum(invoices|INVOICE_LINES::c_totalTax) *(taxRate/100)*discValue/100 Thanks
jbante Posted October 16, 2013 Posted October 16, 2013 For example: Let ( [ ~totalTaxSum = Sum ( InvoiceLine::totalTax ) ; ~taxRate = taxRate / 100 ; ~discountRate = discValue / 100 ; ~totalWithoutDiscount = ~totalTaxSum * ~taxRate ] ; ~totalWithoutDiscount - ~totalWithoutDiscount * ~discountRate ) Another way to do it without any need for the Let function (though the Let function might still improve the readability) just takes a little algebra: Sum ( InvoiceLine::totalTax ) * taxRate / 100 * ( 1 - discValue / 100 )
Recommended Posts
This topic is 4113 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 accountSign in
Already have an account? Sign in here.
Sign In Now