Introduction

This article describes how a new user report is generated for r_keeper 7 cash station. This option is required, among other things, for viewing reports from the cash report server (for closed shifts).

Users can create their own cash report layouts containing fields from the OLAP cubes.

Report Generation Process

Example of generating Deleted Receipts cash report with the date filter:

  1. Make a copy of the pre-installed Deleted Receipts cube from the Checks group
  2. The created cube must be correctly recalculated when the Recalculate operation is called from the context menu of the object shortcut
  3. The cube must have the Data for Reports purpose
  4. The selected cube should have the System Name in Latin characters (A-Z a-z)



  5. Create the new document named Cash Report (Settings > Print > Documents and Layouts, in the User reports section)
  6. Create a new layout. Its name should match the name of the cash report.



  7. Add an OLAP cube:
  8. Open the cube for viewing its fields
  9. Configure the cube fields in order to set filtering by days
  10. Modify the Date external dimension the following way:
  11. Once the cube is selected and configured, go to the Printing Layouts tab, create a new layout and open the Layout Designer.
  12. An empty layout will open. Add the required bands and memo fields.
  13. On the Assistant tab, click Dataset and outline the band area moving from the upper left to the lower right corner while holding the left mouse button pressed.



  14. To create a memo field, you can also use the Assistant tab. Add fields from the list and click ОK to save the results.


  15. Check the Build on report server box in the document layout properties.


  16. To use this report at the cash station, drag the layout to add it to the printing scheme (relevant for all the cash reports).


  17. At the cash station, this report will show data from the SQL database according to the cube settings.


Example of Using Filter by Category

  1. To configure a filter by a category, add a new external dimension in the cube fields — check the Code box in the Classification tab.


  2. Next, you open the layout, and in the band properties, set the filter named Filter := ([ClassificationCode]=XXXX), where XXXX is the code of the required dish category.
  3. If the error "Unknow identifier 'CUBE_NAME'" occurs after trying to save the changes, see the 4 paragraph.


  4. The error Unknown identifier 'TestCheckCube' appears because the cube structure has the 'dead' COST (net price) field. When trying to select this dimension in the cube structure, the error message Field not found in cube structure occurs. To fix this error, you need to:
  5. To delete the field, you should open the fields of your report OLAP cube, press COST in the external dimensions sector, and confirm its deletion. After deleting the field, perform actions from par. 2.