# Gift Certificate Sales & Redemption

**URL:** <https://forum.sambapos.com/t/gift-certificate-sales-redemption/1539>\
**Category:** V4 Tutorial\
**Created:** [June 12, 2014, 9:12pm UTC](https://forum.sambapos.com/t/gift-certificate-sales-redemption/1539 "2014-06-12T21:12:48Z")\
**Posts on this page:** 1\
**Showing post:** 40

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [January 27, 2015, 3:17pm UTC](https://forum.sambapos.com/t/gift-certificate-sales-redemption/1539/40 "2015-01-27T15:17:48Z")

</div>

> [@natascafe](#):
>
> Can I create a card without tendering a payment?

Not with the implementation described in this Tutorial, since the Account and Entity Creation is done upon Settlement. However, if you understand the flow of how this works, it could be done with some alterations.

This is what currently happens:

- GC is added to Ticket, and receives `Order State` of **Ordered**.
- Ticket is Settled. This invokes the Event called `Before Ticket Closing`.
- The Rule called **GC Update States** captures this event and changes the `Order State` to **Printed**. This invokes the Event called `Order State Updated`.
- The Rule called **GC Purchased & Printed** captures this event and does the work of creating the Entity and Account, creating the Credit Transaction to the Account, and setting the `Entity State` to **Purchased**.

So what can we do to change this? Here is one idea…

**EDIT** : This addition is _ **so simple** _, that I am going to add it to my system. One reason for being able to do this (for me) is when I _donate a GC to a charity_, and I don’t want tender any cash for it or show it as a Sale.

- Create an `Automation Command` called **GC manual create** , map it to _Order Line_, and set the `Enabled States` and `Visible States` to **Ordered**.
- _For security purposes, it may be wise to also either map the `Automation Command` to **Administrator** `User Role` and/or set the `Confirmation` to **Admin PIN**._
- Create a `Rule` to capture the `Automation Command` and fire the Action **GC Update Order State** to switch the State from `Ordered` to `Printed`.

* * *

**Automation Command** :

 ![](https://forum.sambapos.com/uploads/default/original/3X/f/0/f021270c25b77cace30a46c410d2d6cb42ab5b4e.png) 

**Rule** :

 ![](https://forum.sambapos.com/uploads/default/original/3X/3/d/3dd53a95de915342b6ffd1ba4a59000ba50e93af.png) 

* * *

**Operation** :

- Enter the value of the GC into the Numpad area, then select the GC Product.
- Highlight/select the GC `Order line` in the Ticket.
- Click **GC Create** … all the magic happens here automatically.
- Highlight/select the GC `Order line` in the Ticket again.
- Click **Cancel**.
- Click **Close**.

**FLOW** :

 ![](https://forum.sambapos.com/uploads/default/original/3X/b/0/b04697b43937d1d92eb56748b04819b72ed8fe02.png) 

**GC Entity Search:**

 ![](https://forum.sambapos.com/uploads/default/original/3X/b/3/b316cc40309ddf7dd5a458c490058b8c7ab9bd9d.png) 

**Accounts** :  
The Cash Sale for 50.00 was for another product for illustrative purposes. Notice there is no Sale nor Cash visible for the GC Creation of 700.

 ![](https://forum.sambapos.com/uploads/default/original/3X/f/1/f167b92cdb418bf2c7f01864a9f7dc2bd7a3d6fa.png) 

**Work Period Report** :  
Again, notice the GC Create is not reported here…

 ![](https://forum.sambapos.com/uploads/default/original/3X/f/6/f6bab2d0ff6e43667f475dcc2a41ee5a4e7d80e9.png)

---

_[View the full topic](https://forum.sambapos.com/t/gift-certificate-sales-redemption/1539)._
