setUniqueName('invoice_number'); $this->setLoggable(); $this->setLockable(); //$this->setHashable('inv_hash'); $this->setTableShortCut('inv'); } function check(){ if(empty($this->virtuemart_order_id)){ vmTrace('Table invoices check virtuemart_order_id missing'); return false; } return parent::check(); } }