I have following plan for the free item distribution<br><br>purchase of 3 items under a same&nbsp; brands will get 1 gift item free<br>purchase of 5 items under a same&nbsp; brands will get 2&nbsp; gift item free<br>purchase of 10 items under a same&nbsp; brands will get 4&nbsp; gift item free<br>
<br><br>now if some buyer buys 13 items then he wil get free ites<br>4 for first 10 <br>1 for the remaining 3<br><br>tell me how to make a drl with this thing&#39;<br><br><br><br>