# A few questions for you all

**URL:** <https://forum.sambapos.com/t/a-few-questions-for-you-all/2054>\
**Category:** V4 Question\
**Created:** [August 8, 2014, 11:59am UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054 "2014-08-08T11:59:03Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![DenizAltun](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/439d5e/32.png) [@DenizAltun](https://forum.sambapos.com/u/DenizAltun)\
**Post date:** [August 8, 2014, 11:59am UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/1 "2014-08-08T11:59:03Z")

</div>

hi i have a few questions that i would like to ask. i thought it would be easier to ask them all in one post.

1. how can i get sambapos to print customer receipts ‘automatically’ when cash is taken.

2. how can i add a button to the order screen displaying “ticket history”. so i can easily re-print receipts for previous transactions.

3. i have already created 1 menu for restaurant, now i would like to copy that menu and use it for take-away also, but i want the prices to be different, is there a way of doing it without adding each one over again one by one ?

4. how can i add my logo to customer receipts

if you could guide me in the most detailed way that would be very much appreciated!  
thank you all.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 8, 2014, 1:36pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/2 "2014-08-08T13:36:13Z")

</div>

Just about every question you have can be answered in the Tutorials section of the forum. There are specific tutorials for each one of those questions. At top of forum where it says All Categories select tutorials and look through there.

Wealth of knowledge in there.

---

<div class="post-metadata">

**Author:** ![DenizAltun](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/439d5e/32.png) [@DenizAltun](https://forum.sambapos.com/u/DenizAltun)\
**Post date:** [August 8, 2014, 1:56pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/3 "2014-08-08T13:56:59Z")

</div>

@Jesse  
i am not able to find a tutorial that explains exactly how to do it clear enough.

the most important one i need sorted right now is the automatic receipts.

is there a tutorial u could direct me to ?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 8, 2014, 2:01pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/4 "2014-08-08T14:01:52Z")

</div>

I am pretty sure you can use ticket tags to add a service fee for take-away if that is what your looking for. You don’t have to actually make 2 menus.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 8, 2014, 2:06pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/5 "2014-08-08T14:06:41Z")

</div>

Create an Execute Print Job action whatever you want to name it:  
Select Print Bill as the Job Name

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

---

<div class="post-metadata">

**Author:** ![DenizAltun](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/d/439d5e/32.png) [@DenizAltun](https://forum.sambapos.com/u/DenizAltun)\
**Post date:** [August 8, 2014, 2:08pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/6 "2014-08-08T14:08:10Z")

</div>

will this give a customer receipt with price and total, automatically once i have taken payment from customer?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 8, 2014, 2:09pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/7 "2014-08-08T14:09:09Z")

</div>

Create a Payment Processed Rule and insert the action you just made: Use the following Constraint.

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

Dont forget to set default mappings

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 8, 2014, 2:10pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/8 "2014-08-08T14:10:06Z")

</div>

Then go to Settings/Print Jobs make sure the print job Print Bill is mapped to Printer Template: Ticket Template

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 8, 2014, 2:14pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/9 "2014-08-08T14:14:03Z")

</div>

If you do all of that in that order it will print a customer receipt… you can customize what goes on the receipt by editing the Ticket Template located under Settings / Printer Templates

This is where you would insert your logo. using `<BMP>[FileName]`  
Example `<BMP> C:\company.bmp`

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 8, 2014, 2:21pm UTC](https://forum.sambapos.com/t/a-few-questions-for-you-all/2054/10 "2014-08-08T14:21:41Z")

</div>

Good resource for you would be here:

> [@Printer Template Formatting Tags](https://forum.sambapos.com/t/printer-template-formatting-tags/328/1):
>
> General
> 
> \<T\> (Title) : When used it will format line as a title.
> 
> \<F\> (Fill) : For example \<F\>- creates a line with - chars or \<F\>= creates a line with = chars.
> 
> \<EB\> (Enable Bold) Prints everything Bold until \<DB\> command.
> 
> \<DB\> (Disable Bold) Ends \<EB\> command
> 
> \<Jxy\> (Justified) Justifies a line from pipe char. \<J00\>Total:|0.00 separates line from pipe (|) char. It aligns Total: part left and 0.00 part right. When used on a ESC/POS compatible ticket printer numeric parts sets font size. First number sets font height and second number sets font width. For example \<J10\> sets font height to 1 and font width to 0.
> 
> \<Cxy\> (Center) Same as \<J00\> but this command centers text.
> 
> \<Lxy\> (Left) Same as \<J00\> but this one left aligns text.
> 
> \<Rxy\> (Right) Same as \<J00\> but this one right aligns text.
> 
> \<Jxy:n\>(Justify Wide) Same as \<J\> tag but if you’re using wide char languages such as Chinese you can define char length here. For example \<J00:2\> means characters are 2 characters wide.
> 
> Custom Commands
> 
> \<XCT\> (Execute) Useful to send escape commands to printers or data to port printers. For example \<XCT\>27,112,0,25,250 to send open drawer command to printer.
> 
> \<BEEP\> (Beep Sound) If ticket printer supports printer will beep on this command. Generally used at the end of ticket template to inform user about something printed. Generally useful on kitchen printers.
> 
> \<Bxy\> (Custom Beep)
> 
> x: Beep Count
> 
> y: Beep Duration. \<B22\> beeps two times.
> 
> \<CUT\> Sends paper cut command to printer.
> 
> Logo printing, Barcode Printing and Bitmaps
> 
> \<BMP\>[FileName] Prints Bitmap file. \<BMP\>C:\logo.bmp.
> 
> \<BAR\> Prints bar code in code 128 format. \<BAR\>123456789Supports 13,39,08,93,11,25 barcode types. \<BAR13\> prints Ean13 format.
> 
> \<QR\> Prints QR Code. \<QR\>ABCDEFG  
> x: Bitmap size. [1-9]  
> y: Error Correction. [1-4] \<QR23\>55aa
> 
> Positioning
> 
> \<el\> Enable Left
> 
> \<ec\> Enable Center
> 
> \<er\> Enable Right
> 
> These tags are useful to position bitmaps. For example after \<ec\> tag everything (including logos & bitmaps) prints center aligned. To disable it you can change alignment with \<el\> or \<er\> tag.
> 
> For positioning more precisely you can use space characters. For example \<QR\> 12313 tag has two spaces between tag and code. That means bitmap will slide right by two pixels. It works with \<BAR\>, \<QR\> and \<BMP\> tags.
> 
> Expressions
> 
> Printer Templates supports custom expressions to make some simple calculations.
> 
> Syntax: [=\<expression\>]
> 
> For example: [=2+3] expression prints 5.
> 
> You can use current printer template tags to make calculations based on ticket values.
> 
> [={TICKET TOTAL}\*0.1] Prints %10 of the ticket total.
> 
> Numeric tags such as {TICKET TOTAL} prints formatted numbers such as 1,523.00. To be able to use these numbers safely in expressions we need to convert them to numbers by stripping thousand separators and correcting decimal separator. To be able to do this we can use (ToNumber) TN function. So our expression becomes [=TN(‘{TICKET TOTAL}’)\*0.1]
> 
> These are the available functions:
> 
> F: Format Function. [=F(\<number\>,\<format\>)].Formats numeric values with given format.
> 
> FF Fix Format Function. [=FF(\<string\>,\<format\>)].Fixes formatting of the string formatted number.
> 
> TN: ToNumber Function [=TN(\<string\>)].Converts string formatted number to a numeric value.
> 
> FD: Format Date Function [=FD(\<date\>,\<format\>)].Changes formatting of date values.
> 
> ADD: Add Days Function [=ADD(\<date\>,\<days\>].Adds days to date values.
> 
> ADM: Add Months Function [=ADD(\<date\>,\<months\>].Adds months to date values.
> 
> Examples
> 
> [=FF(‘{TICKET TOTAL}’,‘#’)]
> 
> Strips decimal parts from numbers.
> 
> [=FD(ADD(‘{TICKET DATE}’,1),‘dd/MM/yyyy’)]
> 
> Adds 1 day to date value and prints with dd/mm/yyyy format.
> 
> [=F(TN(‘{TICKET TOTAL}’)\*0.2,‘#’)]
> 
> Calculates %20 of Ticket Total and strips decimals from number.
