CiviCRM native extension for MAF Norge to manage yearly tax deduction files
This extension was developed for MAF Norge and reflects their processing for yearly declaration of tax deductible contribution amounts per contact. Feel free to use and customize.
Once a year the total deductible amount for each donor has to be declared to the tax authorities. This can be done from CiviCRM in three different steps:
- Load - a scheduled job which loads the donors with their deductible amount for the year into a separate file. You can also reload to add donors from CiviCRM that have not been picked up before (because the amount was too small or the person/organisasjonsnummer was not there).
- Manage - manage the donor data in the separate file, updating donor information for the tax authorities or even adding donor data
- Export - a scheduled job which exports the donors in the separate file into an XML-file
- year - the year being loaded in 4 digits (so for example 2014)
- reload - if it is an initial load (reload=0) or a reload (reload=1). A reload only loads donors that are not in the file yet.
If the data about the sending organization needs to change, this can be modified in this part:
protected function set_sender_info() {
$this->_sender_kilde_system = 'CiviCRM';
$this->_sender_organisasjonsnummer = 'xxxxxxxx';
$this->_sender_organisasjonsnavn = 'Mission Aviation Fellowship Norge';
$this->_sender_kontakt_navn = 'Steinar Sødal';
$this->_sender_kontakt_telefon = 'xxxxxx';
$this->_sender_kontakt_mobil = 'xxxxxxx';
$this->_sender_kontakt_epost = 'xxxxxxx';
$this->_leveranse_type = 'ordinaer';
}
The path where the result xml file will be put can be set in this part:
protected function set_xml_file_path() {
$this->_xml_file_path = '/folder/folder/';
}