evail's picture
Nov 13, 2013
9099 views
Reputation: 78

Problem with Printer Template

Sambapos is crashing when using gift or discount at 100%.

This is happening when TAXES is used in the Printer Template.

10 answers

emreeren's picture
emreeren
Nov 13, 2013
Reputation: 595

I couldn't reproduce it. Can you elaborate?

evail's picture
evail
Nov 13, 2013
Reputation: 78

It is arising because of {PLAIN TOTAL}

since the plain total will be 0.00 (Zero) because of 100% discount of all items being gift. here is the template.

 

<T>Ticket
<J00>Date:{TICKET DATE}|Time:{TIME}
<L00>Ticket No:{TICKET NO}
{ENTITIES}
<F>-
{ORDERS}
<F>=
<EB>
<J00>Subtotal:|{PLAIN TOTAL}
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>T H A N K   Y O U

 

emreeren's picture
emreeren
Nov 13, 2013
Reputation: 595

Still can't generate the error. Can you send me a backup of your database to emre@sambapos.com?

emreeren's picture
emreeren
Nov 13, 2013
Reputation: 595

Or the error message might help too.

evail's picture
evail
Nov 13, 2013
Reputation: 78

I have sent you the database.

And there is no error message. SambaPOS crashes when this happens.

emreeren's picture
emreeren
Nov 13, 2013
Reputation: 595

Still I'm unable to crash it :) I've attached screenshots of what your sample database prints when all orders are gift or %100 discount. Does additional actions needed before printing?

evail's picture
evail
Nov 14, 2013
Reputation: 78

Sorry Emre,

Actually I did something to the source code which brought that problem, It works fine now. Thanks

emreeren's picture
emreeren
Nov 14, 2013
Reputation: 595

No need to be sorry. Have fun :)

mudanish's picture
mudanish
Nov 27, 2014
Reputation: 5

The system is working properly until i am not adding a Tax Template. As soon as i add a Tax Template to the system it starts crashing at the time of table closure

 

mudanish's picture
mudanish
Nov 27, 2014
Reputation: 5

I have downloaded your source version 3.0. Now i want to incorporate your above mentioned fixes (for tax calculation on Gift Items) in it. How and where can i get the source for that fix?

 

We have already answers to
1030 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634