evail's picture
Nov 13, 2013
5353 views
Reputation: 78
+1
+86 likes
-1

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
+1
+7 likes
-1

I couldn't reproduce it. Can you elaborate?

evail's picture
evail
Nov 13, 2013
Reputation: 78
+1
-11 likes
-1

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
+1
-27 likes
-1

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
+1
-16 likes
-1

Or the error message might help too.

evail's picture
evail
Nov 13, 2013
Reputation: 78
+1
-25 likes
-1

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
+1
+53 likes
-1

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
+1
+6 likes
-1

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
+1
+1 likes
-1

No need to be sorry. Have fun :)

mudanish's picture
mudanish
Nov 27, 2014
Reputation: 5
+1
+4 likes
-1

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
+1
-6 likes
-1

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
845 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634