<?php
 namespace App\QcRules; class Invoice_Filter_ServiceTicketNumber extends FilterAbstract { public function checkFields(\App\QcRules\FieldsAbstract $fields, $context='') { foreach($fields->rowsList as $row) { if (in_array($row['serviceCode'], $this->values) and !$row['serviceHasTickets']) { return false; } } return true; } }