mod_barcode_thirdparty_standard
class mod_barcode_thirdparty_standard extends ModeleNumRefBarCode (View source)
Class to manage barcode with standard rule
Properties
| $name | |||
| string | $version | Dolibarr version of the loaded document |
|
| string | $error | from CommonNumRefGenerator | |
| string[] | $errors | from CommonNumRefGenerator | |
| protected DoliDB | $db | from CommonNumRefGenerator | |
| int<0, 1> | $code_null | ||
| int<0, 1> | $code_modifiable | ||
| int<0, 1> | $code_modifiable_invalide | ||
| int<0, 1> | $code_modifiable_null | ||
| int<0, 1> | $code_auto | from CommonNumRefGenerator | |
| int<0, 1> | $prefixIsRequired | ||
| string | $nom | Name for the GeneratorModel |
from ModeleNumRefBarCode |
| string | $searchcode | ||
| int<0, max> | $numbitcounter | Number of digits for the counter (not bits, but digits) |
Methods
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
Return an example of result returned by getNextValue
Return next value
Return description of module parameters
Constructor
Return literal barcode type code from numerical rowid type of barcode
Return if a code is used (by other element)
Return if a barcode value match syntax
Details
string
getNom($langs)
Return model name
@param Translate $langs Object langs
string
getName($langs)
Return model name
@param Translate $langs Object langs
bool
isEnabled()
Return if a module can be used or not
string
info(Translate $langs)
Return description of module
bool
canBeActivated(CommonObject $object)
Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
string
getVersion()
Returns version of numbering module
string
getExample(Translate $langs = null, CommonObject $objthirdparty = null)
Return an example of result returned by getNextValue
getNextValue(CommonObject $objthirdparty = null, string $type = '')
Return next value
getToolTip($langs, Societe $soc, $type)
Return description of module parameters
@param Translate $langs Output language
verif(DoliDB $db, string $code, Societe|Product $thirdparty, $thirdparty_type, $type)
Check validity of code according to its rules
__construct()
Constructor
literalBarcodeType(DoliDB $db, $type = 0)
Return literal barcode type code from numerical rowid type of barcode
int
verif_dispo(DoliDB $db, string $code, Societe $thirdparty)
Return if a code is used (by other element)
int
verif_syntax(string $codefortest, $typefortest)
Return if a barcode value match syntax