Consolidating the Sales and CC Receipt
You can consolidate the Sales and CC Receipt using the following layout code. This is a modified Receipt layout, and does not work if put within the CC_Top/CC_Bottom layout sections:
<|CENTER('Company Name',40)|>
<|CENTER('Company Address',40)|>
<|CENTER('City State Zip',40)|>
<|CENTER('Company Phone',40)|>
<|CENTER('Company Website Address',40)|>
<|NEWLINE()|>
<|CENTER('SALES RECEIPT',40)|>
<|CENTER(alltrim(sales_pt->descrip),40)|>
<|CENTER(alltrim(operator->first_name),40)|>
<|CENTER('Sale Number: '+IIF(sale_hdr->sale_no=sale_hdr->mastersale,ALLTRIM(STR(sale_hdr->mastersale,16,0)),ALLTRIM(STR(sale_hdr->sale_no))),40)|>
<|CENTER(DSTR2(sale_hdr->Date_time),40)|>
<|NEWLINE()|>
<|'Qty Item Price '|>
<|' Special Discount'|>
<|'----------------------------------------'|>
<|Details(IIF(Item="**TRANS**",' Account Transaction '+STR(extension,8,2),IIF(MODIFIER(),' '+Items->descrip+' '+STR(extension-tax_amount-tax_amt2+disc_amt,8,2),STR(quantity,3,0)+' '+Items->descrip+' '+STR(extension-tax_amount-tax_amt2+disc_amt,8,2)))+IIF(message=' ',alltrim(' '),NEWLINE()+' '+message)+IIF(guest_no=0,ALLTRIM(' '),NEWLINE()+' '+alltrim(guests->first_name)+' '+alltrim(guests->last_name))+IIF(disc_amt=0,NEWLINE()+ALLTRIM(' '),NEWLINE()+' '+IIF(ALLTRIM(UPPER(special))="CUSTOM","Custom Special ",specials->descrip)+' '+STR(-1*disc_amt,8,2)+NEWLINE()))|>
<|JUSTRIGHT('---------------------------',40)|>
<|JUSTRIGHT(' Sub Total:'+STR(Utility->sale_sub,10,2),40)|>
<|JUSTRIGHT(' Tax:'+STR(Utility->sale_tax,10,2),40)|>
<|JUSTRIGHT(' Total:'+STR(Utility->sale_ext,10,2),40)|>
<|JUSTRIGHT('---------------------------',40)|>
<|JUSTRIGHT(' PAYMENTS:'+STR(Utility->amt_paid,10,2),40)|>
<|JUSTRIGHT(' BALANCE DUE:'+STR(Utility->bal_due,10,2),40)|>
<|JUSTRIGHT('---------------------------',40)|>
<|JUSTRIGHT(iif(Utility->sale_ext>0.00,'Payment Types and Amounts:',''),40)|>
<|JUSTRIGHT(iif(Utility->sale_ext>0.00,FOP(),''),40)|>
<|JUSTRIGHT(iif(sale_hdr->pmt_amt1>0.0000,alltrim(str(sale_hdr->pmt_amt1,8,2))+' ','')+iif(sale_hdr->pmt_amt2>0.0000,alltrim(str(sale_hdr->pmt_amt2,8,2))+' ','')+iif(sale_hdr->pmt_amt3>0.0000,alltrim(str(sale_hdr->pmt_amt3,8,2))+' ','')+iif(sale_hdr->pmt_amt4>0.0000,alltrim(str(sale_hdr->pmt_amt4,8,2)),''),40)|>
<|JUSTRIGHT('CHANGE DUE: '+iif(Utility->change>0.0000,'-','')+alltrim(STR(Utility->change,8,2)),40)|>
<|NEWLINE()|>
<|CENTER('Thank You!',40)|>
<|NEWLINE()|>
<|iterate_over(cc_trans, sale_no, sale_hdr->sale_no, IIF(cc_trans->status=3,ALLTRIM(' '),'Card Number: XXXXXXXXXXXX' + cc_trans->card_id + NEWLINE() + 'Card Type: ' + cc_trans->card_type + NEWLINE() + 'Amount: $' + ALLTRIM(STR(cc_trans->total,16,2)) + NEWLINE() + 'Approval: ' + ALLTRIM(cc_trans->approval) + NEWLINE()), NEWLINE())|>
<|NEWLINE()|>
<|NEWLINE()|>
<|NEWLINE()|>
<|Printers->cut_code|>
<|NEWLINE()|>
<|NEWLINE()|>