Skip to main content

Invoices Messages

An invoices message tells the customer, the users you choose, or both, that something happened to an invoice. You choose which invoices it covers, which events send it and, for some events, a condition on the customer balance or on a date. This page describes the Invoices Messages dialog and the dialogs opened from it. The general ideas are in Understanding automatic messages. The fields of the message sheet that every type shares are in Messages Management.

Opening the window​

  1. Click Systems > Messages > Messages Management. The page Invoices shows the invoice messages you have already defined, by name.
  2. Click New to define a message, or select one and click Modify. Double-clicking a row also opens it.

The page Invoices is in the list only if your user has the Review permission for Invoices on the Messages tab of the user card. See the Messages tab. New, Modify and Delete need the Add, Modify and Delete permissions of the same row. Without Modify a double-click does nothing.

The messages system must be in your licence. Without it the program sends nothing, whatever you define here.

New shows the message "Invoices Forms Not Found" when the file has no invoice form.

The Invoices Messages dialog​

The dialog describes which invoices the message covers and lists the events that send it.

FieldDescriptionRequiredValues and rules
NameThe name of the message in the list.YesMust be different from every other invoice message.
Customers GroupThe customers whose invoices are covered.YesA customer group. See Customer Group Card. An invoice with no customer is never covered.
Header Cost CenterCovers only invoices whose header cost center is this one or one of its sub centers.NoEmpty: every cost center, and invoices with no cost center.
Header WarehouseCovers only invoices whose header warehouse is this one or one of its sub warehouses.NoEmpty: every warehouse.
BranchCovers only invoices of this branch and its sub branches.NoUsed only when branches are enabled in the file. Otherwise the program ignores it.
Invoices FormsThe invoice forms the message covers.YesA check list. On a new message every form is ticked. The list shows the forms you may review.
Message Sending EventsThe list of events that send the message.YesColumns: Events and Condition. The message needs at least one row.
ButtonWhat it does
AddOpens a menu to choose the kind of event. See The Add menu.
ModifyOpens the selected row in the dialog of its kind.
DeleteAsks "Are you sure you want to DELETE ?". On Yes the row is deleted.
OkChecks the fields and saves the message and its rows.
CloseCloses the dialog.

A row you Delete from a message that was already saved is deleted from the file at once. Close does not bring it back. A row you add or change is kept only when you click Ok.

Delete is refused with "Please add one event at least" when the list has only one row.

The Add menu​

Clicking Add opens a menu. Each item opens the dialog of its kind.

ItemOpens
Invoice EventsInvoice Events: events caused by actions on the invoice.
Reminder before Maturity DateMaturity Date: a reminder days before the invoice is due. It needs the daily schedule.
Greetings through InvoicesGreeting Messages after Adding First Invoice: a greeting at the first deal with a customer.

The second item and Modify on a maturity row show "Please check schedule settings from " Messages Settings "" when the daily job was not created in Messages Settings. The job is set in Messages Settings. See the schedule.

When the program sends the message​

For each event, the program tests two things. Both must be true before any message of the row is sent.

  1. The condition of the event row: the balance condition, the first deal, or the date.
  2. The conditions of the dialog above: the form of the invoice is ticked, its customer is in the group, and its header cost center, header warehouse and branch are inside what you chose.

Then the program sends every message of the row to its recipients. The recipients, the channels and the sending are described in Understanding automatic messages.

Checks on Ok​

The program checks in this order and stops at the first problem: Name, Customers Group, Invoices Forms, the events list, and a duplicate Name. The messages are in Messages.

Invoice Events​

The dialog Invoice Events defines one row: the events that send the messages of the row and a condition on the customer balance.

FieldDescriptionRequiredValues and rules
EventsCheck list of the events that send the messages of the row.YesNone is ticked on a new row. See The events.
WithoutNo balance condition. The three options are in the group Balance Conditions.—The default on a new row. It disables the fields below.
Specific BalanceThe message goes when the balance of the customer reaches an amount.—Next to it: the amount (not below 0) and a list with Debit or Credit.
Before Max. balance by client cardThe message goes before the balance reaches the maximum set in the customer account card.—Next to it: a value and a list with By value or In percentage. With In percentage a % sign shows, and a value over 100 becomes 100.
MessagesThe messages of the row.YesColumns: Sending Method, Customer and Users. At least one message.
ButtonWhat it does
AddOpens a menu with E-mail, Text Message and WhatsApp. See The Add menu of the messages.
ModifyOpens the selected message in the dialog of its channel.
DeleteAsks "Are you sure you want to DELETE ?" and deletes the message. With one message left it shows "At least there must be one message".
OkChecks the row and keeps it in the message.
CancelCloses without keeping the row.

On Ok the program shows "At least there must be one event" when no event is ticked. It shows "At least there must be one message" when the list is empty. The row is kept in the message only when you click Ok in the dialog Invoices Messages too.

The events​

EventWhen the program sends itShown when
AddAfter an invoice is added in the invoice window. Also for an invoice made by posting an order or by a point of sale payment.Always.
ModifyAfter an invoice is modified in the invoice window. Also when a point of sale order of the invoice is modified or its number is changed.Always.
Post to WarehouseAfter the post command of the invoice window completes.Always.
Generate EntryAfter the generate entry command of the invoice window completes.Always.
Post EntryAfter the entry generated by the invoice is posted with Post in the entry window.Always.
Approve InvoiceAfter the invoice is approved in the Saudi e-invoice process and its archive file is saved.The Saudi tax system is enabled in the file.
Invoice ClearanceAfter the tax authority clears the invoice. Only when sending messages is on in the Saudi tax settings.The second phase of the Saudi tax system is enabled.
Ready for reportingAfter the invoice is saved as ready to be reported to the tax authority. Only when sending messages is on in the Saudi tax settings.Same as above.
ReportedAfter the invoice is reported to the tax authority. Only when sending messages is on in the Saudi tax settings.Same as above.
Written DeclarationAfter an invoice is added or modified in the invoice window, when at least one of its items needs a written declaration.The tax country of the file is the Emirates and the written declaration is enabled.

Automatic posting when an invoice is saved, and the bulk operations that generate entries and post invoices, do not send Post to Warehouse or Generate Entry.

Balance conditions​

The conditions read the entry lines of the invoice for the customer account. An invoice that has no entry gives no message for Specific Balance or Before Max. balance by client card. The balance is the posted balance of the customer account in the currency of the account. The program shows the amount without its sign.

ConditionThe program sends the message when
WithoutAlways, once the event happens.
Specific Balance with DebitThe debit balance of the customer, for the header cost center and branch of the message, reaches the amount because of this invoice. Before the invoice it was below the amount.
Specific Balance with CreditThe same for a credit balance.
Before Max. balance by client card with By valueThe balance reaches the maximum of the account card minus the value because of this invoice.
Before Max. balance by client card with In percentageThe balance reaches the maximum minus that percentage of the maximum because of this invoice.

For the last two rows, the maximum comes from the maximum balance of the customer account card. It must be set with a warning. For a maximum of a credit kind the balance is compared as a credit. This test takes the balance of the account for all cost centers and branches.

With Specific Balance and Debit, the message is also sent when the invoice takes the customer's balance to the maximum of the account card, if the card has a maximum with a warning.

The list of the dialog shows the condition as text, for example Client debit balance reach to and the amount, or Before client balance reach the maximum according to the card with Client in Amount or Client in Percentage.

The Add menu of the messages​

The menu of Add in this dialog is the same in every dialog of this page that has a list of messages.

ItemOpens
E-mailSend E-mail. It needs a working e-mail account.
Text MessageThe text message dialog. See Send Message Manually. It needs a working SMS provider.
WhatsAppThe WhatsApp dialog of the same page.

If the account of the channel is not working, the program shows "Please check e-mail settings from "Message Settings"" or "Please check SMS settings from "Message Settings"". Set the accounts in Set up messaging accounts.

Maturity Date​

The dialog Maturity Date sends a reminder a number of days before the due date of the invoice. It is the same window for invoices, orders and commercial papers.

FieldDescriptionRequiredValues and rules
Remind me of maturity date before … DayThe number of days before the due date.YesA whole number. A 0 becomes 1 when you leave the box.
MessagesThe messages of the row.YesThe same list and buttons as in Invoice Events.

Ok and Cancel work as in that dialog. The list of the invoice dialog shows the row as Reminder of Maturity Date with the condition Before … Day.

The due date is the maturity date saved in the payment terms of the invoice. See Set payment terms of a bill. The program runs the check once a day, at the time set in Messages Settings. It sends the messages for invoices whose due date is exactly the chosen number of days after that day.

Greeting Messages after Adding First Invoice​

The dialog sends a greeting when an invoice is the first deal with a customer. The event is always Add.

FieldDescriptionRequiredValues and rules
Greeting on First Deal by BranchCounts the first deal per branch.NoUnticked by default.
Greeting on First Deal by Cost CenterCounts the first deal per cost center.NoUnticked by default.
MessagesThe messages of the row.YesThe same list and buttons as in Invoice Events.

The program sends the greeting when, after the invoice is added, it is the only invoice of that customer and that invoice form. Only the invoices of the warehouses, cost centers and branches of the message are counted. If you tick a box, only invoices with the same branch or the same cost center as this invoice are counted. When the message has a cost center but no branch, only the cost-center box counts. When it has a branch but no cost center, only the branch box counts. Invoices of order forms are never counted. The list of the invoice dialog shows the row with the condition On First Deal.

Ok shows "At least there must be one message" when the list is empty.

Send E-mail​

The dialog Send E-mail writes one e-mail message of a row. It opens from Add > E-mail. It is also used for orders.

FieldDescriptionRequiredValues and rules
SubjectThe subject of the e-mail.YesText. The fields below can be inserted too.
Message TextThe body of the e-mail.YesType text and insert fields. See the message body editor.
Insertion FieldsThe fields you can insert into the text.—A tree of groups. See The fields.
Send toThe recipients.YesA check list. Customer sends to the customer of the invoice. Users lists the users of the file. Tick at least one.
Send archived invoice as attachmentAttaches the archived copy of the invoice.NoThe program attaches the latest copy saved by the automatic archive of the invoice. If there is none, it sends the e-mail without it. With the Saudi tax system, when its automatic archive and message sending are on, the e-invoice archive file is attached instead.
ButtonWhat it does
OkChecks the message and adds it to the row.
CloseCloses without keeping the message.

The checks on Ok are in Messages.

The fields you can insert​

In a message of an invoice the tree Insertion Fields has these fields. The program replaces each one with the value for the invoice that caused the message. The same fields are used in every channel.

Client Info​

FieldWhat the message contains
Client NameThe customer name.
Latin NameThe Latin name of the customer.
PrefixThe prefix of the customer.
SuffixThe suffix of the customer.
Current balance in client account currencyThe balance of the customer account from posted entries, for all cost centers and branches, with the currency code. It has no sign.
Current balance in client account currency and invoice branchThe same, for the branch of the invoice.
Current balance in client account currency and invoice’s cost centerThe same, for the header cost center of the invoice.
Current balance in client account currency and invoice’s cost center and branchThe same, for the cost center and the branch of the invoice.
Remaining amount to reach the maximum balanceThe difference between the maximum balance of the account card and the balance, with the currency code. When the maximum is exceeded, the text "Exceeded the amount" comes before the amount. It is 0 when the account has no maximum.
Balance TypeThe word debit or credit for the balance of the customer account. Empty when it is zero.

Invoice Info​

FieldWhat the message contains
Bill NoThe invoice number between brackets.
Bill DateThe date of the invoice.
Invoice value by its currencyThe total less the discount plus the additions plus the tax, in the invoice currency, with its code.
Maturity DateThe due date in the payment terms of the invoice.
Branch NameThe branch of the invoice.
Cost centerThe header cost center.
Form NameThe name of the invoice form.
Bill NotesThe notes of the invoice.
Serial numberThe serial number of the Saudi e-invoice. Shown only when the Saudi tax system is enabled.
File locationThe link to the archive file of the e-invoice. Shown only with the Saudi tax system.
Protected file passwordThe password of the protected archive file. Shown only with the Saudi tax system.
Total invoice discount in its currencyThe total discount, with the currency code.
Total invoice addition in its currencyThe total additions, with the currency code.
Total invoice tax in its currencyThe total tax, with the currency code.
Payment TypeCash or On Credit. For an invoice paid with a paper, the name of the paper form.
Remaining Invoice AmountThe total of the invoice, including the other taxes, less the payments linked to it. It is 0 when no payment is linked.

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 invoice form is ticked.Tick at least one form.
Please add one event at leastThe list of events is empty, or you tried to delete its only row.Add an event.
Invalid value: Name exists! Please enter different nameAnother invoice message has the same name.Type a different name.
Invoices Forms Not FoundYou clicked New in a file with no invoice form.Define an invoice form first.
Are you sure you want to DELETE ?You clicked Delete on a row or on a message.Click Yes to delete.
Please check schedule settings from " Messages Settings "You added or opened a maturity row while the daily job was not created in Messages Settings.Create the job in Messages Settings.
At least there must be one eventOk in Invoice Events with no event ticked.Tick an event.
At least there must be one messageOk in a row dialog with no message.Add a message.
Please check e-mail settings from "Message Settings"You chose E-mail while no e-mail account works.Set up the account.
Please check SMS settings from "Message Settings"You chose Text Message while no SMS provider works.Set up the provider.
Please enter a subjectSubject is empty in Send E-mail.Type a subject.
Please specify message textMessage Text is empty.Type the text.
Please specify consigneeSend to has no tick.Tick Customer or a user.

This page applies to alameen ERP 10, version 10.1.79.764.