Vous êtes sur la page 1sur 7

Practice: Extensibility Retail POS

High Level Steps


1. Scenario.
2. Exercise 1 scenario.
3. Task 1 scenario.
Open the Blank Operation project in Visual studio.
1. Hover over the bottom to display the taskbar.
2. Click the Windows Explorer icon.
3. Click Local Disk (C:).
4. Navigate to the folder 'C:\Users\Administrator\Documents\Retail SDK\PO Plug-ins'.
5. Double-click Services.
6. Double-click the Services.sln file.
7. Expand the BlankOperations project.
8. Right-click the References node.
9. Click Add Reference....
10. Click Browse....
11. Navigate to the Retail POS folder.
12. Select POSProcesses.DLL.
13. Click Add.
14. Click OK.
15. Right-click the BlankOperations project.
16. Click Properties.
17. Click Build.
18. Click the Configuration drop-down arrow.
19. Select Release.
20. Double-click the BlankOperations.cs file.
21. Click the empty row.
22. Type the code "using System;".
23. Scroll down until you see the BankOperation method.
24. Expand the BlankOperation method.
25. Select the command inside the BlankOperation method.
26. Press the Delete key.
27. Add the new code into the BlankOperation method.
28. Right-click the BlankOperations project.
29. Click Build.
30. Hover over the bottom to display the taskbar.
31. Click the Windows Explorer icon.
32. Navigate to the folder 'C:\Users\Administrator\Documents\Retail SDK\POS Plugins\Services\BlankOperations\obj'.
33. Double-click Debug.
34. Select the BlankOperations.dll file.
35. Press the Ctrl+C key.

36. Click Local Disk (C:).


37. Navigate to the folder 'C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail POS '.
38. Double-click Extensions.
39. Press the Ctrl+V key.
Add Blank Operation on the Retail POS register.
1. Hover over the bottom to display the taskbar.
2. Click Start.
3. Click the Search icon.
4. In the Search box, type "Retail POS".
5. Click Retail POS.
6. In the Operator ID field, type "000100".
7. Press the Enter key.
8. Click the Password field.
9. Type the password.
10. Press the Enter key.
11. Click Open a new shift.
12. Click Drawer 1.
13. Right-click CASH.
14. Click Add row.
15. Right-click the empty button.
16. Click Button properties.
17. Click the Action drop-down list.
18. Select Blank operation.
19. Note.
20. Click the Operation number field.
21. Type "BingSearch".
22. Note.
23. Click OK.
Adding item to POS transaction.
1.
2.
3.
4.
5.
6.
7.
8.
9.

Click Sales.
Click any category, for example click COMPUTERS.
Click any item from that category, for example 'the first item'.
Click Blue.
Click Blank operation.
Note.
The Exercise 1 has been completed.
Exercise 2 Scenario.
Task 1 Scenario.

Perform loyalty prompt request.


1. Hover over the bottom to display the taskbar.

2. Click Windows Explorer.


3. Click Local Disk (C:).
4. Navigate to the folder 'C:\Users\Administrator\Documents\Retail SDK\POS Plug-ins'.
5. Double-click the Triggers folder.
6. Double-click Triggers.sln
7. Right-click ItemTriggers.
8. Click Add Reference....
9. Click Browse....
10. Select DevExpress.Utils.v11.2.dll.
11. Scroll down until you see the POSProcesses.DLL file.
12. Press Ctrl+Click to select POSProcesses.DLL file.
13. Press Ctrl+Click to select Microsoft.Dynamics.Retail.Pos.SystemCore.dll.
14. Scroll down until you see Transaction.DLL.
15. Press Ctrl+Click to select Transaction.DLL.
16. Click Add.
17. Click Assemblies.
18. Scroll down until you see System.Windows.Forms.
19. Select System.Windows.Forms.
20. Click OK.
21. Right-click the ItemTriggers project.
22. Click Properties.
23. In the properties window, click Build.
24. Click the Configuration drop-down list.
25. Select Release.
26. In the Build mode, click the drop-down arrow.
27. Select Release.
28. Scroll down until you seethe ItemTriggers.cs file.
29. Double-click the ItemTriggers.cs file.
30. Click the empty row below the namespace section.
31. Add the code to use the referenced libraries.
32. Scroll-down until you see the PostSale() method.
33. Click the empty row below the PostSale() method.
34. Add the code to prompt the operator for adding loyalty card.
35. Right-click the ItemTriggers project.
36. Click Build.
37. Hover over the bottom to display the taskbar.
38. Click Windows Explorer.
39. Navigate to the folder 'C:\Users\Administrator\Documents\Retail SDK\POS Plugins\Triggers\Item Triggers\obj'.
40. Double-click the Release folder.
41. Select ItemTriggers.dll.
42. Press Ctrl+C to copy the file.
43. Click Local Disk (C:).
44. Navigate to the folder 'C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail
POS\Extensions'.
45. Press Ctrl+V to paste the copied file.

46. Hover over the bottom to display the taskbar.


47. Click Start.
48. Click the Search icon.
49. Type "Retail POS".
50. Click Retail POS.
51. In the Operator ID field, type "000100".
52. Press the Enter key.
53. Click the Password field.
54. Type the password.
55. Press the Enter key.
56. Click Open a new shift.
57. Click Drawer 1.
58. Click Sales.
59. Click COMPUTERS.
60. Click any item from that category, example 'the first item'.
61. Click Blue.
62. The system will prompt the operator for adding the loyalty card to transaction.
63. The Exercise 2 has been completed.
64. Exercise 3 scenario.
65. Task 1 scenario.
Prompt the user for manager credentials to override the discount amount.
1. Hover over the bottom to display the taskbar.
2. Click the Windows Explorer icon.
3. Navigate to the folder 'C:\Users\Administrator\Documents\Retail SDK\POS Plugins\Services\Discount'.
4. Double-click the Discount project.
5. Click Microsoft Visual Studio Version Selector.
6. Expand the Discount project.
7. Right-click the Discount project.
8. Click Properties.
9. In the Properties window, click Build.
10. In the Configuration field, click the drop-down arrow.
11. Select the Release item.
12. In the Build mode, click the drop-down arrow.
13. Select Release.
14. Right-click References.
15. Click the Add Reference... menu item.
16. In the Reference Manager - Discount dialog, click Browse....
17. Select the Microsoft.Dynamics.Retail.Notification.Contracts.dll file.
18. Hold the Ctrl key and select Microsoft.Practices.Prism.Interactivity.dll file.
19. Click the Add button.
20. Click the OK button.
21. Click the OK button.
22. Scroll down until you see the Discount.cs file.

23. Double-click the Discount.cs file.


24. In the namespace section, click the empty row.
25. Add the code to use the referenced libraries.
26. Scroll down until you see the AuthorizeLineDiscountAmount() method.
27. Select all the code inside the AuthorizeLineDiscountAmount() method.
28. Press the Delete key.
29. In the AuthorizeLineDiscountAmount() method, click the empty row.
30. Add the code to to give discount greater than the maximum amount defined in
functionality profiles.
31. Right-click Discount.
32. Click Build.
33. Hover over the bottom to display the taskbar.
34. Click Windows Explorer.
35. Navigate to the folder 'C:\Users\Administrator\Documents\POS Plugins\Services\Discount\obj'.
36. Double-click the Release folder.
37. Select the Discount.dll file.
38. Press the Ctrl+C key.
39. Click Local Disk (C:).
40. Navigate to the folder 'C:\Program Files (x86)\Microsoft Dynamics AX\60\Retail POS
\Extensions'.
41. Press the Ctrl+V key.
42. Hover over the bottom to display the taskbar.
43. Click the Start icon.
44. Click on the Search icon.
45. Type "Retail POS".
46. Click Retail POS to launch it.
47. Type Operator Id "000100".
48. Press the Enter key.
49. Type the password.
50. Press the Enter key.
51. Click Open a new shift.
52. Click Drawer 1.
53. Click Sales.
54. Click any category, for example "COMPUTERS".
55. Click any item from that category, for example the first item.
56. Click Blue.
57. Click Home.
58. Click Sales.
59. Click TASKS.
60. Click Edit line.
61. Click Set quantity.
62. Increase the item quantity such that the final price of the item is greater than 9001, for
example "30".
63. Click OK.
64. Click Home.

65. Click Discounts.


66. Click Line discount amount.
67. Type a discount amount of 9001, for example "2000".
68. Click OK.
69. Select any reason code, for example "Customer Satisfaction".
70. The system will give the discount.
71. The Exercise 3 has been completed.
72. Exercise 4 scenario.
73. Task 1 scenario.
Update inventoryLookup method to include item inventory status across all the stores.
1. Double-click Microsoft Dynamics AX 2012.
2. Press Ctrl+D to open development workspace.
3. In AOT, expand Classes.
4. Scroll down until you see RetailTransactionService.
5. Double-click RetailTransactionService.
6. Scroll down until you see inventoryLookup.
7. Click the inventoryLookup method to open it.
8. Close the right panel to make more space.
9. Select the existing inventoryLookup code.
10. Press the Delete key.
11. Note.
12. Add the new code into the inventoryLookup method.
13. Scroll down to view whole added code.
14. Click the Compile icon.
15. Hover over the bottom to display the taskbar.
16. Click the Start icon.
17. Click the Search icon.
18. Type "Retail POS".
19. Click Retail POS.
20. Click the Operator ID box.
21. Type "000100".
22. Press the Enter key.
23. Type the password.
24. Press the Enter key.
25. Click Open a new shift.
26. Click Drawer 1.
27. Right-click CASH.
28. Click Add row.
29. Right-click an empty button.
30. Click Button properties.
31. Click the Action drop-down list.
32. Select Inventory lookup.
33. Click OK.
34. Click the newly added Inventory lookup button.

35. Type a bar code to search, for example type "1105".


36. Press the Enter key.
37. Click Blue.
38. The system will display the inventory status across all legal entities.
39. The Practice has been completed.