07.10.2019, 16:48 | #1 |
Участник
|
erconsult: Electronic Reporting (ER) Cookbook 3: Working with dates
Источник: http://erconsult.eu/blog/electronic-...te-formatting/
============== Following the parts 1 and 2 of my hints and tips collection for Electronic reporting, let me shed some light on working with dates and date formatting. Cut-off date If a classic Excel transaction report must be implemented in the Electronic Reporting module, then a cut-off date is a common requirement: show all transactions up to and including a certain date, or show all transactions if the user hasn’t selected any date. Classically, a parameter in the dialog is presented to the user, this requires a User parameter of the DATE type in the format or – better – in the date model mapping (see also Electronic reporting in depth). This parameter must be used in a Calculated field of the Record List type. Below is a snippet from one of my very first reports dated back to 2016; it extracts ledger transactions from the current company for the German GDPdU dump file: WHERE(GLaccountEntry, AND( NOT(GLaccountEntry.AccountingCurrencyAmount=0), GLaccountEntry.'>Relations'.GeneralJournalEntry.Ledger = Ledger.'current()', GLaccountEntry.'>Relations'.GeneralJournalEntry.'>Relations'.FiscalCalendarPeriod.Type = FiscalPeriodType.Operating, GLaccountEntry.'>Relations'.GeneralJournalEntry.AccountingDate >= FromDate, OR(GLaccountEntry.'>Relations'.GeneralJournalEntry.AccountingDate
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|