Application->recallObject($this->Prefix); $payment_type_object =& $this->Application->recallObject('pt'); $currency_object =& $this->Application->recallObject('curr.active'); $pt_id = $payment_type_object->GetDBField('PaymentTypeId'); $curr_id = $currency_object->GetDBField('CurrencyId'); $sql = 'SELECT * FROM '.$object->TableName.' WHERE PaymentTypeId='.$pt_id.' AND CurrencyId='.$curr_id; $res = $this->Conn->GetOne($sql); return $res ? 1 : 0; } }