|
![]() |
#1 |
Axapta
|
Пока есть только такие описания:
Цитата:
Цитата:
The LedgerEntryJournal table contains the journal group information.
Цитата:
The GeneralJournalEntry table contains the general journal header information.
Цитата:
Сообщение от Михаил Андреев
![]() Оттуда же, похоже, "ноги растут" и для префикса SubLedger. Это, видимо, модульный журнал. Но название SubledgerVoucherGeneralJournalEntry меня вогнало в ступор
![]() Короче, надо документацию искать. Наверняка, это описано где-то. Цитата:
The SubledgerVoucherGeneralJournalEntry table holds the relationship of a voucher to a general journal entry.
|
|
![]() |
#2 |
Administrator
|
Цитата:
Сам общий журнал (LedgerJournalTable) получается "переехал" в GeneralJournalEntry (general journal header). Опять-таки - а чтобы Ledger не вынести в начало? Допускаю, что у этой таблицы могут быть наследники (типа InventJournalTable). Ну пусть тогда будет начинаться с Journal, т.к. определяющим в данном случае является Journal, а не General. Т.е варианты: JournalEntryTable или LedgerJournalEntryTable. Связь между ваучером (надо пойти почитать мануал на эту тему) и общим журналом (SubledgerVoucherGeneralJournalEntry) опять-таки просится как LedgerJournalVourcherEntry или LedgerJournalVoucherEntryLink. В любом случае хочется оставить начало LedgerJournal,
__________________
Возможно сделать все. Вопрос времени |
|
![]() |
#3 |
MCT
|
Подумал, что логично будет в этот раскрученный топик закинуть инфу по расчету курса
X++: static void ExchangeRate(Args _args) { // from CurrencyExchangeHelper class CurrencyExchangeHelper currencyExchangeHelper; TransDate transactionDate = today(); CurrencyCode transactionCurrency = 'USD'; AmountCur amountToConvert = 100.50; boolean shouldRoundResult = true; AmountMst result; currencyExchangeHelper = CurrencyExchangeHelper::newExchangeDate( Ledger::current(), transactionDate); result = currencyExchangeHelper.calculateTransactionToAccounting( transactionCurrency, amountToConvert, shouldRoundResult); info(strfmt("%1",result)); } X++: static void ExchangeRate2(Args _args) { ExchangeRateHelper exchangeRateHelper; TransDate transactionDate = today(); CurrencyCode transactionCurrency = 'USD'; CurrencyExchangeRate exchangeRate1; CurrencyExchangeRate exchangeRate2; exchangeRateHelper = ExchangeRateHelper::newExchangeDate( Ledger::current(), transactionCurrency, transactionDate); exchangeRate1 = exchangeRateHelper.getExchangeRate1(); exchangeRate2 = exchangeRateHelper.getExchangeRate2(); info (strfmt("ExchRate1= %1; ExchRate2= %2", exchangeRate1, exchangeRate2)); }
__________________
Axapta book for developer |
|
Теги |
ax2012, как правильно |
|
|