AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 07.03.2015, 02:23   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Sending email receipts from Retail POS Transactions
Источник: http://blogs.msdn.com/b/axsupport/ar...nsactions.aspx
==============

There seems to be limited information on how the "Send email receipts" functionality works. This blog is intended to help provide the basic information and links on how to configure and send email receipts for EPOS transactions.

To get started, you will first need to configure a SMTP server to send the emails. The link below will take you to the TechNet article that walks you through the steps to configure this.

Configure email functionality in Microsoft Dynamics AX
https://technet.microsoft.com/en-us/.../aa834374.aspx

You will then need to configure the email receipts settings in the Retail. There are 3 options for how receipts will be printed/sent: POS, e-mail, or both. You can set these to be specific to a Customer or in the Retail parameters. The Retail parameters setting will be used when you ring up a transaction at the EPOS without a customer. See the TechNet link below for details on setting these configurations.

Set up email receipts
https://technet.microsoft.com/en-us/...or=-2147217396

Set default options for email receipts
1. Click Retail > Setup > Parameters > Retail parameters.
2. Click the Posting tab, and then under Email receipt, in the Receipt option field, select an option as the default:
◦ POS – Print receipts from the point-of-sale register.
◦ E-mail – Send receipts to customers in email messages.
◦ Both – Print receipts from the point-of-sale register and send receipts to customers in email messages.
3. In the Subject field, enter the text that appears by default in the subject line of a receipt that is sent as an email message.
4. In the File name field, enter the file name of the recipient’s email attachment. Do not include the file extension.

Set email receipt options for a customer
1. Click Accounts receivable > Common > Customers > All customers.
2. On the All customers list page, select a customer, and then, on the Customer tab, in the Maintain group, click Edit.
3. In the Customers form, on the Retail FastTab, select an option in the Receipt option field:
◦ POS – The customer will receive only printed receipts. The printed receipt is generated from the point-of-sale register.
◦ E-mail – The customer will receive only email receipts.
◦ Both – The customer will receive both a printed receipt and an email receipt.
4. In the Receipt email field, enter the customer’s email address if you selected either E-mail or Both in the Receipt option field.

Create body text for the email message
1. Click Accounts receivable > Setup > Forms > Form notes.
2. Click New to create a new form note, and then in the Form field, select Retail Headquarters Receipt, and specify a language.
3. On the Form note FastTab, enter the text that you want for the body of the email message.

Depending on the settings that you configured, you will need to run the respective Distribution schedule jobs to sync these changes to POS.
1. 1010 - Customer
2. 1110 - Global configuration

When you launch POS and process a transaction for a customer with the option to email the receipt, you will be prompted to enter the "E-mail address for receipt". This does perform a quick validation on the entered text to ensure it is in an email address format.

Run the P-job to sync your POS transactions back to AX. Even though the transaction is now in the RetailTransactions tables in AX, we are not able to send the receipts yet. The RetailEmailReceipts class is looking for transactions with an RetailEntryStatus of Posted.

Generate a new statement for the store. Perform the Calculate Statement and Post Statement processes to post POS transactions.

Now run the "Send email receipts" periodic process under Retail >> Periodic to send out the receipts to the customers as PDF attachments. The attachments are created from a SSRS report named RetailTransactions. If these are processed in batch, it will use the AOS to send emails from the configured SMTP server. Be aware that if this is ran outside of batch, it will attempt to send the emails through the local computers default email client.

If we were to look in the AX database at the RETAILTRANSACTIONTABLE table, there is a RECEIPTEMAIL field with the customers associated email address and a RECEIPTEMAILSENT (only in AX database) field that indicates if the email has been sent. RECEIPTEMAILSENT is initially set to 0 and will be set to 1 after the “Send email receipts” has successfully processed.

NOTE: The steps above are the out of box design to only send emails after the statement is posted, which would be at the end of the day for a normal business scenario. I understand that this may not meet customer expectations as the expectation is that receipts are received within minutes of the transaction. In order to send the emails at a higher interval outside of posting the transactions on a statement, you can customize the process by starting to look at the RetailEmailReceipts and RetailEmailReceiptSenderBatchJob Classes.

There are probably various customization options that you could use to send these emails receipts. Feel free to let the community know your ideas by using the comments section below.











Источник: http://blogs.msdn.com/b/axsupport/ar...nsactions.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
emeadaxsupport: AX 2012 R2 for Retail - Configuring POS for test mode with Dynamics Online payment service Blog bot DAX Blogs 0 11.10.2013 03:12
emeadaxsupport: AX for Retail 2012 R2: Adding a Custom User Control to the POS Blog bot DAX Blogs 0 27.02.2013 07:14
emeadaxsupport: AX2012 Retail: MS Sync Service fails to synchronize transactions from offline database Blog bot DAX Blogs 0 15.08.2012 09:11
dynamicsaxtraining: Purchase Blog bot DAX Blogs 0 11.03.2012 05:25
emeadaxsupport: Retail: How to access multiple POS from one machine Blog bot DAX Blogs 0 26.08.2011 21:13
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 02:13.