|
dolibarr 21.0.0-beta
|
Class to manage payment terms records in dictionary. More...
Public Member Functions | |
| __construct (DoliDB $db) | |
| Constructor. | |
| create ($user, $notrigger=0) | |
| Create in database. | |
| fetch ($id, $code='') | |
| Load object in memory from database. | |
| getDefaultId () | |
| Return id of default payment term. | |
| update ($user=null, $notrigger=0) | |
| Update database. | |
| delete ($user, $notrigger=0) | |
| Delete object in database. | |
| createFromClone (User $user, $fromid) | |
| Load an object from its id and create a new one in database. | |
| initAsSpecimen () | |
| Initialise an instance with random values. | |
Class to manage payment terms records in dictionary.
Definition at line 30 of file paymentterm.class.php.
| PaymentTerm::__construct | ( | DoliDB | $db | ) |
Constructor.
Definition at line 106 of file paymentterm.class.php.
| PaymentTerm::create | ( | $user, | |
| $notrigger = 0 ) |
Create in database.
Definition at line 119 of file paymentterm.class.php.
References $conf, dol_syslog(), and getEntity().
| PaymentTerm::createFromClone | ( | User | $user, |
| $fromid ) |
Load an object from its id and create a new one in database.
Definition at line 424 of file paymentterm.class.php.
References $object.
| PaymentTerm::delete | ( | $user, | |
| $notrigger = 0 ) |
Delete object in database.
Definition at line 384 of file paymentterm.class.php.
References $conf, and dol_syslog().
| PaymentTerm::fetch | ( | $id, | |
| $code = '' ) |
Load object in memory from database.
| int | $id | Id object |
| string | $code | Code object |
Definition at line 213 of file paymentterm.class.php.
References dol_syslog(), and getEntity().
| PaymentTerm::getDefaultId | ( | ) |
Return id of default payment term.
Definition at line 266 of file paymentterm.class.php.
References dol_syslog().
| PaymentTerm::initAsSpecimen | ( | ) |
Initialise an instance with random values.
Used to build previews or test instances. id must be 0 if object instance is a specimen.
Definition at line 466 of file paymentterm.class.php.
| PaymentTerm::update | ( | $user = null, | |
| $notrigger = 0 ) |
Update database.
Definition at line 303 of file paymentterm.class.php.
References $conf, and dol_syslog().