I am trying to configure something similar to DateOnChange() in a report with MainDataCompositionSchema. The problem is that if a user selects EndOfPeriod, the programm takes a date with the time 00:00:00. Therefore the user has to change ist manually to 23:59:59, otherwise the data are wrong (it does not consider documents created e.g. at 12:15:13).
Query is
Code
WHERE SalesTabak.Period >= &BeginOfPeriod
AND SalesTabak.Period <= &EndOfPeriod
In another report with the code in modul it works fine:
You can also use this method for parameter on the Parameters tab in Data Composition Schema. If you need more information you can look example in 1C:Enterprise 8.3 Practical developer guide about Parameters tab (pages 315-319).