User Tools

Site Tools


en:preparing_sambapos_to_sell_coffee_coupons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:preparing_sambapos_to_sell_coffee_coupons [2013/09/15 18:59]
admin [Adding Coffee Coupon order handling rules]
en:preparing_sambapos_to_sell_coffee_coupons [2013/09/16 11:45] (current)
Line 1: Line 1:
 ====== Preparing SambaPOS to Sell Coffee Coupons ====== ====== Preparing SambaPOS to Sell Coffee Coupons ======
  
-{{:​en:​promotions:​Coupons1.jpg?​150 |}} 
 Promotion Coupon is an entity that we use to enter free items to tickets. This is a well formatted random number. We can print this number as a barcode or QR Tag. When this number is scanned on a SambaPOS terminal it will add related product into the ticket as a gift product. When redeemed we’ll update coupon status so it can’t be used multiple times. ​ Promotion Coupon is an entity that we use to enter free items to tickets. This is a well formatted random number. We can print this number as a barcode or QR Tag. When this number is scanned on a SambaPOS terminal it will add related product into the ticket as a gift product. When redeemed we’ll update coupon status so it can’t be used multiple times. ​
  
 After finishing this chapter you can create coupons and sell them through a ticket. For example you can sell 100 coffee coupons with a discounted price. That can be a company that wishes to give coffee coupons to  their personnel. ​ After finishing this chapter you can create coupons and sell them through a ticket. For example you can sell 100 coffee coupons with a discounted price. That can be a company that wishes to give coffee coupons to  their personnel. ​
- 
-On next chapter we’ll see how to record sales on a customer card and give free coupons for 6 coffee purchases. 
  
 ===== Creating Coupon Entity ===== ===== Creating Coupon Entity =====
Line 108: Line 105:
 ===== Handling Payment to update Order states ===== ===== Handling Payment to update Order states =====
    
-We’ll create a new rule for ''​Before Ticket ​Close''​ event to check if ticket is paid or not. +We’ll create a new rule for ''​Before Ticket ​Closing''​ event to check if ticket is paid or not. 
  
 {{:​en:​promotions:​coupons12.jpg?​700|}} {{:​en:​promotions:​coupons12.jpg?​700|}}
Line 116: Line 113:
 So create a new ticket now, add Coffee Coupon product and settle that ticket. When you open this ticket from ticket explorer, Order State of the Coffee Coupon product should be “Coupon Paid”. ​ So create a new ticket now, add Coffee Coupon product and settle that ticket. When you open this ticket from ticket explorer, Order State of the Coffee Coupon product should be “Coupon Paid”. ​
  
-Our customer bought a Breakfast, one coffee and a coffee coupon. As you can see order state changed to Coupon Paid. Other order states didn’t changed since we set the Current State” for the action. It only changed for orders that already have “Coupon Ordered” state.+Our customer bought a Breakfast, one coffee and a coffee coupon. As you can see order state changed to ''​Coupon Paid''​. Other order states didn’t changed since we set the ''​Current State'' ​for the action. It only changed for orders that already have “Coupon Ordered” state.
  
 {{:​en:​promotions:​coupons13.jpg?​700|}} {{:​en:​promotions:​coupons13.jpg?​700|}}
  
 Getting state handling in SambaPOS is important to create a flawless workflow for your business. Feel free to ask any questions on our forums so we can update our documentation to give more details about them. Getting state handling in SambaPOS is important to create a flawless workflow for your business. Feel free to ask any questions on our forums so we can update our documentation to give more details about them.
 +
 +===== Creating Coupons =====
 +
 +As the order state changes from ''​Coupon Ordered''​ to ''​Coupon Paid''​ we’ll create the Coupon Entity. To be able to handle it we’ll create a rule for ''​Order State Updated''​ event.
 +
 +{{:​en:​promotions:​coupons14.jpg?​700|}}
 +
 +I’ve created two constraints to determine ordered Coupon is paid. If constraints are true it executes ''​Create Coupon''​ action to create a coupon entity. After creating that it executes second action to update coupon’s menu item name. As you have noticed I’m reading ''​Menu Item Name''​ from Order State by using ''​{ORDER STATE:​X}''​ tag. You’ll remember we are using same tag in printer templates to print order states. ​
 +
 +To test this rule sell another Coffee Coupon and check if a Coupon Entity created or not. 
 +
 +{{:​en:​promotions:​coupons15.jpg?​700|}}
 +
 +This is what SambaPOS generated for me. Coupon Number, Redeemed value and Menu Item Name all correctly updated. Expiration date is empty so this coupon never expires. We’ll handle expiration topic on further documentation.
 +
 +  * Back to [[Promotion Coupons Documentation]]
 +  * Next Topic > [[Redeeming Coupons]]
  
en/preparing_sambapos_to_sell_coffee_coupons.1379257188.txt.gz · Last modified: 2013/09/15 22:59 (external edit)