<?php
 namespace App\QcRules; class Invoice_Filter_CurrencyType extends FilterAbstract { public function checkFields(\App\QcRules\FieldsAbstract $fields, $context='') { $currTypes = []; foreach ($fields->rowsList as $row) { if ($row['currencyType']) { $currTypes[$row['currencyType']] = true; } } return $this->checkFields_multiValues(array_keys($currTypes)); } } 