Показать сообщение отдельно
Старый 07.07.2009, 19:13   #10  
glibs is offline
glibs
Member
Сотрудники компании It Box
Most Valuable Professional
Лучший по профессии 2011
Лучший по профессии 2009
 
4,942 / 911 (40) +++++++
Регистрация: 10.06.2002
Адрес: I am from Kyiv, Ukraine. Now I am in Moscow. For private contacts: glibs@hotmail.com
Нашел. Это либо

\Data Dictionary\Tables\EmplAdvLine_RU\Methods\checkExchRate

либо

\Data Dictionary\Tables\LedgerJournalTrans\Methods\checkExchRate

в 3.0 было.

Вот код 4.0

X++:
private boolean checkExchRate()
{
    boolean ret = true;
    ;

    if (this.ExchRate != 100.00 && this.CurrencyCode == CompanyInfo::standardCurrency())
    {
        ret = checkFailed(strfmt("@SYS85793", ExchRates::displayExchRate(100)));
    }
    return ret;
}

private boolean checkExchRate()
{
    boolean ret = true;

    if (this.CurrencyCode == CompanyInfo::standardCurrency())
    {
        if (this.ExchRate != 100.00)
        {
            ret = checkFailed(strfmt("@SYS85793", ExchRates::displayExchRate(100)));
        }
    }
    return ret;
}
__________________
С уважением,
glibs®