This topic describes the complete configuration to email the accounting reports.
You have to configure the settings to email the accounting reports in the [Configuration] workflow:
Enable accounting
You have to enable accounting to:
Collect accounting information.
Enable dialog [Email accounting reports automatically]. This dialog is hidden when accounting is disabled.
Configure the settings to email the accounting reports automatically
Configure the default email settings and create a scheduled task.
Select which reports you want to attach to the email
Select and configure the reports. You can configure custom email settings.
You can manage the accounting reports in workspace [Reporting].
Click [System] - [Accounting and reporting] - [Accounting] - [Accounting workflow].
Enable the [Enable accounting] option.
Configure the credentials for the SQL server.
The same SQL server is used for the payment workflow, see [System] - [Connectivity] - [Payment providers]. When you change the settings for the SQL server in that dialog, the settings will also change in this dialog and vice versa.
Define the [Computer name \ instance name:].
With this option, you define where the accounting database is stored. For example: SQL_server_name\SQL_server_instance_name.
You have to define how the [Order processing] connects to the accounting database. The authentication type depends on the location of the SQL server:
Location of the SQL server |
Description |
---|---|
Local SQL server |
SQL authentication (recommended) Type the account credentials of an existing login account for the SQL server. |
Remote SQL server inside the domain |
Windows authentication (recommended) The Windows user credentials are used for the authentication. The user is not prompted for a user name and password. |
SQL server outside the domain |
SQL authentication (mandatory) Type the account credentials as defined by the customer for the SQL server. |
Type the password of user sa. You have defined the password for user sa when you installed PRISMAdirect.
Accounting information can be collected when the user has system administration rights on the accounting database.
[Test connection]
Click this button to test the connection to the SQL server.
Click [Save].
The dialog [Email accounting reports automatically] becomes available when you have enabled accounting. See the above procedure.
Click [System] - [Accounting and reporting] - [Reporting] - [Email accounting reports automatically].
Configure the default email settings.
Enable the [Email accounting reports automatically] option.
Define the default email address. This is the email address of the recipient of the reports.
When you add more than one email address, you must use a semicolon to separate the addresses.
[File format for report:]
The reports are converted into the selected format. The converted reports are attached to the email.
[Reporting period [months]:]
The accounting reports for the defined reporting period are emailed.
Create a scheduled task.
Click [New trigger].
Define when you want the task to start.
You can define that the task is executed once, or you can set a recurrence pattern. Define the start date and enable or disable the task.
Type the username and password for the user. This user runs the task.
The [AutomaticReportsEmailSender] task is created in the task scheduler. The task is executed with the provided credentials.
The task generates the selected reports before emailing the reports. The reports generated via the scheduled task are saved on the server in the "Asset" folder. You can select the reports in dialog [Accounting reports].
Click [Save].
Click [System] - [Accounting and reporting] - [Reporting] - [Accounting reports].
Enable option [Email the report] for each report you want to attach to the email. You can select one or more reports.
The report filenames (*.rpt) are displayed in this dialog. However, the report titles are displayed in workspace [Reporting]. It is recommended that the filename and the title of a report are similar when you create a new report.
Click the report to configure the report settings.
Define the email address.
[Default]
Send the report to the recipient defined in dialog [Email accounting reports automatically]
[Custom]
Define a custom email address for the recipient. The custom email address overrules the default email address for this report.
When you add more than one email address, you must use a semicolon to separate the addresses.
[Attach the report]
The report is attached as a file to the email.
[Add hyperlink to report to the email]
A link is added to the email. Click the link to open the report on the server.
[Overwrite existing report]
You can keep all versions of this report, or you can overwrite any existing reports on the server.
[Delete existing report automatically]
Enable this option to automatically delete the report on the server when a new report is generated. You can type a value in the spinbox for the number of days.
Click [Save].