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
- Click Systems > Messages > Messages Management. The page Invoices shows the invoice messages you have already defined, by name.
- 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.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The name of the message in the list. | Yes | Must be different from every other invoice message. |
| Customers Group | The customers whose invoices are covered. | Yes | A customer group. See Customer Group Card. An invoice with no customer is never covered. |
| Header Cost Center | Covers only invoices whose header cost center is this one or one of its sub centers. | No | Empty: every cost center, and invoices with no cost center. |
| Header Warehouse | Covers only invoices whose header warehouse is this one or one of its sub warehouses. | No | Empty: every warehouse. |
| Branch | Covers only invoices of this branch and its sub branches. | No | Used only when branches are enabled in the file. Otherwise the program ignores it. |
| Invoices Forms | The invoice forms the message covers. | Yes | A check list. On a new message every form is ticked. The list shows the forms you may review. |
| Message Sending Events | The list of events that send the message. | Yes | Columns: Events and Condition. The message needs at least one row. |
| Button | What it does |
|---|---|
| Add | Opens a menu to choose the kind of event. See The Add menu. |
| Modify | Opens the selected row in the dialog of its kind. |
| Delete | Asks "Are you sure you want to DELETE ?". On Yes the row is deleted. |
| Ok | Checks the fields and saves the message and its rows. |
| Close | Closes 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.
| Item | Opens |
|---|---|
| Invoice Events | Invoice Events: events caused by actions on the invoice. |
| Reminder before Maturity Date | Maturity Date: a reminder days before the invoice is due. It needs the daily schedule. |
| Greetings through Invoices | Greeting 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.
- The condition of the event row: the balance condition, the first deal, or the date.
- 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.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Events | Check list of the events that send the messages of the row. | Yes | None is ticked on a new row. See The events. |
| Without | No balance condition. The three options are in the group Balance Conditions. | — | The default on a new row. It disables the fields below. |
| Specific Balance | The 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 card | The 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. |
| Messages | The messages of the row. | Yes | Columns: Sending Method, Customer and Users. At least one message. |
| Button | What it does |
|---|---|
| Add | Opens a menu with E-mail, Text Message and WhatsApp. See The Add menu of the messages. |
| Modify | Opens the selected message in the dialog of its channel. |
| Delete | Asks "Are you sure you want to DELETE ?" and deletes the message. With one message left it shows "At least there must be one message". |
| Ok | Checks the row and keeps it in the message. |
| Cancel | Closes 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
| Event | When the program sends it | Shown when |
|---|---|---|
| Add | After 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. |
| Modify | After 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 Warehouse | After the post command of the invoice window completes. | Always. |
| Generate Entry | After the generate entry command of the invoice window completes. | Always. |
| Post Entry | After the entry generated by the invoice is posted with Post in the entry window. | Always. |
| Approve Invoice | After 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 Clearance | After 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 reporting | After 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. |
| Reported | After the invoice is reported to the tax authority. Only when sending messages is on in the Saudi tax settings. | Same as above. |
| Written Declaration | After 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.
| Condition | The program sends the message when |
|---|---|
| Without | Always, once the event happens. |
| Specific Balance with Debit | The 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 Credit | The same for a credit balance. |
| Before Max. balance by client card with By value | The balance reaches the maximum of the account card minus the value because of this invoice. |
| Before Max. balance by client card with In percentage | The 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.
| Item | Opens |
|---|---|
| Send E-mail. It needs a working e-mail account. | |
| Text Message | The text message dialog. See Send Message Manually. It needs a working SMS provider. |
| The 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.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Remind me of maturity date before … Day | The number of days before the due date. | Yes | A whole number. A 0 becomes 1 when you leave the box. |
| Messages | The messages of the row. | Yes | The 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.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Greeting on First Deal by Branch | Counts the first deal per branch. | No | Unticked by default. |
| Greeting on First Deal by Cost Center | Counts the first deal per cost center. | No | Unticked by default. |
| Messages | The messages of the row. | Yes | The 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.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Subject | The subject of the e-mail. | Yes | Text. The fields below can be inserted too. |
| Message Text | The body of the e-mail. | Yes | Type text and insert fields. See the message body editor. |
| Insertion Fields | The fields you can insert into the text. | — | A tree of groups. See The fields. |
| Send to | The recipients. | Yes | A 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 attachment | Attaches the archived copy of the invoice. | No | The 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. |
| Button | What it does |
|---|---|
| Ok | Checks the message and adds it to the row. |
| Close | Closes 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
| Field | What the message contains |
|---|---|
| Client Name | The customer name. |
| Latin Name | The Latin name of the customer. |
| Prefix | The prefix of the customer. |
| Suffix | The suffix of the customer. |
| Current balance in client account currency | The 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 branch | The same, for the branch of the invoice. |
| Current balance in client account currency and invoice’s cost center | The same, for the header cost center of the invoice. |
| Current balance in client account currency and invoice’s cost center and branch | The same, for the cost center and the branch of the invoice. |
| Remaining amount to reach the maximum balance | The 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 Type | The word debit or credit for the balance of the customer account. Empty when it is zero. |
Invoice Info
| Field | What the message contains |
|---|---|
| Bill No | The invoice number between brackets. |
| Bill Date | The date of the invoice. |
| Invoice value by its currency | The total less the discount plus the additions plus the tax, in the invoice currency, with its code. |
| Maturity Date | The due date in the payment terms of the invoice. |
| Branch Name | The branch of the invoice. |
| Cost center | The header cost center. |
| Form Name | The name of the invoice form. |
| Bill Notes | The notes of the invoice. |
| Serial number | The serial number of the Saudi e-invoice. Shown only when the Saudi tax system is enabled. |
| File location | The link to the archive file of the e-invoice. Shown only with the Saudi tax system. |
| Protected file password | The password of the protected archive file. Shown only with the Saudi tax system. |
| Total invoice discount in its currency | The total discount, with the currency code. |
| Total invoice addition in its currency | The total additions, with the currency code. |
| Total invoice tax in its currency | The total tax, with the currency code. |
| Payment Type | Cash or On Credit. For an invoice paid with a paper, the name of the paper form. |
| Remaining Invoice Amount | The total of the invoice, including the other taxes, less the payments linked to it. It is 0 when no payment is linked. |
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 invoice form is ticked. | Tick at least one form. |
| Please add one event at least | The list of events is empty, or you tried to delete its only row. | Add an event. |
| Invalid value: Name exists! Please enter different name | Another invoice message has the same name. | Type a different name. |
| Invoices Forms Not Found | You 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 event | Ok in Invoice Events with no event ticked. | Tick an event. |
| At least there must be one message | Ok 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 subject | Subject is empty in Send E-mail. | Type a subject. |
| Please specify message text | Message Text is empty. | Type the text. |
| Please specify consignee | Send to has no tick. | Tick Customer or a user. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.