25require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/modules/accountancy/modules_accountancy.php';
37 public $version =
'dolibarr';
47 public $name =
'Argon';
52 public $position = 50;
72 return $langs->trans(
"BookkeepingNumRefModelDesc");
100 if (get_class(
$object) !==
'BookKeeping') {
106 if (!empty($prefix) || strlen($prefix) !== 7) {
107 $langs->load(
"errors");
108 $this->error = $langs->trans(
'ErrorNumRefModel', $max);
127 $mask =
'{yy}{mm}{jj}{00000@99}';
133 $entity =
$conf->entity;
134 $numFinal =
get_next_value(
$db, $mask,
'accounting_bookkeeping',
'ref', $where,
null,
$object->doc_date, $mode,
false,
null, (
string) $entity,
$object);
135 if (!preg_match(
'/([0-9])+/', $numFinal)) {
136 $this->error = $numFinal;
154 $docFiscalYear = $docMonth < $fiscalStartMonth ? ($docYear - 1) : $docYear;
155 return $docFiscalYear . str_pad((
string)
$object->code_journal, 3,
"0", STR_PAD_LEFT);
if(! $sortfield) if(! $sortorder) $object
Class to manage Ledger (General Ledger and Subledger)
Parent class to manage numbering of Sale Orders.
Class to manage Bookkeeping numbering rules Argon.
getExample()
Return an example of numbering.
getNextValue(BookKeeping $object, $mode='next')
Return next free value.
getPrefix(BookKeeping $object)
Returns the prefix for current Bookkeeping object Year used in prefix is the beginning fiscal year.
__construct()
Constructor.
canBeActivated($object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numberin...
info($langs)
Return description of numbering module.
get_next_value($db, $mask, $table, $field, $where='', $objsoc='', $date='', $mode='next', $bentityon=true, $objuser=null, $forceentity=null, $objbookkeeping=null)
Return last or next value for a mask (according to area we should not reset)
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
print $langs trans("Show") . '< td style="' . $timeColor . '" align="center"> s</td > badge status0 badge status4 badge status3 Error badge status8< td align="center">< span class="badge ' . $badge . '"></span ></td >< td align="center">< a href="#" class="button button-small" onclick="openLogModal(this)" data-req="' . dol_escape_htmltag($reqSafe) . '" data-res="' . dol_escape_htmltag($resSafe) . '" data-err="' . dol_escape_htmltag($errSafe) . '">< span class="fa fa-search-plus"></span ></a ></td ></tr >< tr >< td colspan="' . $colspan . '" class="opacitymedium"></td ></tr ></table ></div ></form > logModal none logModal none s a JSON string
buildzip.php