|
dolibarr 22.0.5
|
Class to manage Bookkeeping numbering rules Argon. More...


Public Member Functions | |
| __construct () | |
| Constructor. | |
| info ($langs) | |
| Return description of numbering module. | |
| getExample () | |
| Return an example of numbering. | |
| canBeActivated ($object) | |
| Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working. | |
| getNextValue (BookKeeping $object, $mode='next') | |
| Return next free value. | |
Public Member Functions inherited from ModeleNumRefBookkeeping | |
| getNextValue (BookKeeping $object) | |
| Return next free value. | |
Public Member Functions inherited from CommonNumRefGenerator | |
| getNom ($langs) | |
| Return model name. | |
| getName ($langs) | |
| Return model name. | |
| isEnabled () | |
| Return if a module can be used or not. | |
| getVersion () | |
| Returns version of numbering module. | |
Private Member Functions | |
| getPrefix (BookKeeping $object) | |
| Returns the prefix for current Bookkeeping object Year used in prefix is the beginning fiscal year. | |
Class to manage Bookkeeping numbering rules Argon.
Definition at line 31 of file mod_bookkeeping_argon.php.
| mod_bookkeeping_argon::canBeActivated | ( | $object | ) |
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
| CommonObject | $object | Object we need next value for |
Reimplemented from CommonNumRefGenerator.
Definition at line 94 of file mod_bookkeeping_argon.php.
References $object, and getPrefix().
| mod_bookkeeping_argon::getExample | ( | ) |
Return an example of numbering.
Reimplemented from ModeleNumRefBookkeeping.
Definition at line 81 of file mod_bookkeeping_argon.php.
| mod_bookkeeping_argon::getNextValue | ( | BookKeeping | $object, |
| $mode = 'next' ) |
Return next free value.
| BookKeeping | $object | Object we need next value for |
| string | $mode | 'next' for next value or 'last' for last value |
Definition at line 122 of file mod_bookkeeping_argon.php.
References $conf, $object, and get_next_value().
|
private |
Returns the prefix for current Bookkeeping object Year used in prefix is the beginning fiscal year.
| BookKeeping | $object | Book keeping record |
Definition at line 149 of file mod_bookkeeping_argon.php.
References $object, dol_print_date(), and getDolGlobalInt().
Referenced by canBeActivated().
| mod_bookkeeping_argon::info | ( | $langs | ) |
Return description of numbering module.
| Translate | $langs | Lang object to use for output |
Reimplemented from CommonNumRefGenerator.
Definition at line 69 of file mod_bookkeeping_argon.php.