BusinessDocumentCode
in package
Description of BusinessDocumentCode
Tags
Table of Contents
- GAP_LIMIT = 1000
- getNewCode() : string
- getOtherExercises() : array<string|int, mixed>
- getSequence() : SecuenciaDocumento
- setNewCode() : void
- setNewNumber() : void
- getNewNumber() : string
- getPrevious() : array<string|int, mixed>
Constants
GAP_LIMIT
public
mixed
GAP_LIMIT
= 1000
Methods
getNewCode()
public
static getNewCode(SecuenciaDocumento &$sequence, BusinessDocument &$document) : string
Parameters
- $sequence : SecuenciaDocumento
- $document : BusinessDocument
Return values
string —getOtherExercises()
public
static getOtherExercises(SecuenciaDocumento $sequence) : array<string|int, mixed>
Parameters
- $sequence : SecuenciaDocumento
Return values
array<string|int, mixed> —getSequence()
public
static getSequence(BusinessDocument $document) : SecuenciaDocumento
Parameters
- $document : BusinessDocument
Return values
SecuenciaDocumento —setNewCode()
public
static setNewCode(BusinessDocument &$document[, bool $newNumber = true ]) : void
Parameters
- $document : BusinessDocument
- $newNumber : bool = true
Return values
void —setNewNumber()
public
static setNewNumber(BusinessDocument &$document) : void
Parameters
- $document : BusinessDocument
Return values
void —getNewNumber()
protected
static getNewNumber(SecuenciaDocumento &$sequence, BusinessDocument &$document) : string
Parameters
- $sequence : SecuenciaDocumento
- $document : BusinessDocument
Return values
string —getPrevious()
protected
static getPrevious(SecuenciaDocumento $sequence, BusinessDocument $document) : array<string|int, mixed>
Parameters
- $sequence : SecuenciaDocumento
- $document : BusinessDocument