SambaPOS Forum

English Boards => Support => Topic started by: emre on April 10, 2012, 07:43:50 am

Title: SambaPOS 2.95 Released!
Post by: emre on April 10, 2012, 07:43:50 am
Here are the new features:

+ Multiply function added to Update Setting action.
Useful for multiplying setting values with a fixed number.

+ Grouping orders by order numbers with {ORDER NO} tag.
Sometimes kitchen personnel looses order paper. When you need to reprint all orders to kitchen printer you can group items by order number. It will be useful for understanding what served and what is waiting for serve.

+ Filtering ticket items on "Execute Print Job" action by ticket item tag.
If you tag ticket items you can print bills by ticket item tag. For example if you tag ticket items by Seat you can print Seat1, Seat2 tickets separately.

+ Expression Evaluation on Printer Templates
You can calculate numbers for different needs and print them on tickets. For evaluating an expression you'll use [=(function)] format. For example you need to print %15 of ticket total.

You can enter [={TICKET TOTAL}*0.15] for printing %15 of ticket total. But this will generate an error if Ticket Total is greater than 999 because we format 1300 to 1,300.00 and this is not a number. To solve that you'll use ToNumber function. So our expression becomes [=ToNumber('{TICKET TOTAL}')*0.15]. Finally we need to reformat this calculation with thousand separators. Format function is useful for that. The final expression should be:
[=Format(ToNumber('{TICKET TOTAL}')*0.15)]

It will first convert Ticket Total to a number, make calculation and format it back.

You can use Format function for formatting Setting or Ticket Tag values too. For example:
[=Format('{SETTING:XYZ}')] should work fine.

- Item sorting on printouts problem fixed.
If a ticket item have properties it moves to top of the order list. That problem fixed.
Title: Re: SambaPOS 2.95 Released!
Post by: JohnS on April 10, 2012, 07:51:29 am
Absolutely unreal!

I wish I had you on some of my project teams.
Title: Re: SambaPOS 2.95 Released!
Post by: CafeCuppio on April 10, 2012, 08:53:34 am
My goodness ... a lot of these functions I might never use myself, but great to see all the improvements ...

Well done Emre & Team
Title: Re: SambaPOS 2.95 Released!
Post by: marikoglu on April 10, 2012, 05:27:40 pm
Emre bey program guncellemelerinde bizede bole aciklayici bir dokuman yazsaniz cokmu sey istemis olurdum . En azindan neleri guncellediginizi biliriz ;)
Title: Re: SambaPOS 2.95 Released!
Post by: khamlichi on April 11, 2012, 04:40:14 am
One word : Admirable.
Title: Re: SambaPOS 2.95 Released!
Post by: charmaster on April 12, 2012, 04:42:11 pm
Hi,

Thank you for the adaptation in French. Would it be possible to change onscreen keyboard in azerty (French) ?
Title: Re: SambaPOS 2.95 Released!
Post by: mozhi on April 12, 2012, 10:53:40 pm
Great Work Emre.!
Title: Re: SambaPOS 2.95 Released!
Post by: JohnS on April 13, 2012, 04:49:20 pm
From Re: SambaPOS 2.94 Released!
{ITEM TAG:n} - Second item in {ITEM TAG} is 1st item when using this tag. ie, [Course 1|Seat 1], {ITEM TAG:1} = Seat 1.
Works well otherwise, but must use {ITEM TAG} for group template.

Yes there is no difference on group template. If there is a pipe char it always use first part for grouping. {ITEM TAG} and {ITEM TAG:n} tags are new for line template.


If we could use {ITEM TAG:n} in the group template, we would be able to print bills by Seat numbers.

This may help a little with the Split Bill discussion here http://forum2.sambapos.org/index.php/topic,261.msg2486.html#msg2486 (http://forum2.sambapos.org/index.php/topic,261.msg2486.html#msg2486)


Update - I just added a copy of a receipt from a local restaurant to show how some restaurants format their receipts.
Title: Re: SambaPOS 2.95 Released!
Post by: oda on April 13, 2012, 09:02:07 pm
John, just a quick question!
On your receipt showing, it seems that have multiple group modifier.
Do you create multiple group modifier or just one.
Just curious!
Title: Re: SambaPOS 2.95 Released!
Post by: JohnS on April 13, 2012, 09:09:47 pm
That receipt is not from SambaPOS, its just a sample of a receipt layout used in Australia to highlight Seats & different layout designs.

I would use three modifiers, one for the dish itself, one for the sides and one for the sauces.
Title: Re: SambaPOS 2.95 Released!
Post by: emre on April 16, 2012, 09:44:00 am
As an alternative we can print separate tickets by seat with ticket item tag filtering feature.
Other than grouping items by seat that design will need further implementation for calculating and printing sub totals.
Title: Re: SambaPOS 2.95 Released!
Post by: jadeniz on April 27, 2012, 08:09:04 am

Hi!

First of all (this is my first post) thanks to all who make this wonderful software possible.

I have an error with Format & ToNumber functions in a 2003 server environment.

It works fine on Windows 7 but in 2003 server doesn't recognize functions (twice are spanish 32 bits). I'm looking for .net patches  related to this issue

IE if I try to print in 2003 this is the result

Print Code
[=ToNumber('{TICKET TOTAL}')] (Ticket Total is 1.50)
[=ToNumber(2.15)]

Printed Result
=ToNumber('1.50')  It might be 1.50 as in Windows 7
2.15

I've tested with and without single and double commas ToNumber("{T....  & ToNumber({... and the print is the same. It seems it doesn´t work when the parameter is a function. It works only with a number. (in 2003 server, in Windows 7 it works like a charm)
Title: Re: SambaPOS 2.95 Released!
Post by: jadeniz on April 29, 2012, 09:57:19 am
Update:
It fails when using spanish .NET runtimes. (2003,xp, 7 tested) It works using english .Net downloads
Title: Re: SambaPOS 2.95 Released!
Post by: emre on April 29, 2012, 01:43:44 pm
Update:
It fails when using spanish .NET runtimes. (2003,xp, 7 tested) It works using english .Net downloads

Hmm.. It makes more sense now. It seems I have to debug it with Spanish .net installation.
Title: Re: SambaPOS 2.95 Released!
Post by: emre on May 03, 2012, 08:23:22 pm
Update:
It fails when using spanish .NET runtimes. (2003,xp, 7 tested) It works using english .Net downloads

FYI: I've updated implementation. I'll be happy if you can test it when 2.96 releases.
Thanks.
Title: Re: SambaPOS 2.95 Released!
Post by: jadeniz on May 04, 2012, 09:13:51 pm
OK!!
Title: Re: SambaPOS 2.95 Released!
Post by: sukasem on June 17, 2012, 12:17:00 pm
From Re: SambaPOS 2.94 Released!
{ITEM TAG:n} - Second item in {ITEM TAG} is 1st item when using this tag. ie, [Course 1|Seat 1], {ITEM TAG:1} = Seat 1.
Works well otherwise, but must use {ITEM TAG} for group template.

Yes there is no difference on group template. If there is a pipe char it always use first part for grouping. {ITEM TAG} and {ITEM TAG:n} tags are new for line template.


If we could use {ITEM TAG:n} in the group template, we would be able to print bills by Seat numbers.

This may help a little with the Split Bill discussion here http://forum2.sambapos.org/index.php/topic,261.msg2486.html#msg2486 (http://forum2.sambapos.org/index.php/topic,261.msg2486.html#msg2486)


Update - I just added a copy of a receipt from a local restaurant to show how some restaurants format their receipts.

Hi John,
How to get total amount for each seat?
Thanks,
 
Quote
+ Filtering ticket items on "Execute Print Job" action by ticket item tag.
If you tag ticket items you can print bills by ticket item tag. For example if you tag ticket items by Seat you can print Seat1, Seat2 tickets separately.
Hi emre,
Could you provide step by step guide please?
Thank you,
Title: Re: SambaPOS 2.95 Released!
Post by: sukasem on June 18, 2012, 01:23:13 pm
Hi emre,

Quote
+ Filtering ticket items on "Execute Print Job" action by ticket item tag.
If you tag ticket items you can print bills by ticket item tag. For example if you tag ticket items by Seat you can print Seat1, Seat2 tickets separately.


I tried clone print bill job and change Printing Content to Lines Grouped by Tag, Print Mapping: Tag -> Seat, Auto Print: Manual
I got -1[Undefined] and Total is grand total from all seats.

Thanks,
Title: Re: SambaPOS 2.95 Released!
Post by: emre on June 18, 2012, 09:11:08 pm
Calculating group sub totals feature not implemented yet. For now you can print seperate tickets for lines tagged with an individual tag by using "execute print job" action and TicketItemTag filter. Basically you'll create a ticket tag named "Print Seat", enter values for seats and when a tag selected execute "execute print job" action with tag value as TicketItemTag filter.
Title: Re: SambaPOS 2.95 Released!
Post by: sukasem on June 18, 2012, 09:19:54 pm
Calculating group sub totals feature not implemented yet. For now you can print seperate tickets for lines tagged with an individual tag by using "execute print job" action and TicketItemTag filter. Basically you'll create a ticket tag named "Print Seat", enter values for seats and when a tag selected execute "execute print job" action with tag value as TicketItemTag filter.
Hi emre,
What code I have to put in TicketItemTag. I try {:SEAT} but it doesn't print.
Thnaks, 
Title: Re: SambaPOS 2.95 Released!
Post by: sukasem on June 18, 2012, 10:45:13 pm
Calculating group sub totals feature not implemented yet. For now you can print seperate tickets for lines tagged with an individual tag by using "execute print job" action and TicketItemTag filter. Basically you'll create a ticket tag named "Print Seat", enter values for seats and when a tag selected execute "execute print job" action with tag value as TicketItemTag filter.

Hi,

If I can print seperate ticket for each seat,  then isn't {TICKET TOTAL}=the total of that seat?

But I still don't know how to set up this :'(

Thanks,