Posted: April 20, 2017 at 9:13 am
|
The CSV report does not include the price breakdown as required by our State Sales Tax commission. I am trying to get it up to their requirements. |
Hi Robin, The following should work for you as long as it’s going to be okay to show the Sales Tax total of the transaction for each registration row: https://gist.github.com/joshfeck/4b38327cd36756c8233d345ffd170376 You can add the above to a functions plugin. |
|
|
Thanks Josh. Almost there. The Column has a title “Total Taxes” which is fine, but before each item in the column is the Word Taxes, ie. “Taxes 2.37” |
It’s line 23 of that function: https://gist.github.com/joshfeck/4b38327cd36756c8233d345ffd170376#file-csv_transaction-php-L23 I’m assuming your sub line item name is ‘Taxes’? Try changing the above line to:
Is that what you are looking for? |
|
|
Thanks Tony, Josh and whoever else worked on this. That is indeed what I needed. Thanks Again. |
|
Didn’t read Josh’s reply close enough. Further testing revealed that the Sales Tax total is shown in each registration row as Josh Stated but for 3 tickets it show the total for all 3 tickets 3 times. |
You could wrap the above within a check for the primary registrant. I forked Joshes example here: https://gist.github.com/Pebblo/76d0e1c7cb851a56636b09ef62156059 That just checks if the registrant is the primary registrant before adding the column (there is only 1 primary registrant per group). Would that work? |
|
|
Tony and Josh, Thanks Thanks for your help. |
You’re most welcome, I’m glad that worked for you. |
|
The support post ‘Adding fields to the CSV report EE4’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.