Difference between revisions of "Module Donations (developer)"

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
m
m (Import interlang links (links to translated versions of this page in other languages) from Multi Language Manager table.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<!-- BEGIN origin interlang links -->
 +
<!-- You can edit this section but do NOT remove these comments
 +
    Links below will be automatically replicated on translated pages by PolyglotBot -->
 +
[[fr:Module_Dons_(développeur)]]
 +
[[es:Módulo_Donaciones_(desarrollador)]]
 +
<!-- END interlang links -->
 +
 
[[Category:Donation]]
 
[[Category:Donation]]
 
{{TemplateDocDev}}
 
{{TemplateDocDev}}
 +
{{TemplateModEN Developer}}
 
{{BasculeDevUserEn|
 
{{BasculeDevUserEn|
 
name=Donations|
 
name=Donations|
Line 12: Line 20:
 
= Entity Donation =
 
= Entity Donation =
 
{{TemplateDocDevEntityEn|
 
{{TemplateDocDevEntityEn|
class=''htdocs/don.class.php''}}
+
class=''htdocs/compta/dons/class/don.class.php''}}
  
 
'''Life cycle''':
 
'''Life cycle''':

Latest revision as of 13:21, 23 July 2019

Donations
Numero/ID of module 700
User doc. of module Module Donations
Developer doc. of module This page

Feature

The donation module allows you to manage donations (promises, payments).

Entity Donation

The PHP class to use to manipulate such object is file htdocs/compta/dons/class/don.class.php.

It contains CRUD methods to create (C), read (R), update (U) and delete (D) this object.

Life cycle:

  • Donation is created with status Draft = Promise not validated
  • Donation is validated if promise is validated
  • Donation is then changed to status payed

Permissions

  • ->don->lire
  • ->don->creer

Tables SQL

Constants

  • DON_ADDON_MODEL
  • DON_FORM