Skip to content

Customer Specific Notifications

Andy Theuninck edited this page Jul 9, 2015 · 1 revision

Notifications are a mechanism to display a message when a particular customer makes a purchase. Information about notifications is stored in the CustomerNotifications table. Currently notifications are tied to accounts. Any person making a purchase on the account will see the same notification(s). The customerID field may support more granular control in the future but is not used yet. Any code that writes to this table should put a unique identifier in the source column to ensure it is only reading, updating, and deleting its own notification records.

The type column controls when messages are displayed. Currently supported values are:

  • receipt - these messages are printed on the footer of the receipt
  • blueline - these messages are appended to the value in custdata.blueLine before it is displayed on screen.
  • memlist - these messages are appended to the results displayed in a member search.

The message column contains the notification itself. The modifierModule is an optional class name. The class will be instantiated, if it exists, and should include a method named message that takes a string and returns a string. The modifier clause may alter the message value in the table based on activity in the current transaction before the message is actually displayed. Currently, on the receipt type supports this option.

Clone this wiki locally