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