Contatto Contact
Show All Awards & Recognition
Contatto
Show All Awards & Recognition

Number Sequence Generator

reviewed

last reviewed: 17.07.2018

Master Data Management

Autore:

Pimcore Core Team

Versione

v1.0.3

Ultimo aggiornamento

Versione Pimcore Compatibile

v5.0

Contatto

Pimcore Core Team

Problema

https://github.com/pimcore/number-sequence-generator/issues

0  Revisore

Number Sequence Generator

Master Data Management

Descrizione Progetto

Generates continous numbers for example for order numbers or customer numbers.


Leggimi

Number Sequence Generator Bundle

Continues numbers

Generates continous numbers for example for order numbers or customer numbers.

$generator = \Pimcore::getContainer()->get(\Pimcore\Bundle\NumberSequenceGeneratorBundle\Generator::class);

/*
* Generates the next order number (increments current order number by 1)
* If no order number was generated before it will start with 10000
*/
$next = $generator->getNext('ordernumber', 10000);

/*
* Receive the current order number without incrementing the counter.
*/
$current = $generator->getCurrent('ordernumber');

/*
* Sets the order number to 35017 in the database.
*/
$generator->setCurrent('ordernumber', 35017);

Random numbers (either numeric or alphanumeric)

Generates unique random numbers.

$generator = \Pimcore::getContainer()->get(\Pimcore\Bundle\NumberSequenceGeneratorBundle\RandomGenerator::class);
$code = $generator->generateCode("vouchercode", \Pimcore\Bundle\NumberSequenceGeneratorBundle\RandomGenerator::ALPHANUMERIC, 32);

Stato Revisione

reviewed

last reviewed: 17.07.2018

?>

Autore:

Pimcore Core Team

Versione

v1.0.3

Ultimo aggiornamento

Versione Pimcore Compatibile

v5.0

Contatto

Pimcore Core Team

Problema

https://github.com/pimcore/number-sequence-generator/issues

0  Revisore