CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Support for taxes
Pages: [1] 2

Author Topic: Support for taxes  (Read 7052 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Support for taxes
November 04, 2009, 06:53:06 am
It's come up a few times already, but I wanted to highlight it in this Suggestion forum: It would be very useful to have the ability to add a tax on amounts in CiviContribute. This is particularly relevant for events, which have taxes on them in Canada for most organizations: regular non-profits, for profits, and governments charging for events, but not non-profits that are charitable (nb: advocacy and political organizations don't qualify as charitable).

Up till now Canadians and probably others have had to include the tax for an event in the price of the ticket. This can complicate reporting, since the amounts for different items and the taxes on them need to be back-calculated from the total after the fact, which bookkeepers aren't always happy about. Making it really problematic is that the tax rates in some provinces are changing next July, and reporting net and taxes accurately for periods including sales before and after that date isn't trivial. Storing tax amounts separately in each transaction would alleviate this headache.

On a side note, if this is going to be implemented, I would make it available for CiviContribute pages in general, since occasionally people use CiviContribute for payment transactions that are taxable (eg ad sales for event programs), and it would just flow through to CiviEvent where it is really needed.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Support for taxes
November 04, 2009, 07:54:17 am

might be a great project for the canadian users of civicrm to collaborate and contribute back to core (or sponsor the core team to build an extensible tax framework)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Support for taxes
July 14, 2010, 10:51:10 am
Quote from: Donald Lobo on November 04, 2009, 07:54:17 am

might be a great project for the canadian users of civicrm to collaborate and contribute back to core (or sponsor the core team to build an extensible tax framework)

lobo


Well, I'm a Canadian and I'm using civiCRM/Drupal for a project with needs a tax field so I'll jump in here and see if I can get us closer to a solution. I'm not super familiar with the civiCRM Hook API yet though so I may need a little help in getting this thing to work.

* I realize this is an old thread but I thought it might be better just to add to this one than start another similar or identical thread.

So to begin with, because I'm using Drupal as the master framework, I thought a Drupal module would be the best place to start and I'll call the module civiTax. Here's a question right off the bat for anyone who's familiar with the API... Do I need to use hook_civicrm_buildForm() and hook_civicrm_buildAmount()?

I've stubbed out a module and used hook_civicrm_buildForm() with a smarty template to add an empty field to my contribution page but I wonder if I even need to go that route? Can (should) I just use hook_civicrm_buildAmount() and have it add a tax field to all of my forms?

Thanks for any help on this.

Andrew 


My CiviCRM Extension Workshop: https://github.com/awasson

j.payne

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
Re: Support for taxes
September 09, 2010, 10:27:34 am
@awasson  have you managed to get anywhere with this? I am looking at the same problem right now and am wondering where to start. I would consider helping out/review your code if you feel like sharing it?

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Support for taxes
September 10, 2010, 10:57:57 am
Hi All,
Yeah, we are actually making some progress with this  ;D

At the moment it works... It calculates tax, adds it to the final invoice and we've got the pre-tax, tax and Amount showing up on our Donor Report (Detail) with customized criteria to include the additional fields but it needs some refining. I'll post back once we're happy with it and once we've figured out whether it will be a recipe or a custom module.

BTW: I can't take credit for making it happen. I know what I wanted it to do but it was one of my colleagues who put in the work to make it happen.

Cheers,
Andrew
« Last Edit: September 10, 2010, 10:59:33 am by awasson »
My CiviCRM Extension Workshop: https://github.com/awasson

mbrown555

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
  • CiviCRM version: 3.3
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: not sure
Re: Support for taxes
February 22, 2011, 03:11:24 pm
Hi,

Does anyone know if this got released? or added into core, or if you would be open to sharing this module please?

Thanks

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Support for taxes
February 22, 2011, 04:43:54 pm
Well, we got it working but it isn't a module, it involves modifying a number of civiCRM core files, adding a couple of database tables and making some custom templates. I'm planning to document it at some point so that the civi guys can decide whether they want to integrate it in some later version but work has been too busy. I'll update this post when I've come up with an article about it.

Andrew
My CiviCRM Extension Workshop: https://github.com/awasson

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Support for taxes
February 22, 2011, 08:27:07 pm

any chance you can upload your current code / diffs to github or some public repository?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mbrown555

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
  • CiviCRM version: 3.3
  • CMS version: Drupal
  • MySQL version: 5
  • PHP version: not sure
Re: Support for taxes
February 23, 2011, 08:07:19 am
That sounds fantastic and I'm sure Lobo can work it out even without the documentation. If this dev work is rolled into core it would be huge for us Canadian people.(and probably great for other countries) :-)
I think we could also help financially to get it into core (depending on the scope and spec)

Thanks Andrew and Lobo

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Support for taxes
February 23, 2011, 10:17:38 am
Yup, I can do that. I'll get it organized and PM you with an update.
My CiviCRM Extension Workshop: https://github.com/awasson

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Support for taxes
August 04, 2011, 05:01:51 pm
can anyone update this thread about taxes?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Support for taxes
October 11, 2011, 09:29:06 am
Sorry about the delay in updating this thread. Regular work got in the way.

Anyway, we were successful in modding a few files in civiCRM to make it use a custom data field as a tax percentage and then report it in the donor reports area. I would like to refine what we did and if possible create a helper module so that we can use a clean copy of civiCRM rather than a modified copy.

Lobo, is there an area we can set up a working group to discuss this and share code and techniques, the end goal being the development of a plugin module?

Thanks,
Andrew
My CiviCRM Extension Workshop: https://github.com/awasson

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Support for taxes
October 11, 2011, 09:50:24 am

you might want to use drupal.org git sandboxes for code collaboration and the civicrm forums for discussion about it

you might want to start a new thread on it and direct people there

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

DaveBagler

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
    • Dave Bagler
  • CiviCRM version: CiviCRM 3.x, 4.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: MySQL 5
  • PHP version: PHP 5
Re: Support for taxes
October 11, 2011, 01:39:55 pm
Hi Awasson,
I need handle multiple sales taxed based on customer province and I'm very interested in helping out with this.

Thanks,
- Dave

awasson

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 7
  • Living in a world of Drupal / CiviCRM
    • My Company: Luna Design
  • CiviCRM version: Latest
  • CMS version: Drupal 6/7/8
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Support for taxes
October 11, 2011, 09:43:14 pm
Thanks for the suggestion Lobo... I have created a new discussion over at the civiCRM Group at Drupal: http://groups.drupal.org/node/182444

@Dave: Feel free to read up on what we've done so far. I still have to review and add the bits about reporting but I'm working on that this evening.

Cheers,
Andrew
My CiviCRM Extension Workshop: https://github.com/awasson

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Support for taxes

This forum was archived on 2017-11-26.