Skip to main content

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.

TabPermission rowWhat it definesExplained in
InvoicesInvoicesMessages for invoice events, maturity reminders and greetings.Invoices Messages
OrdersOrdersMessages for order events and the due payment date.Orders Messages
Commercial PapersCommercial papersMessages for operations on commercial papers and maturity reminders.Messages of Commercial Papers
EntriesEntriesMessages for saving entries.Entry voucher messages
Materials ControlMaterials ControlMessages for a change in material quantity and for expiry.Messages of Materials Control
Account MovementNo rowMessages for posting an entry on an account.Account Movement Messages
Accounts BalancesAccounts BalancesScheduled messages with account balances.Messages of Accounts Movement Balances
Special OccasionsSpecial OccasionsBirthdays, 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.

ItemWhat it does
The message listThe 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.
NewOpens a new message window. Always enabled in Account Movement. In the other tabs your level must be Add on the tab row.
ModifyOpens the selected message. Disabled when the list is empty. In the other tabs your level must be Modify on the tab row.
DeleteAsks: "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:

PartWhat it isWhere you set it
NameThe 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.
ConditionsWhom 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.
EventsWhat triggers the sending. In the types that work with events, you add them in the events window.The list of events in the window.
ScheduleWhen scheduled messages are sent. See Schedule.By type.
MessagesOne 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.

ChannelWhat it has
E-mailSubject, Message Text, the Insertion Fields tree and the Send to list. Invoice and order messages have an option to attach the archived invoice.
Text MessageMessage Text, Insertion Fields and Send to.
WhatsAppMessage 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.
note

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:

TypeWho sets the timeWhat 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 congratulationThe 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:

FieldValues
Schedule TypeDaily, Weekly and Monthly.
DayDisabled 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.
TimeThe 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".

FieldDescriptionRequiredValues and rules
NameThe name of the message.YesRequired. 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.
AccountThe account whose movement you watch.YesIt includes the sub-accounts of a parent account. A composite account is accepted.
Cost CenterLimits the message to the movement of a cost center.NoEmpty: all cost centers, and items with no cost center too. A cost center includes its children.
BranchLimits the message to the entries of a branch.NoEmpty: all branches. The field is hidden when branches are not available. When branches are not enabled, the branch is not checked.
Account is debitedSend the message if the item is a debit.NoOn by default. You cannot clear both options: if you clear the last one, the program turns it back on.
Account is creditedSend the message if the item is a credit.NoOn by default.
E-mailSend 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.
SMSSend the message as a text message.Same, with the SMS settings: "Please check SMS settings from "Message Settings"".
WhatsAppSend the message by WhatsApp.The program does not check the WhatsApp setup here.
SubjectThe subject of the e-mail.NoEnabled only with E-mail. Clearing E-mail clears the subject.
Message TextOne text for all chosen methods.YesSee Message text editor.
Insertion FieldsThe tree of fields. Double-click a field to insert it.The fields are in the table.
Send toThe users who get the message.YesA 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.

ButtonWhat it does
OKChecks the name, the account and the duplicate name, then the method, the text and the recipients, and saves the message.
CloseCloses 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​

GroupFields
Account Movement InfoAccount Code, Account Name, Movement Value, Movement Type, Movement Currency, Exchange Rate, Movement Value Equivalent, Balance before Movement, Balance after Movement, Account Item Note.
Entry InfoEntry No., Entry Origin, Entry Date, Payment Cost Center Name, Branch Name, Form Name, Entry Description, Contra Account ( if checked ), User Name.

Messages​

MessageWhy it appearsWhat to do
Empty Field: Please enter the nameName is empty.Type a name.
Empty Field: Account field is emptyAccount is empty.Choose an account.
Invalid value: Name exists! Please enter different nameYou modified a message and another account movement message has this name.Change the name.
Please specify sending methodNone of E-mail, SMS and WhatsApp is ticked.Tick a method.
Please specify message textMessage Text is empty.Write the text.
Please specify consigneeNo 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.

FieldDescriptionRequiredValues and rules
NameThe name of the message.YesIt does not repeat among the messages. It is also the name of the scheduled job.
Schedule TypeHow often to send.YesDaily (default), Weekly and Monthly.
DayThe day of sending.By typeDisabled for Daily. See Schedule.
Timing (H, M and S, and AM or PM)The sending time.YesA 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 MessageThe sending methods.At least oneE-mail and text messages need their service set up and tested. Otherwise the settings message appears and the choice is cleared.
SubjectThe subject of the e-mail.NoWorks with E-mail only.
Show the message name in the first linePuts the name of the message at the start of the text.NoWorks with Text Message only. It stays disabled when you open a saved message until you change Text Message.
Send to UsersThe 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 ResourcesThe 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 gridA row for each balance in the message.Yes (one row at least)See the next table.

The columns of the accounts grid:

ColumnDescription
Account NameThe 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 NameLimits the balance to a customer. Choosing a customer fills its account automatically.
Cost CenterLimits the balance to a cost center. Empty: all cost centers.
BranchLimits the balance to a branch. Empty: all branches.
Name in MessageA text that appears with the balance in the message.
From and To DateThe 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.

ButtonWhat it does
OkChecks the message, saves it, and creates a scheduled job for it in SQL Server Agent with its name.
CloseCloses 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​

MessageWhy it appearsWhat to do
Empty Field: Please enter the nameName is empty.Type a name.
Invalid value: Name exists! Please enter different nameThe name exists.Change the name.
Must enter one account - at least - in the tableThe grid is empty.Enter an account.
Please enter one form at leastNothing is ticked in Report Resources.Tick a type.
Please select one user at leastNo user is ticked.Tick a user.
Please select sending methodNo method is ticked.Tick a method.
Select hour between 1 and 12The hour is not valid.Correct it.
Select Minutes between 0 and 59The minute is not valid.Correct it.
Select Seconds between 0 and 59The 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.

FieldDescriptionRequiredValues and rules
NameThe name of the message.YesIt does not repeat among commercial paper messages.
Customers GroupThe customers the papers belong to.YesA card from Customer Group Card. The message is sent for a paper whose account is the account of a customer in the group.
Cost CenterLimits to the cost center of the paper.NoEmpty: all cost centers. A cost center includes its children.
BranchLimits to the branch of the paper.NoEmpty: all branches. Not checked when branches are not enabled.
Commercial PapersThe list of paper forms in the file.Yes (one at least)All forms are ticked in a new message.
The Message Sending Events listThe rows of events and conditions.Yes (one row at least)The columns Events and Condition. Explained in Events and conditions.
ButtonWhat it does
AddOpens a menu with the two kinds of row.
ModifyOpens the selected row: the events window or the reminder window, by its kind.
DeleteDeletes the row after the question. If it is the last one, "Please add one event at least" appears.
OkChecks the message and saves it.
CancelCloses without saving the additions and changes.

The menu of the Add button​

It opens with any click on Add:

ItemWhat it opens
Commercial Paper EventsThe events window. If no form is ticked in Commercial Papers, "Please enter one form at least" appears instead.
Reminder before Maturity DateThe 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".

ItemDescription
EventsThe events tree. Tick at least one event.
MessagesThe messages of the row. Its columns are Sending Method, Customer (a mark that shows whether it goes to the customer) and Users.
AddOpens a menu of the methods.
ModifyOpens the selected message (or double-click it).
DeleteDeletes the message after the question. If it is the only one, "At least there must be one message" appears.
OkChecks that there is an event and a message, then returns the row to the message.
CloseCloses the window.

The menu of the Add button​

ItemWhat it opens
E-mailAn e-mail message window.
Text MessageA text message window.
WhatsAppA 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 eventSub-eventsNote
Issue PaperModify Paper, Return to origin, Retrieve from supplier and Deliver note payableIssue 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.
ReceivePartial receiptThe first is for the whole paper you receive, the second for a part of it.
Send for collectionReturn from collection, Collect and Return to origin from collection
EndorseRetrieve from endorsement, Endorsed due with balance and Endorsed due without balance
Send for discountingReturn from discounting, Don't approve discounting, Approve discounting, Discounted due with balance and Discounted due without balance
PayPartial payThe 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).

ItemDescriptionRequiredValues and rules
Remind me of maturity date beforeThe number of days before the maturity date of the paper.YesA whole number. Default 1. If you leave 0, the program changes it to 1.
MessagesThe list of messages: Sending Method, Customer and Users.Yes (one message at least)As in the events window.
AddA menu with E-mail, Text Message and WhatsApp.The menu.
Modify and DeleteAs in the events window.The last message is not deleted.
OkChecks that there is a message and returns the row."At least there must be one message".
CancelCloses 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​

ItemWhat it opens
E-mailAn e-mail message window.
Text MessageA text message window.
WhatsAppA WhatsApp message window.

Messages​

MessageWhy it appearsWhat to do
Empty Field: Please enter the nameName is empty.Type a name.
Empty Field: Please specify customers groupCustomers Group is empty.Choose a group.
Please enter one form at leastNo form is ticked in Commercial Papers.Tick a form.
Please add one event at leastThe list of events has no row.Add a row.
Invalid value: Name exists! Please enter different nameThe name exists.Change the name.
there are no commercial paper formsThe file has no commercial paper form.Create a form first.
At least there must be one eventNo event is ticked in the events window.Tick an event.
At least there must be one messageThe 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.

FieldDescriptionRequiredValues and rules
NameThe name of the message.YesIt does not repeat among occasion messages.
Customers GroupThe customers who get the message.YesA card from Customer Group Card.
OccasionThe type of occasion.YesClient birthday (default), Scheduled Info and Congratulation. Your choice changes the items of the window, as in the next table.
Schedule Type and DayThe schedule of sending.With Scheduled InfoThey appear only with Scheduled Info. Daily, Weekly and Monthly, as in Schedule.
Date of CongratulationThe date of the occasion.With CongratulationIt 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 CongratulationIt appears only with Congratulation. A whole number. A negative number becomes 0 when you leave the field. 0 means on the day itself.
MessagesThe list of messages of the occasion, with the column Sending Method.Yes (one message at least)
OccasionWhen it is sentCustomers
Client birthdayEvery 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 InfoBy Schedule Type and Day, in a separate job for each message, at the time in Messages Settings.All customers of the group.
CongratulationBefore Date of Congratulation by the days in Send before, at the time of the daily job.All customers of the group.
note

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.

ButtonWhat it does
AddOpens a menu of the methods.
ModifyOpens the selected message. A double-click anywhere in the window works like Modify.
DeleteDeletes the message after the question. If it is the only one, "At least there must be one message" appears.
OkChecks 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.
CloseCloses the window.

The menu of the Add button​

ItemWhat it opens
E-mailAn e-mail message window for the customer.
Text MessageA text message window for the customer.
WhatsAppA WhatsApp message window.

Messages​

MessageWhy it appearsWhat to do
Empty Field: Please enter the nameName is empty.Type a name.
Empty Field: Please specify customers groupCustomers Group is empty.Choose a group.
Invalid value: Name exists! Please enter different nameThe name exists.Change the name.
At least there must be one messageThe 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.

ColumnWhat it controls here
ReviewThe appearance of the tab of the type.
AddEnabling New in the tab of the type.
ModifyEnabling Modify (and a double-click does not open the message without it).
DeleteEnabling 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:

MessageWhy it appearsWhat 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 formsYou 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.

This page applies to alameen ERP 10, version 10.1.79.764.