# Sub total problem on reciep

when i print with discount its shop sub-total in reciept but when no discount its not show sub-total , what the problem ??
here my full code
</>[LAYOUT]

– General layout

C:\logo.bmp

Bill

Date:{TICKET DATE}

Time:{TIME}

{ENTITIES}

Ticket No:{TICKET NO}

-

{ORDERS}

=
សរុប(រៀល)​ Total(Riel)|{PLAIN TOTAL}R
សរុប(ដុល្លា) Total(Dollar)|\$[=F(TN(’{PLAIN TOTAL}’)/TN(’{EXCHANGE RATE:Dollar}’),’#,##0.##’)]

{DISCOUNTS}
=

{SERVICES}

ទូទាត់សរុប(រៀល) Payments(Riel) |{TICKET TOTAL}R
ទូទាត់សរុប(ដុល្លា) Payments(Dollar) |\$[=F(TN(’{TICKET TOTAL}’)/TN(’{EXCHANGE RATE:Dollar}’),’#,##0.##’)]
ប្រាក់ទទួល​(រៀល) Tendered(Riel) |{TENDERED TOTAL}R
ប្រាក់ទទួល(ដុល្លា) Tendered(Dollar) |\$[=F(TN(’{TENDERED TOTAL}’)/TN(’{EXCHANGE RATE:Dollar}’),’#,##0.##’)]
ប្រាក់អាប់(រៀល) Change(Riel) |{CHANGE TOTAL}R
ប្រាក់អាប់(ដុល្លា) Change(Dollar) |\$[=F(TN(’{CHANGE TOTAL}’)/TN(’{EXCHANGE RATE:Dollar}’),’#,##0.##’)]

=

T H A N K Y O U

[DISCOUNTS]

{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}

[SERVICES]

{CALCULATION NAME}|{CALCULATION TOTAL}

[PAYMENTS]

{PAYMENT NAME}|{PAYMENT AMOUNT}

[ORDERS]

– Default format for orders

- {QUANTITY} {NAME}|{LINE AMOUNT}

{ORDER TAGS}

{ORDER TAGS}

[ORDERS:Void]

– Nothing will print for void lines

[ORDER TAGS]

– Format for order tags

* {ORDER TAG NAME} |

[ENTITIES:Table]

– Table entity format

Table: {ENTITY NAME}

[ENTITIES:Customer]

– Customer entity format

Customer: {ENTITY NAME} | {ENTITY DATA:Phone}

</> means clicking [</>] button on editor toolbar.

On V4 {PLAIN TOTAL} works if there is a discount in ticket. You can try putting whole line in square brackets [ ] so that line won’t appear when plain total does not have a value.

2 Likes