If you are trying to discount scripts (Rx's) at Point Of Sale and they are not discounting, you will need to enable this option first.
From the Main Menu in Retail:
- 7 Administration, 1 Setup, 8 General options
- Tick Discount incl. Rxs
- F12 [Accept Details]