The payment of commission for services or products sold is a common way to reward sales people.
The purpose of this blog post is to provide some guidance and inspiration as to how one might go about customizing the Retail POS to link different POS transactions to different sales people in order for these to earn commission.
It is important to note that any code suggestion or samples included in this post adhere to the following disclaimer:
"Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and the tools that are used to create and debug procedures."
First, it is important to know that in standard Retail POS there is no “set salesperson” operation. There is a “Clear salesperson” operation but this is currently of little use, according to the following TechNet article:
The article refers to a table that lists the operations that a staff member can perform in Retail POS. Below is a snap shot of said table:
This somewhat limits the possibilities of action and forces you to customize a bit if you wish to have added functionality within this area.
In the Retail POS plug-ins, you will find several interesting artifacts to use in order to create this functionality:
Therefore, in order to support the “changing salesperson” functionality, what you have to do is:
Note that if you want to be able to do it before a transaction is started, you have to create a temporary object, which will be used as a reference every time a sale item is added.
In the end, when you run the P-* Job, you will get the salespersonID in the sale lines of the transactions and be able to analyze that.
A big thanks goes to Christopher Lim - Associate Consultant, Center of Excellence – for providing the content for this article.
Thank you for your attention!
Eric VesterSupport EngineerMicrosoft Dynamics AX, SCMCSS/EMEA