<?php
 namespace App\QcRules; class SupplierInvoice_Filter_SupplierCountry extends FilterAbstract { public function checkFields(\App\QcRules\FieldsAbstract $fields, $context='') { $supplierCountry = \Entity\Supplier::select($fields->idSupplier)->countryCode; return $this->checkFields_oneValue($supplierCountry); } } 