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