protected function Generator::getNextSequence in Commerce Invoice 7.2
Calculates the next sequential number for this pattern.
Parameters
string $key:
Return value
int
1 call to Generator::getNextSequence()
- Generator::getNext in src/
InvoiceNumber/ Generator.php - Returns the next invoice number for the pattern.
File
- src/
InvoiceNumber/ Generator.php, line 58 - Invoice Number Generator
Class
- Generator
- Invoice number generator.
Namespace
Drupal\commerce_invoice\InvoiceNumberCode
protected function getNextSequence($key) {
$last = $this
->getLastSequence($key) ?: 0;
return $last + 1;
}