0) '. 'AND ((devices.order_only_missing_parts = false) '. 'OR (parts.instock - device_parts.quantity * devices.order_quantity < parts.mininstock)))) '. 'AND (parts.order_orderdetails_id IS NOT NULL) '. 'AND (orderdetails.id_supplier = ?)'; $query_data = $this->database->query($query, array($this->getID())); return (int) $query_data[0]['count']; */ //TODO throw new \Exception('Not implemented yet!'); } /** * Returns the ID as an string, defined by the element class. * This should have a form like P000014, for a part with ID 14. * * @return string The ID as a string; */ public function getIDString(): string { return 'L'.sprintf('%06d', $this->getID()); } }