Author Topic: How to create the PERFECT BILL  (Read 12924 times)

razi777

  • Newbie
  • *
  • Posts: 15
How to create the PERFECT BILL
« on: December 21, 2011, 04:05:47 pm »
hello i want to create this bill

(how can i create also the taxes for it with 1 for drinks with 10% and 2 food with 20%) 

would be a good example for everyone :D
« Last Edit: December 21, 2011, 04:10:03 pm by razi777 »

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: How to create the PERFECT BILL
« Reply #1 on: December 22, 2011, 05:31:49 am »
Hmm Razi.. It seems you want to print tax details while tax included prices printed.
This is not allowed in our country :) If we display tax totals on tickets we should print tax excluded prices. Or if we print tax included prices we don't display tax totals separately. If customer requests an invoice or ticket includes alcoholic drinks we use option 1, if not we print tickets with option 2. 

That's why there is an "Always Exclude Tax" option in print jobs. When this option is enabled (taxes included to price or not) SambaPOS always prints tax excluded prices and tax totals calculates.

I understood why some friends can't print tax totals on ticket. I'll improve tax printing on next release and prepare a ticket template for this sample ticket. Thank you for sending the ticket format you need.

razi777

  • Newbie
  • *
  • Posts: 15
Re: How to create the PERFECT BILL
« Reply #2 on: December 22, 2011, 07:08:22 am »
would be nice if u can do it asap ( i think in austria & germany we need taxes on the bill)

need it in restaurant the new bill :D

and  {TOTAL TEXT}  the currency is in dollar should be in EURO
and btw love ur free software

this is what i did till yet

but it won't calculate everything together

and how can i add € sign?

and how can i reset the Ticket.Nr.?  its now 36 i want 0 for everyday
« Last Edit: December 22, 2011, 07:21:34 am by razi777 »

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: How to create the PERFECT BILL
« Reply #3 on: December 27, 2011, 01:24:19 pm »
Hello;
I recently uploaded SambaPOS 2.73 release for tax printing issue.

Here is my sample design:



Visit http://doc.sambapos.org/doku.php/en/tips/sample_ticket_printer_template for formatting details.

Printer should support € sign. My printer doesn't have € sign in default character set so I used $ instead. You'll find required settings under Local Settings > Language Settings for changing {TOTAL TEXT} values.

We search tickets by their ticket number. For this reason we shouldn't reset it for avoiding duplicates. We may add a secondary ticket number that daily resets on further releases.
« Last Edit: December 27, 2011, 01:40:11 pm by emre »

razi777

  • Newbie
  • *
  • Posts: 15
Re: How to create the PERFECT BILL
« Reply #4 on: December 29, 2011, 11:26:35 am »
thx emre very much

1 question left  - how can i define beverage and food ???
2                       - and how can i define the taxes for the items
3       - add a secondary ticket number that daily resets (THAT WOULD BE NICE)

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: How to create the PERFECT BILL
« Reply #5 on: December 29, 2011, 11:56:30 am »
1,2 : First you'll create tax templates for each tax type and choose them from product cards.
3: I added daily resetting ticket numbers request in our todo list. Thanks.
« Last Edit: December 29, 2011, 01:50:44 pm by emre »

willibcn

  • Newbie
  • *
  • Posts: 11
Re: How to create the PERFECT BILL
« Reply #6 on: December 29, 2011, 01:11:15 pm »
perfect!!!

razi777

  • Newbie
  • *
  • Posts: 15
Re: How to create the PERFECT BILL
« Reply #7 on: December 29, 2011, 07:30:15 pm »
thx very much   :D

a) but can u make it like the example (first pic)  for taxes
so u can see it with and without taxes - NETTO & BRUTTO

b) just with the reset for everyday that would be nice :D
« Last Edit: December 29, 2011, 07:35:47 pm by razi777 »

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: How to create the PERFECT BILL
« Reply #8 on: December 30, 2011, 06:39:34 pm »
Netto & Brutto details does not exists for now. We'll add simple scripting support on printer templates for that kind of simple calculations.
Thanks.

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: How to create the PERFECT BILL
« Reply #9 on: January 18, 2012, 11:31:39 am »
Hello; While implementing some other SambaPOS features I've noticed we can create a counter that resets everyday...

Let me describe how it can be done:


Action for Increasing the counter
  • Create a new action, Name it as "Increase daily counter" and the Action Type will be "Update Program Setting"
  • Setting Name will be ORDERNUMBER
  • Setting Value is 1
  • Update Type is Increase
  • IsLocal = False
Action for Tagging Ticket with Current Counter Number
  • Create a new action, Name it as "Tag Ticket With Counter Number", Action type is "Update Ticket Tag"
  • Tag Name will be Order No
  • Tag Value will be {:ORDERNUMBER} . That means Tag Value will be equal to current ORDERNUMBER setting.
Action for Resetting Counter
  • Create a new Action, Name it as "Reset Daily Counter" and the Action type is "Update Program Setting"
  • Setting Name = ORDERNUMBER
  • Setting Value = 0
  • Update Type = UPDATE
  • IsLocal = False
These are the required actions now we'll create rules for defining how these actions will work.


Rule for Giving Next Number to Ticket
  • Create a new rule, Name it as "Give Ticket Number" and select "Ticket Created" event.
  • Click "Select Actions". Choose "Increase Daily Number" and "Tag Ticket with Counter Number"
This rule will increase the number and tag ticket with that number.


Rule For Resetting Counter
  • Create a new rule, Name it as "Reset counter on End of Day", and select "Work Period Ended" event.
  • Click Select Actions. Choose "Reset Daily Counter".
This rule will reset counter when you end the work period.


For printing that number use {TICKETTAG:Order No} value tag. You can add that number to a printer template header or create a new template for printing a small paper that shows the customer order number...





Teşekkür Ederiz means Thanks :)
« Last Edit: January 18, 2012, 11:34:03 am by emre »

jenem

  • Full Member
  • ***
  • Posts: 154
Re: How to create the PERFECT BILL
« Reply #10 on: January 18, 2012, 11:48:37 am »
Hi Emre,

Excellent explanation for ticket tagging and counting

Teşekkür Ederiz

Edgar