Показать сообщение отдельно
Старый 30.07.2007, 09:20   #4  
KiselevSA is offline
KiselevSA
Злыдни
Аватар для KiselevSA
Злыдни
Лучший по профессии 2015
 
958 / 333 (13) ++++++
Регистрация: 25.01.2002
Адрес: Москва
Цитата:
Сообщение от Rika22 Посмотреть сообщение
Документация по финансам, страница 54. Там все очень подробно описано.
Может быть в документации так и описано, но вот что вижу в коде на MenuButton:Functions
X++:
void clicked()
{
    boolean factureVisiblePurch = LedgerJournalTrans.isTaxCorrection_RU(false, FactureBook_RU::Purch),
            factureVisibleSales = LedgerJournalTrans.isTaxCorrection_RU(false, FactureBook_RU::Sales),
            factureEnabledPurch = factureVisiblePurch       &&
                                  LedgerJournalTable.Posted &&
                                  LedgerJournalTrans.OffsetAccountType != LedgerJournalACType::Cust,
            factureEnabledSales = factureVisibleSales       &&
                                  LedgerJournalTable.Posted &&
                                  LedgerJournalTrans.OffsetAccountType != LedgerJournalACType::Vend;

    FactureEditLinesSeparator_RU.visible(factureVisiblePurch || factureVisibleSales);
    FactureEditLinesTaxCorrectionPurch_RU.visible(factureVisiblePurch || factureVisibleSales);
    FactureEditLinesTaxCorrectionSales_RU.visible(factureVisiblePurch || factureVisibleSales);

    FactureEditLinesTaxCorrectionPurch_RU.enabled(factureEnabledPurch);
    FactureEditLinesTaxCorrectionSales_RU.enabled(factureEnabledSales);


    super();
}
Делайте вывод сами. Это 3.0 SP2. В других версиях может быть отличия
__________________
люди...считают, что если техника не ломается, то ее не нужно ремонтировать. Инженеры считают, что если она не ломается, то нуждается в совершенствовании.