public function ViewsSort::query in Commerce Invoice 7.2
File
- src/
InvoiceNumber/ ViewsSort.php, line 14 - Provides views sort handler for invoice numbers.
Class
Namespace
Drupal\commerce_invoice\InvoiceNumberCode
public function query() {
$this
->ensure_my_table();
$this->query
->add_orderby($this->table_alias, 'number_pattern', $this->options['order']);
$this->query
->add_orderby($this->table_alias, 'number_key', $this->options['order']);
$this->query
->add_orderby($this->table_alias, 'number_sequence', $this->options['order']);
}