Hi Joe,
Thanks so much! Your instructions got me going on the automation command, and was able to get the buttons doing the correct actions! (Almost all correct…)
Changed the pop-up to ask whether a guest copy, a store copy or both is needed to be printed:
Added a printer template for the store copy (Just a copy of the Ticket Template with the ad line removed and a signature line added.)
Got it working by adding three rules with constraint of automation command executed and:
Command Value = 1, Print Guest Copy
Command Value = 2, Print Resort Copy
Command Value = 3, First Print Resort Copy, Show Message saying to tear first receipt, then print Guest Copy
Was so happy that it all looked like it was working good, UNTIL, I starting making test tickets and found a strange issue.
Clicking on the Ask Question pop-up causes the following actions:
Clicking No - Not needed. No receipt printed, everything looks good.
Clicking Yes - Guest Copy, prints a guest copy of the receipt, Account balance correct
Clicking Yes - Sangat Copy, prints a guest copy of the receipt, Account balance correct
Clicking Yes - a copy for the guest and Sangat,
Prints a Resort copy first,
Displays the Show Message pop-up window saying to tear first receipt and give to the guest to sign,
Then prints the guest copy after clicking ok on the Show message window.
Everything looked good until, I noticed that if I used a customer account (or a staff account) as the payment method, the first copy (resort copy) of the receipt would show the account balance before the transaction is added, and the second copy (guest copy) would show the correct balance with the current transaction added.
I tried switching the order and printing the guest copy and then the resort copy, delivers the same results (1st copy short on account balance.)
I don’t understand this because. I’m using the same actions from all three rules, and they’re only calling print jobs.
(Only difference is the third rule has the Show message popup between receipts.)
I thought about making a new printer template for the third rule to call and changing the calculation that receipt to:
Guest Account Balance:|P [=F(TN(’{ENTITY BALANCE}’+{TICKET TOTAL}),’#;-#;0’)],
but realized that would cause a wrong printout if the customer had an outstanding balance, but was paying THIS ticket by cash or credit card.
I also tried making a fake ‘null’ printer and having a print bill job run there first. Same results with first ticket actually printed with the account balance missing the current transaction.
Hope you or someone here can help me Joe, it’s driving me crazy trying to get this working. I’ve tried to include all the screenshots of the applicable rules and actions:
Print Bill after Payment Processed Rule:
Confirm to print guest receipt Rule
Confirm to print store copy Rule
Tear off first receipt Rule
Ask Printing Action:
Ask Printing Automation Action
Execute Bill Print Job Action:
Execute Bill Print Job Store Copy Action:
My printer template for the store copy (guest copy is almost identical)
Ticket Template Store Copy
[LAYOUT]
-- General layout
<XCT>27,101,4
<L00> Sangat Island Dive Resort
<L00>
<J00>Date: {TICKET DATE}|Time: {TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>-
<EB>
{DISCOUNTS}
{TAXES}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
<J10>Tax|P {TAX TOTAL}
{SERVICES}
<XCT>27,101,2
-- <XCT>27,75
<XCT>27,33,128
<R00>Total: P {TICKET TOTAL}
<XCT>27,33,4
<XCT>27,77,1
{PAYMENTS}
<DB>
<F>=
<L00>
<XCT>27,33,128
<L00>X___________________
<XCT>27,33,4
<XCT>27,77,1
<XCT>27,101,2
<J00>Signature|Sangat Island Copy
[DISCOUNTS]
<J00>{CALCULATION NAME}|P {CALCULATION TOTAL}
[SERVICES]
<J00>{CALCULATION NAME}|P {CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|P {PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|P {TOTAL PRICE}
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<L00>Guest: {ENTITY NAME}
<J00>Guest Account Balance:|P [=F(TN('{ENTITY BALANCE}'),'#;-#;0')]
[ENTITIES:Staff]
-- Staff entity format
<L00>Staff: {ENTITY NAME}
<J00>Staff Account Balance:|P [=F(TN('{ENTITY BALANCE}'),'#;-#;0')]
Thanks in advance to any kind souls.
Respectfully,
Andre