gaby78 Posted July 20, 2008 Posted July 20, 2008 Simple invoicing system with Parent table and LI table. In the LI table I have a txt field to indicate if the item is taxable. If taxable the user enters "T" otherwise leaves it empty. My problem is how (from the parent table) to sum taxable items only. I know I can create another TO of LI and link it to parent to obtain the total. I am wondering if there is a calc or custom function that can give me the total without resorting to an extra TO or extra fields in LI. I have tried the TypeSumField cf listed in CF library on the forum but it does not work all the time. Thks
bruceR Posted July 20, 2008 Posted July 20, 2008 Simple invoicing system with Parent table and LI table. In the LI table I have a txt field to indicate if the item is taxable. If taxable the user enters "T" otherwise leaves it empty. My problem is how (from the parent table) to sum taxable items only. I know I can create another TO of LI and link it to parent to obtain the total. I am wondering if there is a calc or custom function that can give me the total without resorting to an extra TO or extra fields in LI. I have tried the TypeSumField cf listed in CF library on the forum but it does not work all the time. Thks Since TypeSum should work, what problems are you experiencing and can you show the calculation you've used?
gaby78 Posted July 20, 2008 Author Posted July 20, 2008 Please see attached. Thanks for helping. SumByTypeExpl.ZIP
comment Posted July 21, 2008 Posted July 21, 2008 It doesn't work, because the custom function you are using expects the Type field to always have a value. Your "Taxable" field can be either "Yes" or empty. Let me suggest a simpler approach. TypeSumS.fp7.zip
bruceR Posted July 21, 2008 Posted July 21, 2008 Please see attached. Thanks for helping. Your file works correctly and returns the correct value IF you recognize that there cannot be any empty values in the TYPE field. The attached file includes a modified custom function that handles empty values in the TYPE field. typesumexpl.zip
Recommended Posts
This topic is 6029 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