forked from Evarisk/Digirisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evarisk#3702 [NumberingModule] add: custom numerotation dolibarr native
- Loading branch information
1 parent
761018d
commit 84140a5
Showing
60 changed files
with
1,923 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
core/modules/digiriskdolibarr/accidentinvestigation/mod_accidentinvestigation_custom.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/* Copyright (C) 2021-2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* or see https://www.gnu.org/ | ||
*/ | ||
|
||
/** | ||
* \file core/modules/digiriskdolibarr/accidentinvestigation/mod_accidentinvestigation_custom.php | ||
* \ingroup digiriskdolibarr | ||
* \brief File of class to manage mod_accidentinvestigation_custom numbering rules standard. | ||
*/ | ||
|
||
// Load Saturne libraries. | ||
require_once __DIR__ . '/../../../../../saturne/core/modules/saturne/modules_saturne.php'; | ||
|
||
/** | ||
* Class to manage accidentinvestigation numbering rules custom. | ||
*/ | ||
class mod_accidentinvestigation_custom extends CustomModeleNumRefSaturne | ||
{ | ||
/** | ||
* @var string Numbering module ref prefix. | ||
*/ | ||
public string $prefix = 'AI'; | ||
|
||
/** | ||
* @var string Name. | ||
*/ | ||
public string $name = 'Custom'; | ||
|
||
/** | ||
* Return description of module | ||
* | ||
* @param String $mode Either "standard" for normal prefix or "custom" | ||
* @return String Descriptive text | ||
*/ | ||
public function info($mode = 'custom'): string | ||
{ | ||
return parent::info($mode); | ||
} | ||
|
||
/** | ||
* Return next value | ||
* | ||
* @return string Value if OK, 0 if KO | ||
*/ | ||
public function getNextValue(object $object): string | ||
{ | ||
return parent::getNextCustomValue($object); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
/* Copyright (C) 2023 EVARISK <[email protected]> | ||
/* Copyright (C) 2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -17,7 +17,7 @@ | |
*/ | ||
|
||
/** | ||
* \file core/modules/digiriskdolibarr/address/mod_accidentinvestigation_standard.php | ||
* \file core/modules/digiriskdolibarr/accidentinvestigation/mod_accidentinvestigation_standard.php | ||
* \ingroup digiriskdolibarr | ||
* \brief File of class to manage accident investigation numbering rules standard. | ||
*/ | ||
|
63 changes: 63 additions & 0 deletions
63
...ibarrdocuments/accidentinvestigationdocument/mod_accidentinvestigationdocument_custom.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/* Copyright (C) 2021-2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* or see https://www.gnu.org/ | ||
*/ | ||
|
||
/** | ||
* \file core/modules/digiriskdolibarr/digiriskdolibarrdocuments/accidentinvestigationdocument/mod_accidentinvestigationdocument_custom.php | ||
* \ingroup digiriskdolibarr | ||
* \brief File of class to manage mod_accidentinvestigationdocument_custom numbering rules standard. | ||
*/ | ||
|
||
// Load Saturne libraries. | ||
require_once __DIR__ . '/../../../../../../saturne/core/modules/saturne/modules_saturne.php'; | ||
|
||
/** | ||
* Class to manage accidentinvestigationdocument numbering rules custom. | ||
*/ | ||
class mod_accidentinvestigationdocument_custom extends CustomModeleNumRefSaturne | ||
{ | ||
/** | ||
* @var string Numbering module ref prefix. | ||
*/ | ||
public string $prefix = 'AID'; | ||
|
||
/** | ||
* @var string Name. | ||
*/ | ||
public string $name = 'Custom'; | ||
|
||
/** | ||
* Return description of module | ||
* | ||
* @param String $mode Either "standard" for normal prefix or "custom" | ||
* @return String Descriptive text | ||
*/ | ||
public function info($mode = 'custom'): string | ||
{ | ||
return parent::info($mode); | ||
} | ||
|
||
/** | ||
* Return next value | ||
* | ||
* @return string Value if OK, 0 if KO | ||
*/ | ||
public function getNextValue(object $object): string | ||
{ | ||
return parent::getNextCustomValue($object); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...arrdocuments/accidentinvestigationdocument/mod_accidentinvestigationdocument_standard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
/* Copyright (C) 2023 EVARISK <[email protected]> | ||
/* Copyright (C) 2023-2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
63 changes: 63 additions & 0 deletions
63
...dolibarr/digiriskdolibarrdocuments/auditreportdocument/mod_auditreportdocument_custom.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/* Copyright (C) 2021-2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* or see https://www.gnu.org/ | ||
*/ | ||
|
||
/** | ||
* \file core/modules/digiriskdolibarr/digiriskdolibarrdocuments/auditreportdocument/mod_auditreportdocument_custom.php | ||
* \ingroup digiriskdolibarr | ||
* \brief File of class to manage mod_auditreportdocument_custom numbering rules standard. | ||
*/ | ||
|
||
// Load Saturne libraries. | ||
require_once __DIR__ . '/../../../../../../saturne/core/modules/saturne/modules_saturne.php'; | ||
|
||
/** | ||
* Class to manage auditreportdocument numbering rules custom. | ||
*/ | ||
class mod_auditreportdocument_custom extends CustomModeleNumRefSaturne | ||
{ | ||
/** | ||
* @var string Numbering module ref prefix. | ||
*/ | ||
public string $prefix = 'ARD'; | ||
|
||
/** | ||
* @var string Name. | ||
*/ | ||
public string $name = 'Custom'; | ||
|
||
/** | ||
* Return description of module | ||
* | ||
* @param String $mode Either "standard" for normal prefix or "custom" | ||
* @return String Descriptive text | ||
*/ | ||
public function info($mode = 'custom'): string | ||
{ | ||
return parent::info($mode); | ||
} | ||
|
||
/** | ||
* Return next value | ||
* | ||
* @return string Value if OK, 0 if KO | ||
*/ | ||
public function getNextValue(object $object): string | ||
{ | ||
return parent::getNextCustomValue($object); | ||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...skdolibarr/digiriskdolibarrdocuments/firepermitdocument/mod_firepermitdocument_custom.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/* Copyright (C) 2021-2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* or see https://www.gnu.org/ | ||
*/ | ||
|
||
/** | ||
* \file core/modules/digiriskdolibarr/digiriskdolibarrdocuments/firepermitdocument/mod_firepermitdocument_custom.php | ||
* \ingroup digiriskdolibarr | ||
* \brief File of class to manage mod_firepermitdocument_custom numbering rules standard. | ||
*/ | ||
|
||
// Load Saturne libraries. | ||
require_once __DIR__ . '/../../../../../../saturne/core/modules/saturne/modules_saturne.php'; | ||
|
||
/** | ||
* Class to manage firepermitdocument numbering rules custom. | ||
*/ | ||
class mod_firepermitdocument_custom extends CustomModeleNumRefSaturne | ||
{ | ||
/** | ||
* @var string Numbering module ref prefix. | ||
*/ | ||
public string $prefix = 'FPD'; | ||
|
||
/** | ||
* @var string Name. | ||
*/ | ||
public string $name = 'Custom'; | ||
|
||
/** | ||
* Return description of module | ||
* | ||
* @param String $mode Either "standard" for normal prefix or "custom" | ||
* @return String Descriptive text | ||
*/ | ||
public function info($mode = 'custom'): string | ||
{ | ||
return parent::info($mode); | ||
} | ||
|
||
/** | ||
* Return next value | ||
* | ||
* @return string Value if OK, 0 if KO | ||
*/ | ||
public function getNextValue(object $object): string | ||
{ | ||
return parent::getNextCustomValue($object); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...riskdolibarr/digiriskdolibarrdocuments/groupmentdocument/mod_groupmentdocument_custom.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/* Copyright (C) 2021-2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* or see https://www.gnu.org/ | ||
*/ | ||
|
||
/** | ||
* \file core/modules/digiriskdolibarr/digiriskdolibarrdocuments/groupmentdocument/mod_groupmentdocument_custom.php | ||
* \ingroup digiriskdolibarr | ||
* \brief File of class to manage mod_groupmentdocument_custom numbering rules standard. | ||
*/ | ||
|
||
// Load Saturne libraries. | ||
require_once __DIR__ . '/../../../../../../saturne/core/modules/saturne/modules_saturne.php'; | ||
|
||
/** | ||
* Class to manage groupmentdocument numbering rules custom. | ||
*/ | ||
class mod_groupmentdocument_custom extends CustomModeleNumRefSaturne | ||
{ | ||
/** | ||
* @var string Numbering module ref prefix. | ||
*/ | ||
public string $prefix = 'GPD'; | ||
|
||
/** | ||
* @var string Name. | ||
*/ | ||
public string $name = 'Custom'; | ||
|
||
/** | ||
* Return description of module | ||
* | ||
* @param String $mode Either "standard" for normal prefix or "custom" | ||
* @return String Descriptive text | ||
*/ | ||
public function info($mode = 'custom'): string | ||
{ | ||
return parent::info($mode); | ||
} | ||
|
||
/** | ||
* Return next value | ||
* | ||
* @return string Value if OK, 0 if KO | ||
*/ | ||
public function getNextValue(object $object): string | ||
{ | ||
return parent::getNextCustomValue($object); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.