Return 0 instead of 0.00 change due in SambaPOS

Hi there, it is my first time posting an issue here.

I am using SambaPOS V3.0.25 BETA,
Currently, i have no problem to print a receipt with Tendered Amount and Change Due appeared on it.

The problem is, Change Due only print the amount with decimal point for customer who pay greater amount. When they pay exact amount, the Change due will be 0 instead of 0.00

Here’ my script, can you please consult on which part to change?

[LAYOUT]
– General layout


BENEPARK SDN BHD
Marina Island Pangkor
SST ID:A24-1808-31008467
Email : ticketing@marinaisland.com
Tel : +6016-5958 500


{ENTITIES}
Receipt No. :C1BFT-00{TICKET NO}
Date : {TICKET DATE}
Time : {TICKET TIME}
Cashier : {USER NAME}

QTY. ITEMS|MYR

=
{ORDERS}
=

{SERVICES}

{PAYMENTS}

=
Thank You and Please Come Again
Items Sold Not Returnable Nor Refundable

[ORDERS]
{QUANTITY} x {NAME}|{TOTAL AMOUNT}
{ORDER TAGS}

[PAYMENTS]
|SST(6%) included : | {TAX TOTAL}
|Payment Total : | {PAYMENT TOTAL}
|{PAYMENT NAME} Tendered : | {TICKET TAG:Tendered}
|Change Due : | {TICKET TAG:ChangeDue}

[ORDER TAGS]
– Format for order tags
* {ORDER TAG NAME} x {ORDER TAG QUANTITY}

Sorry but v3 is no longer supported. You need to upgrade to v5 for us to help you.

I’ve tried to use version 5, using the same script and settings but it returns 0 instead of 0.00
Do you have the right script for me to use?

This one with 0 instead of 0.00 change due
SAMPLE #1

0

This one works just fine with change due exhibit its decimal point
SAMPLE #2

resit

What you want to do may not be possible in V3, I’ve never used it and most in this forum have never used it but in V5 you would change this {TICKET TAG:ChangeDue} to:

[=(TN(‘{TICKET TAG:ChangeDue}’),’0.00’)]

And sometimes you need the F function in front as well so you have this:

[=F(TN(‘{TICKET TAG:ChangeDue}’),’0.00’)]

But I’m pretty sure these expressions were developed in V4/5 and you probably can’t use them in V3, you do need to upgrade to V5 which is the only supported version now

2 Likes

Thanks. But i tried the simple one

|Change Due : | {CHANGE TOTAL}

This works really well in V4 and V5.

1 Like