mrswombat Posted May 12, 2012 Posted May 12, 2012 I have a portal that shows me the packing slips of a job and it includes the fields "billed checkbox" and "quantity shipped" fields. I frequently partial bill these jobs, so some of the packing slip records have the "billed checkbox" checked from previous partial bills. I would like a "partial bill qty" field on my invoice to auto enter only the sum of "quantity shipped" if the "billed checkbox" is unchecked. So far, I've only managed to come up with calculations that keep summing up all the fields and I can't figure out a way to omit the values in the "quantity shipped" fields if the "billed checkbox" is checked. Any ideas?
eos Posted May 12, 2012 Posted May 12, 2012 Easiest solution would be to create a calculation field in the PackingSlips table that is defined as “quantity shipped if not billed" and sum up this field in Jobs.
Vaughan Posted May 12, 2012 Posted May 12, 2012 You need another calc field in the invoice line items records that only shows the quantity shipped if the billed checkbox ic unchecked: Quaitity_Unbilled = Case( isempty( billed ) ; Quantity ) In the invoice table, make a total field that Sums() the unbilled calculation.
mrswombat Posted May 15, 2012 Author Posted May 15, 2012 Wow, thank you as always for your help Vaughan. Once again, worked beautifully!
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