Цитата:
Сообщение от
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. В других версиях может быть отличия