public function Invoice::setInvoiceNumber in Commerce Invoice 7.2
Same name and namespace in other branches
- 8.2 src/Entity/Invoice.php \Drupal\commerce_invoice\Entity\Invoice::setInvoiceNumber()
Sets the invoice number.
Parameters
InvoiceNumber $number:
File
- src/
Entity/ Invoice.php, line 58 - Invoice entity.
Class
Namespace
Drupal\commerce_invoice\EntityCode
public function setInvoiceNumber(InvoiceNumber $number) {
$this->number_key = $number
->getKey();
$this->number_sequence = $number
->getSequence();
$this->number_pattern = $number
->getPatternName();
}