Messages Management
The Messages Management window is where you define the messages that the program sends by itself: what is sent, at which event or date, and to whom. The window has a tab for each type of message. Each tab has a list of the defined messages and buttons to add, modify and delete a message.
This page gives the full explanation of four tabs: Account Movement, Accounts Balances, Commercial Papers and Special Occasions. The message list page holds what every tab shares. The tabs for invoices, orders, entries and materials control are in their own pages: Invoices Messages, Orders Messages, Entry voucher messages and Messages of Materials Control. The whole idea of automatic messages is in Understanding automatic messages.
Opening the window
- From the ribbon: Systems > Messages > Messages Management.
- The Messages group appears when your licence includes the messaging system.
- You need the permission Messages Management on the Operations page of Users Management. It is one check box. The tabs you see follow the permissions of the Messages page in Users Management (see Permissions).
- Before you add a message you need the sending accounts and the daily job: Set up messaging accounts.
The tabs
The window has a Close button and a list of tabs with icons. The program opens the window on the first visible tab. Each tab appears if your level is Review on its row of the Messages page in Users Management. The exception is Account Movement, which appears for everyone who opens the window.
| Tab | Permission row | What it defines | Explained in |
|---|---|---|---|
| Invoices | Invoices | Messages for invoice events, maturity reminders and greetings. | Invoices Messages |
| Orders | Orders | Messages for order events and the due payment date. | Orders Messages |
| Commercial Papers | Commercial papers | Messages for operations on commercial papers and maturity reminders. | Messages of Commercial Papers |
| Entries | Entries | Messages for saving entries. | Entry voucher messages |
| Materials Control | Materials Control | Messages for a change in material quantity and for expiry. | Messages of Materials Control |
| Account Movement | No row | Messages for posting an entry on an account. | Account Movement Messages |
| Accounts Balances | Accounts Balances | Scheduled messages with account balances. | Messages of Accounts Movement Balances |
| Special Occasions | Special Occasions | Birthdays, congratulations and scheduled information for customers. | Special Occasions Messages |
The message list page in every tab
Every tab opens the same page: a list of the names of the messages defined for this type, and three buttons under it. The Accounts Balances page adds a second column named Schedule Type.
| Item | What it does |
|---|---|
| The message list | The column Name with the names of the messages in the order they were created. Double-click a row to modify it, as Modify does. In Invoices, Accounts Balances and Special Occasions a double-click anywhere on the page works. |
| New | Opens a new message window. Always enabled in Account Movement. In the other tabs your level must be Add on the tab row. |
| Modify | Opens the selected message. Disabled when the list is empty. In the other tabs your level must be Modify on the tab row. |
| Delete | Asks: "Are you sure you want to DELETE ?". Yes deletes the selected message with its events and messages from the file at once. In Accounts Balances, and for a Scheduled Info occasion, it also deletes the scheduled job of the message. Disabled when the list is empty. In the other tabs your level must be Delete on the tab row. |
The Account Movement page puts no permission on the three buttons. In Special Occasions, New opens a new window only when the daily job exists (see Messages Settings). Otherwise this appears: "Please check schedule settings from " Messages Settings "". In Commercial Papers, New does not open if the file has no commercial paper form. The message is: "there are no commercial paper forms".
What a message holds
Every message you define, in any tab, is made of these parts:
| Part | What it is | Where you set it |
|---|---|---|
| Name | The name of the message. Required. In most tabs it does not repeat among the messages of the tab (see the name rule of each type). | The top of the message window. |
| Conditions | Whom or what the message is about: an account, a cost center, a branch, a customer group or forms. They differ by type. | The fields of the main window. |
| Events | What triggers the sending. In the types that work with events, you add them in the events window. | The list of events in the window. |
| Schedule | When scheduled messages are sent. See Schedule. | By type. |
| Messages | One or more. Each has a channel (e-mail, text message or WhatsApp), recipients and a text. | The message window. |
The message window
In the types whose window has a list of messages (commercial papers, special occasions, invoices, orders and others), the message windows open from the Add button and from Modify. There are three windows, one for each channel. Account Movement has the message text in its own window. Accounts Balances has no text: the program builds the message from the accounts grid.
| Channel | What it has |
|---|---|
| Subject, Message Text, the Insertion Fields tree and the Send to list. Invoice and order messages have an option to attach the archived invoice. | |
| Text Message | Message Text, Insertion Fields and Send to. |
| Message Text, Insertion Fields and Send to. |
- The Send to list has Customer first (for the types that relate to a customer), then the heading Users and under it the login names of the users. Tick whom you want. You must tick at least one, or this appears: "Please specify consignee".
- Message Text is required: "Please specify message text". In the e-mail message of invoices, orders, commercial papers, entries and materials control the Subject is also required: "Please enter a subject".
- The editor and the insertion fields are explained in Message text editor.
- An e-mail or a text message window opens only if its service is set up and tested. Otherwise this appears and the window does not open: "Please check e-mail settings from "Message Settings"" or "Please check SMS settings from "Message Settings"".
- Each window with its fields is explained in Send Message Manually and Message dialogs opened from other screens.
In nested windows, such as the commercial paper events window inside the commercial papers message window, Delete acts at once on what was saved before, and Cancel does not bring it back. Additions and changes are saved at OK in the main window of the message.
Events and conditions
In messages that work with events (invoices, orders, commercial papers, entries and materials control) there is a list of rows called "event and condition". Each row holds:
- Events: what triggers the sending: events that happen after an operation in the program, or a scheduled reminder such as Reminder before Maturity Date.
- Condition: what limits the row.
- The messages of the row: one or more. All of them are sent when the event happens.
The kinds of row, how events are chosen and what Condition shows differ by type: see each type's page. In commercial papers there are two kinds: events from a tree (condition empty) and a reminder (condition "Before N Day", where N is the number of days). In the main window of the message the buttons Add, Modify and Delete manage the rows. If the message has only one row, it is not deleted: "Please add one event at least". A scheduled row opens from the menu, and from a double-click, only if the daily job exists.
When you save, the program checks that there is at least one event ("At least there must be one event") and at least one message in each row ("At least there must be one message").
The events tree
The events tree shows main events with a folder icon, and under each one its sub-events. Each event has a check box. Click it to tick or clear the event. Only the event you click changes, unless you click with Ctrl. Then it changes together with everything under it. Tick at least one event. When you open a saved row, the program opens the main event that has a ticked sub-event under it.
When an event happens in the program, the messages of every row that has this event ticked are sent, if the condition of the message itself is met.
Schedule
Scheduled messages work with jobs in SQL Server Agent (see Understanding automatic messages). There are three sources of timing:
| Type | Who sets the time | What you set in the message |
|---|---|---|
| Maturity reminder (invoices, orders, commercial papers) | The daily job from Messages Settings. | The number of days before the date. |
| Material expiry, birthdays and congratulation | The same daily job. | The number of days before expiry for materials. Nothing for birthdays. For congratulation, its date and the number of days before it. |
| Accounts balances and the occasion "Scheduled Info" | A separate job for each message. | Schedule Type and Day, and the time of the message itself in accounts balances. |
In the windows with their own schedule:
| Field | Values |
|---|---|
| Schedule Type | Daily, Weekly and Monthly. |
| Day | Disabled for Daily. For Weekly: six days of the week, starting with the first day of the week in the program options. The last day of the week is not in the list. For Monthly: Last Day, then the numbers from 1 to 31. |
| Time | The hour, minute and second (in accounts balances only) with AM or PM. |
A scheduled job runs between the first date and the last date of the file's period. If SQL Server Agent is stopped on the server, these messages are not sent. After you restore a backup, use Messages Maintenance.
Account Movement Messages
A message is sent when an entry that has an item on an account you chose is posted, as debit or as credit. Add the message from the Account Movement tab with New. The window title is "Account Movement Messages".
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The name of the message. | Yes | Required. When you modify a message, the name must differ from the other account movement messages. A new message is saved even if its name exists. |
| Account | The account whose movement you watch. | Yes | It includes the sub-accounts of a parent account. A composite account is accepted. |
| Cost Center | Limits the message to the movement of a cost center. | No | Empty: all cost centers, and items with no cost center too. A cost center includes its children. |
| Branch | Limits the message to the entries of a branch. | No | Empty: all branches. The field is hidden when branches are not available. When branches are not enabled, the branch is not checked. |
| Account is debited | Send the message if the item is a debit. | No | On by default. You cannot clear both options: if you clear the last one, the program turns it back on. |
| Account is credited | Send the message if the item is a credit. | No | On by default. |
| Send the message by e-mail. | Choose at least one method. If e-mail is not set up and tested, "Please check e-mail settings from "Message Settings"" appears and the choice is cleared. | ||
| SMS | Send the message as a text message. | Same, with the SMS settings: "Please check SMS settings from "Message Settings"". | |
| Send the message by WhatsApp. | The program does not check the WhatsApp setup here. | ||
| Subject | The subject of the e-mail. | No | Enabled only with E-mail. Clearing E-mail clears the subject. |
| Message Text | One text for all chosen methods. | Yes | See Message text editor. |
| Insertion Fields | The tree of fields. Double-click a field to insert it. | The fields are in the table. | |
| Send to | The users who get the message. | Yes | A list of login names of users. Customer is not shown. The message reaches users only. |
The program does not check the subject in this window. When you open a message that has more than one method, the program shows the text and the recipients of the text message if there is one, otherwise of WhatsApp, otherwise of the e-mail. It shows the subject only when it shows the e-mail message.
The event happens when an entry is posted, for each item in it. If the item is on the chosen account (or one of its children), its cost center and the branch of the entry match, and it is a debit or a credit as you chose, the message is sent.
| Button | What it does |
|---|---|
| OK | Checks the name, the account and the duplicate name, then the method, the text and the recipients, and saves the message. |
| Close | Closes the window. After any change it becomes Cancel, and the program may ask before closing if the warn-on-cancel option is on. See Account Card. |
Insertion fields for account movement
| Group | Fields |
|---|---|
| Account Movement Info | Account Code, Account Name, Movement Value, Movement Type, Movement Currency, Exchange Rate, Movement Value Equivalent, Balance before Movement, Balance after Movement, Account Item Note. |
| Entry Info | Entry No., Entry Origin, Entry Date, Payment Cost Center Name, Branch Name, Form Name, Entry Description, Contra Account ( if checked ), User Name. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Empty Field: Please enter the name | Name is empty. | Type a name. |
| Empty Field: Account field is empty | Account is empty. | Choose an account. |
| Invalid value: Name exists! Please enter different name | You modified a message and another account movement message has this name. | Change the name. |
| Please specify sending method | None of E-mail, SMS and WhatsApp is ticked. | Tick a method. |
| Please specify message text | Message Text is empty. | Write the text. |
| Please specify consignee | No user is ticked in Send to. | Tick a user. |
Messages of Accounts Movement Balances
A scheduled message that sends account balances to users at a set time, for example every week. The window title is "Messages of Accounts Movement Balances". It appears in the Accounts Balances tab, which you see only with the level Review on the row Accounts Balances.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The name of the message. | Yes | It does not repeat among the messages. It is also the name of the scheduled job. |
| Schedule Type | How often to send. | Yes | Daily (default), Weekly and Monthly. |
| Day | The day of sending. | By type | Disabled for Daily. See Schedule. |
| Timing (H, M and S, and AM or PM) | The sending time. | Yes | A new window starts with the current time. The hour from 1 to 12, the minute and second from 0 to 59. |
| Text Message, E-mail and WhatsApp Message | The sending methods. | At least one | E-mail and text messages need their service set up and tested. Otherwise the settings message appears and the choice is cleared. |
| Subject | The subject of the e-mail. | No | Works with E-mail only. |
| Show the message name in the first line | Puts the name of the message at the start of the text. | No | Works with Text Message only. It stays disabled when you open a saved message until you change Text Message. |
| Send to Users | The list of login names of users. | Yes (one at least) | The message goes to the e-mail and the phone number of the user from the user card. |
| Report Resources | The list of document types whose balances are counted: entries, invoices and commercial papers. | Yes (one at least) | All are ticked when you add. |
| The accounts grid | A row for each balance in the message. | Yes (one row at least) | See the next table. |
The columns of the accounts grid:
| Column | Description |
|---|---|
| Account Name | The account. Type part of its code or name. If you choose several accounts from the search, they fill consecutive rows. The account includes its children. |
| Customer Name | Limits the balance to a customer. Choosing a customer fills its account automatically. |
| Cost Center | Limits the balance to a cost center. Empty: all cost centers. |
| Branch | Limits the balance to a branch. Empty: all branches. |
| Name in Message | A text that appears with the balance in the message. |
| From and To Date | The start and the end of the period, from a list: Beginning Date, Start of Previous Month, End of Previous Month, Start of Current Month, Start of Previous Week, End of Previous Week, Start of Current Week, Previous Day and Current Day. The default is from Beginning Date to Current Day. The list does not accept an end before the start. Weeks are counted from the first day of the week in the program options. |
The balance that appears for each row is the total of debit minus the total of credit of the posted entry items between the two dates, from the document types chosen in Report Resources, and by cost center and branch if you set them. It is written in the currency of the account, with its code. The names of accounts and customers are written in Arabic if the program was in Arabic when you saved, and otherwise in the Latin name if there is one.
| Button | What it does |
|---|---|
| Ok | Checks the message, saves it, and creates a scheduled job for it in SQL Server Agent with its name. |
| Close | Closes the window. |
A note appears at the bottom of the window: "Note: To execute schedule, ensure that SQL Server Agent is running."
At the set time the program builds a message for each chosen user, by the chosen methods. E-mail goes to the address on the user card, and the text message and WhatsApp to the user's phone number.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Empty Field: Please enter the name | Name is empty. | Type a name. |
| Invalid value: Name exists! Please enter different name | The name exists. | Change the name. |
| Must enter one account - at least - in the table | The grid is empty. | Enter an account. |
| Please enter one form at least | Nothing is ticked in Report Resources. | Tick a type. |
| Please select one user at least | No user is ticked. | Tick a user. |
| Please select sending method | No method is ticked. | Tick a method. |
| Select hour between 1 and 12 | The hour is not valid. | Correct it. |
| Select Minutes between 0 and 59 | The minute is not valid. | Correct it. |
| Select Seconds between 0 and 59 | The second is not valid. | Correct it. |
Messages of Commercial Papers
Sent after operations on a commercial paper, or before its maturity date. The window title is "Messages of Commercial Papers". In the Commercial Papers tab click New.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The name of the message. | Yes | It does not repeat among commercial paper messages. |
| Customers Group | The customers the papers belong to. | Yes | A card from Customer Group Card. The message is sent for a paper whose account is the account of a customer in the group. |
| Cost Center | Limits to the cost center of the paper. | No | Empty: all cost centers. A cost center includes its children. |
| Branch | Limits to the branch of the paper. | No | Empty: all branches. Not checked when branches are not enabled. |
| Commercial Papers | The list of paper forms in the file. | Yes (one at least) | All forms are ticked in a new message. |
| The Message Sending Events list | The rows of events and conditions. | Yes (one row at least) | The columns Events and Condition. Explained in Events and conditions. |
| Button | What it does |
|---|---|
| Add | Opens a menu with the two kinds of row. |
| Modify | Opens the selected row: the events window or the reminder window, by its kind. |
| Delete | Deletes the row after the question. If it is the last one, "Please add one event at least" appears. |
| Ok | Checks the message and saves it. |
| Cancel | Closes without saving the additions and changes. |
The menu of the Add button
It opens with any click on Add:
| Item | What it opens |
|---|---|
| Commercial Paper Events | The events window. If no form is ticked in Commercial Papers, "Please enter one form at least" appears instead. |
| Reminder before Maturity Date | The reminder window. It needs the daily job. Otherwise "Please check schedule settings from " Messages Settings "" appears. |
Commercial Paper Events
The window title is "Commercial Paper Events".
| Item | Description |
|---|---|
| Events | The events tree. Tick at least one event. |
| Messages | The messages of the row. Its columns are Sending Method, Customer (a mark that shows whether it goes to the customer) and Users. |
| Add | Opens a menu of the methods. |
| Modify | Opens the selected message (or double-click it). |
| Delete | Deletes the message after the question. If it is the only one, "At least there must be one message" appears. |
| Ok | Checks that there is an event and a message, then returns the row to the message. |
| Close | Closes the window. |
The menu of the Add button
| Item | What it opens |
|---|---|
| An e-mail message window. | |
| Text Message | A text message window. |
| A WhatsApp message window. |
The e-mail and text message windows open if their service is set up and tested. Otherwise the settings message appears.
The events tree of commercial papers
An event happens after the operation that carries its name succeeds on the paper in the commercial paper window. Some events also happen for papers that entries and invoices create.
| Main event | Sub-events | Note |
|---|---|---|
| Issue Paper | Modify Paper, Return to origin, Retrieve from supplier and Deliver note payable | Issue Paper happens when the paper is created. Return to origin is for a paper you receive, and Retrieve from supplier for a paper you pay, when it is returned. |
| Receive | Partial receipt | The first is for the whole paper you receive, the second for a part of it. |
| Send for collection | Return from collection, Collect and Return to origin from collection | |
| Endorse | Retrieve from endorsement, Endorsed due with balance and Endorsed due without balance | |
| Send for discounting | Return from discounting, Don't approve discounting, Approve discounting, Discounted due with balance and Discounted due without balance | |
| Pay | Partial pay | The first is for the whole paper you pay, the second for a part of it. |
There are no events for cancellations such as Cancel receipt.
Reminder before Maturity Date
The window title is "Maturity Date". The same window is used in invoice and order messages (see Invoices Messages).
| Item | Description | Required | Values and rules |
|---|---|---|---|
| Remind me of maturity date before | The number of days before the maturity date of the paper. | Yes | A whole number. Default 1. If you leave 0, the program changes it to 1. |
| Messages | The list of messages: Sending Method, Customer and Users. | Yes (one message at least) | As in the events window. |
| Add | A menu with E-mail, Text Message and WhatsApp. | The menu. | |
| Modify and Delete | As in the events window. | The last message is not deleted. | |
| Ok | Checks that there is a message and returns the row. | "At least there must be one message". | |
| Cancel | Closes without saving. |
The reminder is sent every day when the maturity date of the paper is exactly the number of days you typed away. For example, 3 is sent on the day that is three days before maturity. This runs at the time of the daily job.
The menu of the Add button
| Item | What it opens |
|---|---|
| An e-mail message window. | |
| Text Message | A text message window. |
| A WhatsApp message window. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Empty Field: Please enter the name | Name is empty. | Type a name. |
| Empty Field: Please specify customers group | Customers Group is empty. | Choose a group. |
| Please enter one form at least | No form is ticked in Commercial Papers. | Tick a form. |
| Please add one event at least | The list of events has no row. | Add a row. |
| Invalid value: Name exists! Please enter different name | The name exists. | Change the name. |
| there are no commercial paper forms | The file has no commercial paper form. | Create a form first. |
| At least there must be one event | No event is ticked in the events window. | Tick an event. |
| At least there must be one message | The row has no message. | Add a message. |
| Please check schedule settings from " Messages Settings " | The daily job is not created. | Messages Settings. |
Special Occasions Messages
Messages that reach customers on occasions: their birthday, a congratulation date, or information that the program gives them regularly. The window title is "Special Occasions Messages". In the Special Occasions tab you need the daily job to add a message.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The name of the message. | Yes | It does not repeat among occasion messages. |
| Customers Group | The customers who get the message. | Yes | A card from Customer Group Card. |
| Occasion | The type of occasion. | Yes | Client birthday (default), Scheduled Info and Congratulation. Your choice changes the items of the window, as in the next table. |
| Schedule Type and Day | The schedule of sending. | With Scheduled Info | They appear only with Scheduled Info. Daily, Weekly and Monthly, as in Schedule. |
| Date of Congratulation | The date of the occasion. | With Congratulation | It appears only with Congratulation. A full date with its year, such as 20-3-2026. |
| Send before (Day) | The number of days before the congratulation date. | With Congratulation | It appears only with Congratulation. A whole number. A negative number becomes 0 when you leave the field. 0 means on the day itself. |
| Messages | The list of messages of the occasion, with the column Sending Method. | Yes (one message at least) |
| Occasion | When it is sent | Customers |
|---|---|---|
| Client birthday | Every day whose day and month match Date of Birth in the customer card, at the time of the daily job. | The customers of the group who have a date of birth. |
| Scheduled Info | By Schedule Type and Day, in a separate job for each message, at the time in Messages Settings. | All customers of the group. |
| Congratulation | Before Date of Congratulation by the days in Send before, at the time of the daily job. | All customers of the group. |
Each Scheduled Info message has its own job, but every one of these jobs sends all the Scheduled Info messages of the file. If you define more than one, each is sent at the times of all of them.
No occasion reaches a customer who did not allow this method (e-mail, text message or WhatsApp) in the customer card. The birth data is in Follow customers' special occasions.
| Button | What it does |
|---|---|
| Add | Opens a menu of the methods. |
| Modify | Opens the selected message. A double-click anywhere in the window works like Modify. |
| Delete | Deletes the message after the question. If it is the only one, "At least there must be one message" appears. |
| Ok | Checks and saves. For the occasion Scheduled Info it creates the scheduled job with the name of the message. If you change it to another type, it deletes the job. |
| Close | Closes the window. |
The menu of the Add button
| Item | What it opens |
|---|---|
| An e-mail message window for the customer. | |
| Text Message | A text message window for the customer. |
| A WhatsApp message window. |
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Empty Field: Please enter the name | Name is empty. | Type a name. |
| Empty Field: Please specify customers group | Customers Group is empty. | Choose a group. |
| Invalid value: Name exists! Please enter different name | The name exists. | Change the name. |
| At least there must be one message | The list has no message. | Add a message. |
| Please check schedule settings from " Messages Settings " | The daily job is not created. | Messages Settings. |
Permissions
Each user or group has a Messages page in Users Management, with the rows Invoices, Orders, Commercial papers, Entries, Materials Control, Accounts Balances and Special Occasions, and the columns Add, Review, Modify and Delete. The page appears when the licence includes the messaging system. It is explained in Users Management.
| Column | What it controls here |
|---|---|
| Review | The appearance of the tab of the type. |
| Add | Enabling New in the tab of the type. |
| Modify | Enabling Modify (and a double-click does not open the message without it). |
| Delete | Enabling Delete. |
There is no row for Account Movement. The command Messages Management itself needs a permission on the Operations page.
The level menu of messages
On the Messages page the usual level menu appears when you click a cell. It has Prevent, (inherit), None and Low, and the group window adds (Inherit for Users). It is explained in The level menu.
Messages
The messages of each type are in its section. These are the messages of the shared page:
| Message | Why it appears | What to do |
|---|---|---|
| Are you sure you want to DELETE ? | You pressed Delete. | Yes deletes at once, and No cancels. |
| Please check schedule settings from " Messages Settings " | You pressed New in Special Occasions and the daily job is not created. | Create it from Messages Settings. |
| there are no commercial paper forms | You pressed New in Commercial Papers and the file has no form. | Create a form. |
| Please check e-mail settings from "Message Settings" | You tried to add an e-mail message and the service is not set up or not tested. | Set up messaging accounts. |
| Please check SMS settings from "Message Settings" | The same for a text message. | Set up messaging accounts. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.