Sales receipt shows Transaction # on invoices. I want it to read Invoice # instead. How can I change this? I tried this on XML file but I guess this is picked up from RMS itself.
*This post is locked for comments
Sales receipt shows Transaction # on invoices. I want it to read Invoice # instead. How can I change this? I tried this on XML file but I guess this is picked up from RMS itself.
*This post is locked for comments
Please try it out of <IF> Statment
This is what I tried and it gives an error message saying "it may not be a well formed XML document"
Can you please point me on a right direction where I am going wrong.
<ROW> "||" Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>
<ROW> "||Account #:|" Customer.AccountNumber </ROW>
<ROW> "||Page:|\p of \t" </ROW>
</THEN>
<ELSE>
<ROW> "||" Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>
<ROW> "||Account #:|" Customer.AccountNumber </ROW>
<ROW> "||Page:|\p of \t" </ROW>
</ELSE>
<IF>
<CONDITION> Transaction.Type = transactiontypeSales </CONDITION>
<THEN>
<TEXT> "Invoice" </TEXT>
</THEN>
<ELSE>
<TEXT> Transaction.ReceiptTransactionName </TEXT>
</ELSE>
</IF>
<ROW> Store.Name "||Date:|" Transaction.Date </ROW>
<ROW> Store.Address1 "||Time:|" Transaction.Time </ROW>
<ROW> Store.CityStateZip "||Cashier:|" Cashier.Number </ROW>
<ROW> Store.Phone "||Register #:|" Register.Number</ROW>
<ROW> Store.Fax "||VAT #:|" Store.VATRegistrationNumber </ROW>
<ROW>
</ROW>
<ROW> "||" Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>
<ROW> "||Account #:|" Customer.AccountNumber </ROW>
<ROW> "||Page:|\p of \t" </ROW>
</THEN>
<ELSE>
<ROW> "||" Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>
<ROW> "||Account #:|" Customer.AccountNumber </ROW>
<ROW> "||Page:|\p of \t" </ROW>
Hi Ramy, Sorry to bother you again, Apologies I am new to this. Below is my receipt template, where should I add the texts you have suggested?
<XML>
<PROPERTIES>
<DESCRIPTION> Receipt-A4WithLocation </DESCRIPTION>
<AUTHOR> Microsoft Corporation </AUTHOR>
<VERSION> Version 1.04 </VERSION>
</PROPERTIES>
<!--
===========================
Attributes
===========================
-->
<SET name="ReceiptCount" custom="true" description="Receipt Count" type="vbLong">1</SET>
<SET name="PaperWidth" custom="true" description="Paper Width" type="vbdouble"> 8.27 </SET>
<SET name="PaperHeight" custom="true" description="Paper Height" type="vbdouble"> 11.69 </SET>
<SET name="MarginLeft" custom="true" description="Margin Left" type="vbdouble"> 0.5 </SET>
<SET name="MarginRight" custom="true" description="Margin Right" type="vbdouble"> 0.5 </SET>
<SET name="MarginTop" custom="true" description="Margin Top" type="vbdouble"> 0.5 </SET>
<SET name="MarginBottom" custom="true" description="Margin Bottom" type="vbdouble"> 0.5 </SET>
<SET name="HeaderHeight" custom="true" description="Header Height" type="vbdouble"> 3.5 </SET>
<SET name="FooterHeight" custom="true" description="Footer Height" type="vbdouble"> 1.7 </SET>
<SET name="CommentLine1" custom="true" description="Comment Line 1" type="vbString">"To reorder and view all new items please visit www.xxxxxx.co.uk"</SET>
<SET name="CommentLine2" custom="true" description="Comment Line 2" type="vbString">"sales@xxxxco.uk"</SET>
<SET name="CommentLine3" custom="true" description="Comment Line 3" type="vbString"/>
<SET name="CommentLine4" custom="true" description="Comment Line 4" type="vbString"/>
<SET name="CommentLine5" custom="true" description="Comment Line 5" type="vbString"/>
<SET name="LogoFilename" custom="true" description="Logo Filename" type="vbString"/>
<SET name="ShowStoreInfo" custom="true" description="Show Store Name/Address" type="vbBoolean"> True </SET>
<SET name="ShowCustomerAddress" custom="true" description="Show Customer Address" type="vbBoolean"> True </SET>
<SET name="ShowLineDiscounts" custom="true" description="Show Line Discounts" type="vbBoolean"> False </SET>
<SET name="ShowTaxDetails" custom="true" description="Show Tax Details" type="vbBoolean"> False </SET>
<SET name="ShowBarcode" custom="true" description="Show Barcode" type="vbBoolean"> False </SET>
<SET name="ShowLogo" custom="true" description="Show Logo" type="vbBoolean"> True </SET>
<SET name="ShowComments" custom="true" description="Show Comments" type="vbBoolean"> True </SET>
<SET name="ShowDuplicate" custom="true" description="Show Duplicate" type="vbBoolean"> True </SET>
<SET name="ShowAccountBalance" custom="true" description="Show Customer Account Balances" type="vbBoolean"> False </SET>
<SET name="MaskCreditCard" custom="true" description="Mask Credit Card Number" type="vbBoolean"> True </SET>
<SET name="LineColor" custom="true" description="Line Color" type="vbLong"> vbRed </SET>
<!--
===========================
Variable Declarations
===========================
-->
<SET name="PageWidth" type="vbdouble"> PaperWidth - MarginLeft - MarginRight </SET>
<SET name="PageHeight" type="vbdouble"> PaperHeight - MarginTop - MarginBottom - HeaderHeight - FooterHeight</SET>
<SET name="NewAccountBalance" type="vbcurrency"> 0 </SET>
<SET name="subtot" type="vbcurrency"> 0 </SET>
<SET name="subtot1" type="vbcurrency"> 0 </SET>
<SET name="acc" type="vbDouble"> 0 </SET>
<SET name="cc" type="vbDouble"> 0 </SET>
<SET name="wo" type="vbDouble"> 0 </SET>
<SET name="td" type="vbDouble"> 0 </SET>
<SET name="ext" type="vbcurrency"> 0 </SET>
<!--
===========================
Page Settings
===========================
-->
<MARGIN>
<COPIES> ReceiptCount </COPIES>
<TOP> MarginTop + HeaderHeight </TOP>
<BOTTOM> MarginBottom + FooterHeight </BOTTOM>
<LEFT> MarginLeft </LEFT>
<RIGHT> MarginRight </RIGHT>
</MARGIN>
<!--
===========================
Font Declarations
===========================
-->
<FONT name="">
<NAME>"Times New Roman"</NAME>
<SIZE> 10 </SIZE>
<BOLD> False </BOLD>
<UNDERLINE> False </UNDERLINE>
<ITALIC> False </ITALIC>
<COLOR> vbBlack </COLOR>
</FONT>
<FONT name="Small">
<NAME>"Times New Roman"</NAME>
<SIZE> 10 </SIZE>
<BOLD> False </BOLD>
<UNDERLINE> False </UNDERLINE>
<ITALIC> False </ITALIC>
<COLOR> vbBlack </COLOR>
</FONT>
<FONT name="Smallest">
<NAME>"Times New Roman"</NAME>
<SIZE> 8 </SIZE>
<BOLD> False </BOLD>
<UNDERLINE> False </UNDERLINE>
<ITALIC> False </ITALIC>
<COLOR> vbBlack </COLOR>
</FONT>
<FONT name="Large">
<NAME>"Times New Roman"</NAME>
<SIZE> 18 </SIZE>
<BOLD> True </BOLD>
<UNDERLINE> False </UNDERLINE>
<ITALIC> False </ITALIC>
<COLOR> vbBlack </COLOR>
</FONT>
<FONT name="Huge">
<NAME>"Times New Roman"</NAME>
<SIZE> 36 </SIZE>
<BOLD> True </BOLD>
<UNDERLINE> False </UNDERLINE>
<ITALIC> False </ITALIC>
<COLOR> vbRed </COLOR>
</FONT>
<!--
===========================
Header
===========================
-->
<SUB name="DrawHeader">
<TABLE>
<TOP> MarginTop </TOP>
<FONT> "Large" </FONT>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<IF>
<CONDITION> ShowLogo </CONDITION>
<THEN>
<WIDTH> PageWidth * 0.15 </WIDTH>
</THEN>
<ELSE>
<WIDTH> 0.001 </WIDTH>
</ELSE>
</IF>
<TEXT newline="true"/>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<IF><CONDITION> ShowLogo </CONDITION>
<THEN><WIDTH> PageWidth * 0.45 </WIDTH></THEN>
<ELSE><WIDTH> PageWidth * 0.60 </WIDTH></ELSE>
</IF>
<IF><CONDITION> ShowStoreInfo </CONDITION>
<THEN><TEXT> "" </TEXT></THEN>
<ELSE><TEXT> "" </TEXT></ELSE>
</IF>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth * 0.42 </WIDTH>
<IF><CONDITION>Transaction.Type = transactionSales</CONDITION>
<THEN>
<IF><CONDITION>Transaction.Total >=0</CONDITION>
<THEN><TEXT>"INVOICE"</TEXT></THEN>
<ELSE>
<TEXT>"CREDIT NOTE"</TEXT>
<SET name="cc" type="vbDouble"> 1 </SET>
</ELSE>
</IF>
</THEN>
<ELSE>
<IF><CONDITION>Transaction.Type = transactionWorkOrder</CONDITION>
<THEN>
<IF><CONDITION>Transaction.ReceiptReferenceNumber</CONDITION>
<THEN>
<TEXT>"INVOICE"</TEXT>
<SET name="wo" type="vbdouble"> 1.0 </SET></THEN>
<ELSE><TEXT>"Order Acknowledgement"</TEXT>
</ELSE>
</IF>
</THEN>
<ELSE>
<IF><CONDITION>Transaction.Type = transactionLayaway</CONDITION>
<THEN>
<TEXT>"LAYAWAY"</TEXT></THEN>
<ELSE><TEXT>Transaction.ReceiptTransactionName</TEXT></ELSE>
</IF>
</ELSE>
</IF>
</ELSE>
</IF>
</COLUMNHEADER>
</TABLE>
<!--
===========================
Store Address & trans. info
===========================
-->
<TABLE>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<IF>
<CONDITION> ShowLogo </CONDITION>
<THEN><WIDTH> PageWidth * 0.30 </WIDTH></THEN>
<ELSE><WIDTH> 0.001 </WIDTH></ELSE>
</IF>
<TEXT newline="true"/>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<IF><CONDITION> ShowLogo </CONDITION>
<THEN><WIDTH> PageWidth * 0.45 </WIDTH></THEN>
<ELSE><WIDTH> PageWidth * 0.60 </WIDTH></ELSE>
</IF>
<IF><CONDITION> ShowStoreInfo </CONDITION>
<THEN><TEXT> "" </TEXT></THEN>
<ELSE><TEXT> "" </TEXT></ELSE>
</IF>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<WIDTH> PageWidth * 0.14 </WIDTH>
<IF>
<CONDITION> Transaction.ReceiptReferenceNumber </CONDITION>
<THEN>
<TEXT> Transaction.ReceiptReferenceNumberCaption ": " </TEXT>
</THEN>
<ELSE>
<TEXT> "" </TEXT>
</ELSE>
</IF>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<WIDTH> PageWidth * 0.14 </WIDTH>
<IF>
<CONDITION> Transaction.ReceiptReferenceNumber </CONDITION>
<THEN>
<TEXT> Transaction.ReceiptReferenceNumber </TEXT>
</THEN>
<ELSE>
<TEXT> "" </TEXT>
</ELSE>
</IF>
</COLUMNHEADER>
<IF><CONDITION> ShowStoreInfo </CONDITION>
<THEN>
<ROW> "||" Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>
<ROW> "||Account #:|" Customer.AccountNumber </ROW>
<ROW> "||Page:|\p of \t" </ROW>
</THEN>
<ELSE>
<ROW> "||" Transaction.ReceiptTransactionNumberCaption ":|" Transaction.ReceiptTransactionNumber </ROW>
<ROW> "||Account #:|" Customer.AccountNumber </ROW>
<ROW> "||Page:|\p of \t" </ROW>
</ELSE>
</IF>
<ROW> Store.Name "||Date:|" Transaction.Date </ROW>
<ROW> Store.Address1 "||Time:|" Transaction.Time </ROW>
<ROW> Store.CityStateZip "||Cashier:|" Cashier.Number </ROW>
<ROW> Store.Phone "||Register #:|" Register.Number</ROW>
<ROW> Store.Fax "||VAT #:|" Store.VATRegistrationNumber </ROW>
<ROW>
</ROW>
</TABLE>
<!--
===========================
Bill To & Ship To
===========================
-->
<TABLE>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.10 </WIDTH>
<TEXT> "Bill To:" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.38 </WIDTH>
<TEXT skipblank="true" newline="true"> Customer.Name </TEXT>
<TEXT skipblank="true" newline="true"> Customer.HomeAddress.Company </TEXT>
<TEXT skipblank="true" newline="true"> Customer.HomeAddress.StreetAddress</TEXT>
<TEXT skipblank="true" newline="true"> Customer.HomeAddress.StreetAddress2</TEXT>
<TEXT skipblank="true" newline="true"> Customer.HomeAddress.CityStateZip </TEXT>
<TEXT skipblank="true" newline="true"> Customer.HomeAddress.PhoneNumber </TEXT>
<TEXT skipblank="true" newline="true"> "" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.10 </WIDTH>
<TEXT> "Ship To:" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.38 </WIDTH>
<TEXT skipblank="true" newline="true"> Customer.ShipToAddress.Name </TEXT>
<TEXT skipblank="true" newline="true"> Customer.ShipToAddress.Company </TEXT>
<TEXT skipblank="true" newline="true"> Customer.ShipToAddress.StreetAddress</TEXT>
<TEXT skipblank="true" newline="true"> Customer.ShipToAddress.StreetAddress2</TEXT>
<TEXT skipblank="true" newline="true"> Customer.ShipToAddress.CityStateZip </TEXT>
<TEXT skipblank="true" newline="true"> Customer.ShipToAddress.PhoneNumber </TEXT>
<TEXT skipblank="true" newline="true"> "" </TEXT>
</COLUMNHEADER>
</TABLE>
<TABLE>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> "" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<WIDTH> PageWidth * 0.85 </WIDTH>
<TEXT> "" </TEXT>
</COLUMNHEADER>
<IF>
<CONDITION>Len(Transaction.Comment)</CONDITION>
<THEN>
<ROW>"Reference:|" Transaction.ReferenceNumber </ROW>
</THEN>
</IF>
<IF>
<CONDITION>Len(Transaction.Comment)</CONDITION>
<THEN>
<ROW>"Comment:|" Transaction.Comment </ROW>
</THEN>
</IF>
</TABLE>
<!--
===========================
Store Logo
===========================
-->
<IF>
<CONDITION> ShowLogo </CONDITION>
<THEN>
<PICTURE>
<FILENAME> LogoFilename </FILENAME>
<WIDTH> PageWidth * 0.30 </WIDTH>
<LEFT> MarginLeft </LEFT>
<TOP> MarginTop + 0.25 </TOP>
</PICTURE>
</THEN>
</IF>
</SUB>
<!--
===========================
Draw Footer
===========================
-->
<SUB name="DrawFooter">
<MARGIN>
<BOTTOM> MarginBottom </BOTTOM>
</MARGIN>
<TABLE>
<TOP> PaperHeight - MarginBottom - FooterHeight </TOP>
<FONT> "Small" </FONT>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<WIDTH> PageWidth </WIDTH>
<TEXT/>
</COLUMNHEADER>
<ROW> "Continued on next page..." </ROW>
</TABLE>
</SUB>
<!--
===========================
Draw Last Footer
===========================
-->
<SUB name="DrawLastFooter">
<MARGIN>
<BOTTOM> MarginBottom </BOTTOM>
</MARGIN>
<TABLE>
<TOP> PaperHeight - MarginBottom - FooterHeight </TOP>
<FONT> "Small" </FONT>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth </WIDTH>
<TEXT> " " </TEXT>
</COLUMNHEADER>
</TABLE>
<IF>
<CONDITION>Transaction.Type = transactionSales | Transaction.Type = transactionWorkOrder | Transaction.Type = transactionQuote | Transaction.Type = transactionBackOrder | Transaction.Type = transactionLayaway</CONDITION>
<THEN>
<TABLE>
<FONT> "Small" </FONT>
<BORDER> tbNone </BORDER>
<IF><CONDITION> wo = 0</CONDITION>
<THEN>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth * 0.85 </WIDTH>
<TEXT> "Sub Total" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> Transaction.SubTotal </TEXT>
</COLUMNHEADER>
</THEN>
<ELSE>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth * 0.85 </WIDTH>
<TEXT> "" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> "" </TEXT>
</COLUMNHEADER>
</ELSE>
</IF>
<IF>
<CONDITION> ShowTaxDetails </CONDITION>
<THEN>
<FOR each="SalesTaxes">
<IF>
<CONDITION> Transaction.SalesTaxes.ShowOnReceipt & Transaction.SalesTaxes.IsTransactionMember </CONDITION>
<THEN>
<ROW> Transaction.SalesTaxes.Description "|" Transaction.SalesTaxes.Total </ROW>
</THEN>
</IF>
</FOR>
</THEN>
<ELSE>
<IF><CONDITION> wo = 0</CONDITION>
<THEN>
<ROW> "VAT|" Transaction.SalesTax </ROW>
</THEN>
</IF>
</ELSE>
</IF>
<IF>
<CONDITION> Len(Shipping.Carrier) </CONDITION>
<THEN>
<ROW> Shipping.Carrier " " Shipping.Service "|" Shipping.Charge </ROW>
<IF>
<CONDITION> Len(Shipping.Notes) </CONDITION>
<THEN>
<ROW> Shipping.Notes "|" </ROW>
</THEN>
</IF>
<IF>
<CONDITION> Len(Shipping.TrackingNumber) </CONDITION>
<THEN>
<ROW> Shipping.TrackingNumber "|" </ROW>
</THEN>
</IF>
</THEN>
</IF>
<IF><CONDITION> wo = 0</CONDITION>
<THEN>
<ROW> "Total|" Transaction.Total </ROW><ROW> " " </ROW></THEN></IF>
<IF>
<CONDITION> (Transaction.TotalDue <> Transaction.Total) & (Transaction.Type <> transactionQuote) </CONDITION>
<THEN>
<IF><CONDITION> wo = 1</CONDITION>
<THEN>
<SET name="subtot" type="vbcurrency">(Transaction.TotalPurchased - Transaction.SalesTaxPurchased) </SET>
<ROW> "Sub Total|" subtot</ROW>
<ROW> "VAT Purchased|" Transaction.SalesTaxPurchased </ROW>
<ROW> "Total Purchased|" Transaction.TotalPurchased </ROW>
<SET name="subtot1" type="vbcurrency">(Transaction.TotalPurchased) </SET>
<ROW/>
</THEN>
</IF>
</THEN>
<ELSE>
<IF><CONDITION> wo = 1</CONDITION>
<THEN>
<SET name="subtot" type="vbcurrency">(Transaction.TotalPurchased - Transaction.SalesTaxPurchased) </SET>
<ROW> "Sub Total|" subtot</ROW>
<ROW> "VAT Purchased|" Transaction.SalesTaxPurchased </ROW>
<ROW> "Total Purchased|" Transaction.TotalPurchased </ROW>
<SET name="subtot1" type="vbcurrency">(Transaction.TotalPurchased) </SET>
<ROW/>
</THEN>
</IF>
</ELSE>
</IF>
<FOR each="tender">
<IF>
<CONDITION> (Tender.AmountIn <> 0) | (Tender.AmountInRounding <> 0) </CONDITION>
<THEN>
<IF>
<CONDITION> Tender.Descriptor.TenderType = tenderAccount </CONDITION>
<THEN>
<IF><CONDITION> wo = 1 </CONDITION>
<THEN><ROW> Tender.Descriptor.Description "|" subtot1</ROW></THEN>
<ELSE><ROW> Tender.Descriptor.Description "|" Tender.AmountIn </ROW></ELSE>
</IF>
</THEN>
<ELSE>
<ROW> Tender.Descriptor.Description " Tendered|" Tender.AmountIn </ROW>
</ELSE>
</IF>
<IF>
<CONDITION> Tender.Descriptor.TenderType = tenderCreditCard </CONDITION>
<THEN>
<IF>
<CONDITION> MaskCreditCard </CONDITION>
<THEN>
<ROW> "Card: " Tender.AccountNumberMasked "|" </ROW>
</THEN>
<ELSE>
<ROW> "Card: " Tender.AccountNumber "|" </ROW>
</ELSE>
</IF>
<ROW> "Exp: " Tender.Expiration "|" </ROW>
<ROW> "Auth: " Tender.Approvalcode "|" </ROW>
</THEN>
</IF>
<IF>
<CONDITION> (Tender.Descriptor.TenderType = tenderAccount) & ShowAccountBalance </CONDITION>
<THEN>
<SET name="NewAccountBalance" type="vbcurrency"> Customer.AccountBalance + Tender.AmountIn - Tender.AmountOut </SET>
<ROW> "Previous Balance|" Customer.AccountBalance </ROW>
<ROW> "New Balance|" NewAccountBalance </ROW>
<ROW/>
</THEN>
</IF>
<IF>
<CONDITION> (Tender.Descriptor.TenderType = tenderAccount) </CONDITION>
<THEN>
<SET name="acc" type="vbDouble"> 1 </SET>
</THEN>
</IF>
<IF>
<CONDITION> Tender.Descriptor.TenderType = tenderVoucher </CONDITION>
<THEN>
<ROW> "Number:" Tender.VoucherNumber "|" </ROW>
<ROW> "Previous Balance|" Tender.VoucherPreviousBalance </ROW>
<ROW> "New Balance|" Tender.VoucherNewBalance </ROW>
<ROW/>
</THEN>
</IF>
<IF>
<CONDITION> Tender.AmountInRounding <> 0 </CONDITION>
<THEN>
<ROW> "Roundoff " Tender.Descriptor.Description "|" Tender.AmountInRounding </ROW>
</THEN>
</IF>
</THEN>
</IF>
</FOR>
<IF>
<CONDITION> Transaction.TotalTenderOut </CONDITION>
<THEN>
<FOR each="tender">
<IF>
<CONDITION> Tender.AmountOut <> 0 | Tender.AmountOutRounding <> 0 </CONDITION>
<THEN>
<ROW> "Change " Tender.Descriptor.Description "|" Tender.AmountOut </ROW>
<IF><CONDITION> Tender.Descriptor.TenderType = tenderAccount </CONDITION>
<THEN><SET name="td" type="vbDouble"> 1 </SET></THEN>
</IF>
<IF>
<CONDITION> Tender.Descriptor.TenderType = tenderCreditCard </CONDITION>
<THEN>
<IF>
<CONDITION> MaskCreditCard </CONDITION>
<THEN>
<ROW> "Card: " Tender.AccountNumberMasked "|" </ROW>
</THEN>
<ELSE>
<ROW> "Card: " Tender.AccountNumber "|" </ROW>
</ELSE>
</IF>
<ROW> "Auth: " Tender.ApprovalCode "|" </ROW>
</THEN>
</IF>
<IF>
<CONDITION> (Tender.Descriptor.TenderType = tenderAccount) & ShowAccountBalance </CONDITION>
<THEN>
<SET name="NewAccountBalance" type="vbcurrency"> Customer.AccountBalance + Tender.AmountIn - Tender.AmountOut </SET>
<ROW> "Previous Balance|" Customer.AccountBalance </ROW>
<ROW> "New Balance|" NewAccountBalance </ROW>
<ROW/>
</THEN>
</IF>
<IF>
<CONDITION> Tender.AmountOutRounding <> 0 </CONDITION>
<THEN>
<ROW> "Roundoff " Tender.Descriptor.Description "|" Tender.AmountOutRounding </ROW>
</THEN>
</IF>
</THEN>
</IF>
</FOR>
</THEN>
<ELSE>
<ROW> "Change Due|" Transaction.TotalTenderOut </ROW>
</ELSE>
</IF>
<IF>
<CONDITION> (Transaction.TotalDue <> Transaction.Total) & (Transaction.Type <> transactionQuote) </CONDITION>
<THEN>
<ROW/>
<ROW>
</ROW>
<ROW>
</ROW>
</THEN>
</IF>
</TABLE>
</THEN>
</IF>
<IF>
<CONDITION> Transaction.Type = transactionAccountPayment </CONDITION>
<THEN>
<TABLE>
<FONT> "Small" </FONT>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth * 0.85 </WIDTH>
<TEXT> "Total Payments" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">~" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> Customer.AccountReceivables.TotalPayments </TEXT>
</COLUMNHEADER>
<IF>
<CONDITION> Customer.AccountReceivables.AppliedCredits <> 0 </CONDITION>
<THEN>
<ROW> "Applied Credit|" Customer.AccountReceivables.AppliedCredits </ROW>
</THEN>
</IF>
<FOR each="tender">
<IF>
<CONDITION> Tender.AmountIn <> 0 </CONDITION>
<THEN>
<ROW> "Paid " Tender.Descriptor.Description "|" Tender.AmountIn </ROW>
<IF>
<CONDITION> Tender.Descriptor.TenderType = tenderCreditCard </CONDITION>
<THEN>
<IF>
<CONDITION> MaskCreditCard </CONDITION>
<THEN>
<ROW> "Card: " Tender.AccountNumberMasked "|" </ROW>
</THEN>
<ELSE>
<ROW> "Card: " Tender.AccountNumber "|" </ROW>
</ELSE>
</IF>
<ROW> "Exp: " Tender.Expiration "|" </ROW>
<ROW> "Auth: " Tender.ApprovalCode "|" </ROW>
</THEN>
</IF>
<IF>
<CONDITION> Tender.AmountInRounding <> 0 </CONDITION>
<THEN>
<ROW> "RoundOff " Tender.Descriptor.Description "|" Tender.AmountInRounding </ROW>
</THEN>
</IF>
</THEN>
</IF>
</FOR>
<FOR each="tender">
<IF>
<CONDITION> Tender.AmountOut <> 0 </CONDITION>
<THEN>
<ROW> "Paid " Tender.Descriptor.Description "|" Tender.AmountOut </ROW>
<IF>
<CONDITION> Tender.Descriptor.TenderType = tenderCreditCard </CONDITION>
<THEN>
<IF>
<CONDITION> MaskCreditCard </CONDITION>
<THEN>
<ROW> "Card: " Tender.AccountNumberMasked "|" </ROW>
</THEN>
<ELSE>
<ROW> "Card: " Tender.AccountNumber "|" </ROW>
</ELSE>
</IF>
<ROW> "Auth: " Tender.ApprovalCode "|" </ROW>
</THEN>
</IF>
<IF>
<CONDITION> Tender.AmountOutRounding <> 0 </CONDITION>
<THEN>
<ROW> "RoundOff " Tender.Descriptor.Description "|" Tender.AmountOutRounding </ROW>
</THEN>
</IF>
</THEN>
</IF>
</FOR>
<ROW/>
<ROW> "Previous Balance|" Customer.PreviousAccountBalance </ROW>
<ROW> "Payments|" Customer.AccountReceivables.TotalPayments </ROW>
<ROW> "New Balance|" Customer.AccountBalance </ROW>
<ROW/>
</TABLE>
</THEN>
</IF>
<IF>
<CONDITION> ShowComments </CONDITION>
<THEN>
<TABLE>
<BORDER> tbAll </BORDER>
<TOP>PaperHeight - FooterHeight - MarginBottom + 0.15 </TOP>
<FONT> "Smallest" </FONT>
<COLUMNHEADER>
<ALIGNMENT>"<"</ALIGNMENT>
<WIDTH>PageWidth * 0.65</WIDTH>
<IF>
<CONDITION> cc = 1</CONDITION>
<THEN>
<IF><CONDITION>td = 1</CONDITION>
<THEN>
<TEXT>"Our sales accounts are now being factored by Lloyds TSB Commercial Finance Ltd to whom the "</TEXT>
<TEXT>" "</TEXT>
<TEXT>" "</TEXT>
<TEXT newline="true">"PLEASE DO NOT SEND ANY PAYMENTS DIRECTLY TO INDIA JANE."</TEXT>
</THEN>
<ELSE>
<TEXT newline="true"></TEXT>
<TEXT newline="true"> CommentLine1 </TEXT>
<TEXT newline="true">CommentLine2</TEXT>
<TEXT newline="true">CommentLine3</TEXT>
<TEXT newline="true">CommentLine4</TEXT>
<TEXT newline="true">CommentLine5</TEXT>
<TEXT newline="true"></TEXT>
<TEXT newline="true"></TEXT>
</ELSE>
</IF>
</THEN>
<ELSE>
<IF><CONDITION>acc = 1</CONDITION>
<THEN>
<TEXT>"Our sales accounts are now being factored by Lloyds TSB Commercial Finance Ltd to whom the "</TEXT>
<TEXT>" "</TEXT>
<TEXT>" "</TEXT>
<TEXT newline="true">"PLEASE DO NOT SEND ANY PAYMENTS DIRECTLY TO XXXXXX."</TEXT>
</THEN>
<ELSE>
<TEXT newline="true"></TEXT>
<TEXT newline="true"> CommentLine1 </TEXT>
<TEXT newline="true">CommentLine2</TEXT>
<TEXT newline="true">CommentLine3</TEXT>
<TEXT newline="true">CommentLine4</TEXT>
<TEXT newline="true">CommentLine5</TEXT>
<TEXT newline="true"></TEXT>
<TEXT newline="true"></TEXT>
</ELSE>
</IF>
</ELSE>
</IF>
</COLUMNHEADER>
</TABLE>
</THEN>
</IF>
<!--
===========================
Barcode
===========================
-->
<IF>
<CONDITION> ShowBarcode & (Transaction.ReceiptTransactionNumber <> 0) </CONDITION>
<THEN>
<BARCODE>
<TOP> PaperHeight - MarginBottom - 0.5 </TOP>
<STYLE> msS3of9 </STYLE>
<UPCNOTCHES> msUPCNBelow </UPCNOTCHES>
<LEFT> MarginLeft </LEFT>
<WIDTH> PageWidth * .40 </WIDTH>
<HEIGHT> 0.2 </HEIGHT>
<PRINTCAPTION> True </PRINTCAPTION>
<BARWIDTH> 0 </BARWIDTH>
<TEXT> Transaction.ReceiptTransactionNumber </TEXT>
</BARCODE>
</THEN>
</IF>
</SUB>
<!--
===========================
Draw Duplicate
===========================
-->
<SUB name="DrawDuplicate">
<MARGIN>
<BOTTOM> MarginBottom </BOTTOM>
<TOP> MarginTop </TOP>
</MARGIN>
<TABLE>
<TOP> PaperHeight / 2 </TOP>
<FONT> "Huge" </FONT>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "^~" </ALIGNMENT>
<WIDTH> PageWidth </WIDTH>
<TEXT>"DUPLICATE RECEIPT"</TEXT>
</COLUMNHEADER>
</TABLE>
</SUB>
<SUB name="OverlayFirstPage">
<CALL> "DrawHeader" </CALL>
<CALL> "DrawFooter" </CALL>
</SUB>
<SUB name="OverlayMiddlePage">
<CALL> "DrawHeader" </CALL>
<CALL> "DrawFooter" </CALL>
</SUB>
<SUB name="OverlayLastPage">
<CALL> "DrawHeader" </CALL>
<CALL> "DrawLastFooter" </CALL>
</SUB>
<SUB name="OverlayOnlyPage">
<CALL> "DrawHeader" </CALL>
<CALL> "DrawLastFooter" </CALL>
</SUB>
<SUB name="Duplicate">
<IF>
<CONDITION> ShowDuplicate </CONDITION>
<THEN>
<CALL> "DrawDuplicate" </CALL>
</THEN>
</IF>
</SUB>
<!--
===========================
Document
===========================
-->
<DOCUMENT>
<!--
===========================
Drop & Payout
===========================
-->
<IF>
<CONDITION> Transaction.Type = transactionDrop | Transaction.Type = transactionPayOut </CONDITION>
<THEN>
<TABLE>
<BORDER> tbNone </BORDER>
<HEADERSHADE> LineColor </HEADERSHADE>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.50 </WIDTH>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.50 </WIDTH>
</COLUMNHEADER>
<ROW/>
<IF>
<CONDITION> Transaction.Type = transactionPayout </CONDITION>
<THEN>
<ROW> "Pay To:|" Transaction.PayOutRecipient </ROW>
</THEN>
</IF>
<ROW> "Comment:|" Transaction.Comment </ROW>
<ROW/>
<FOR each="tender">
<IF>
<CONDITION> Tender.AmountOut <> 0 </CONDITION>
<THEN>
<ROW> "Amount Out (" Tender.Descriptor.Description "):|" Tender.AmountOut </ROW>
</THEN>
</IF>
</FOR>
<ROW/>
<FOR each="tender">
<IF>
<CONDITION> Tender.AmountIn <> 0 </CONDITION>
<THEN>
<ROW> "Amount In (" Tender.Descriptor.Description "):|" Tender.AmountIn </ROW>
</THEN>
</IF>
</FOR>
</TABLE>
</THEN>
</IF>
<!--
============================
Account Payment - Receivable date
============================
-->
<IF>
<CONDITION> (Transaction.Type = transactionAccountPayment) & (Customer.AccountDateDueType = accountdueAccountReceivableDatePlusGracePeriod) </CONDITION>
<THEN>
<TABLE>
<TOP> HeaderHeight + MarginTop </TOP>
<FONT> "Small" </FONT>
<BORDER> tbNone </BORDER>
<HEADERSHADE> LineColor </HEADERSHADE>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.25 </WIDTH>
<TEXT> "Reference" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> "Invoice Date:" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> "Due Date:" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> "Invoice Amount:" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> "Balance Due:" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.15 </WIDTH>
<TEXT> "Payment:" </TEXT>
</COLUMNHEADER>
<FOR each="AccountReceivable">
<IF>
<CONDITION> (Customer.AccountReceivable.Payment <> 0) | (Customer.AccountReceivable.Balance <> 0) </CONDITION>
<THEN>
<ROW> Customer.AccountReceivable.Reference "|" Customer.AccountReceivable.OriginalDate "|" Customer.AccountReceivable.DueDate "|" Customer.AccountReceivable.OriginalAmount "|" Customer.AccountReceivable.Balance "|" Customer.AccountReceivable.Payment </ROW>
</THEN>
</IF>
</FOR>
</TABLE>
</THEN>
</IF>
<!--
============================
Account Payment - Revolving
============================
-->
<IF>
<CONDITION> (Transaction.Type = transactionAccountPayment) & (Customer.AccountDateDueType = accountdueCloseOfBillingCyclePlusGracePeriod) </CONDITION>
<THEN>
<TABLE>
<TOP> HeaderHeight + MarginTop </TOP>
<FONT> "Small" </FONT>
<BORDER> tbNone </BORDER>
<HEADERSHADE> LineColor </HEADERSHADE>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth </WIDTH>
<TEXT> "" </TEXT>
</COLUMNHEADER>
<ROW> "Payment on Account..." </ROW>
</TABLE>
</THEN>
</IF>
<!--
===========================
Transaction Details
===========================
-->
<IF>
<CONDITION> Transaction.Type = transactionSales | Transaction.Type = transactionWorkOrder | Transaction.Type = transactionQuote | Transaction.Type = transactionBackOrder | Transaction.Type = transactionLayaway | Transaction.Type = transactionAbortedTransaction </CONDITION>
<THEN>
<TABLE>
<TOP> HeaderHeight + MarginTop </TOP>
<FONT> "Small" </FONT>
<BORDER> tbNone </BORDER>
<HEADERSHADE> vbYellow </HEADERSHADE>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.11 </WIDTH>
<TEXT> "Location" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<WIDTH> PageWidth * 0.18 </WIDTH>
<TEXT> "Item Code" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.30 </WIDTH>
<TEXT> "Description" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.07 </WIDTH>
<TEXT> "Qty Ord" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> "<" </ALIGNMENT>
<WIDTH> PageWidth * 0.07 </WIDTH>
<TEXT> "Qty Picked" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.12 </WIDTH>
<TEXT> "Price" </TEXT>
</COLUMNHEADER>
<COLUMNHEADER>
<ALIGNMENT> ">" </ALIGNMENT>
<WIDTH> PageWidth * 0.12 </WIDTH>
<TEXT> "Line Value" </TEXT>
</COLUMNHEADER>
<FOR each="Entry">
<IF><CONDITION> ShowLineDiscounts & (Entry.ExtendedDiscountPurchased <> 0)</CONDITION>
<THEN>
<IF><CONDITION>( Entry.Quantity <> 0) & </CONDITION>
<THEN>
<IF><CONDITION> wo = 1</CONDITION>
<THEN>
<IF><CONDITION> (Entry.QuantityPurchased <> 0) </CONDITION>
<THEN>
<SET name="ext" type="vbcurrency"> (Entry.FullPrice * Entry.QuantityPurchased) </SET>
<ROW> Entry.Item.BinLocation "|" Entry.Item.ItemLookupCode "|" Entry.Description "|" Entry.Quantity "|" Entry.QuantityPurchased "|" Entry.FullPrice "|" ext </ROW>
<IF><CONDITION> Entry.DiscountNegative <> 0 </CONDITION>
<THEN>
<ROW> "||Discount||" Entry.DiscountNegative "|" Entry.ExtendedDiscountNegative </ROW>
</THEN>
</IF>
</THEN>
</IF>
</THEN>
<ELSE>
<ROW> Entry.Item.BinLocation "|" Entry.Item.ItemLookupCode "|" Entry.Description "|" Entry.Quantity "|" Entry.QuantityPurchased "|" Entry.FullPrice "|" Entry.FullPrice </ROW>
<IF><CONDITION> Entry.DiscountNegative <> 0 </CONDITION>
<THEN>
<ROW> "||Discount||" Entry.DiscountNegative "|" Entry.ExtendedDiscountNegative </ROW>
</THEN>
</IF>
</ELSE>
</IF>
</THEN>
</IF>
</THEN>
<ELSE>
<IF><CONDITION>( Entry.Quantity <> 0) </CONDITION>
<THEN>
<IF><CONDITION> wo = 1</CONDITION>
<THEN>
<IF><CONDITION> (Entry.QuantityPurchased <> 0) </CONDITION>
<THEN>
<SET name="ext1" type="vbcurrency"> (Entry.Price * Entry.QuantityPurchased) </SET>
<ROW> Entry.Item.BinLocation "|" Entry.Item.ItemLookupCode "|" Entry.Description "|" Entry.Quantity "|" Entry.QuantityPurchased "|" Entry.Price "|" ext1 </ROW>
</THEN>
</IF>
</THEN>
<ELSE>
<ROW> Entry.Item.BinLocation "|" Entry.Item.ItemLookupCode "|" Entry.Description "|" Entry.Quantity "|" Entry.QuantityPurchased "|" Entry.Price "|" Entry.ExtendedPrice </ROW>
</ELSE>
</IF>
</THEN>
</IF>
</ELSE>
</IF>
<!-- <IF><CONDITION>( Entry.Quantity<> 0)</CONDITION>
<THEN>
<IF>
<CONDITION> ((Entry.QuantityOnOrder <> 0) | (Entry.QuantityRTD <> 0)) & (Transaction.Type <> transactionQuote) </CONDITION>
<THEN>
<ROW> "|| RTD:"Entry.QuantityRTD " On Order:"Entry.QuantityOnOrder " Picked Up:"Entry.QuantityPurchased </ROW>
</THEN>
</IF>
</THEN>
</IF>-->
</FOR>
</TABLE>
<!--
===========================
Canceled Transaction
===========================
-->
<IF>
<CONDITION> Transaction.Type = transactionAbortedTransaction </CONDITION>
<THEN>
<TABLE>
<BORDER> tbNone </BORDER>
<COLUMNHEADER>
<ALIGNMENT> "<~" </ALIGNMENT>
<WIDTH> PageWidth </WIDTH>
</COLUMNHEADER>
<ROW> "" </ROW>
<ROW> "Transaction cancelled..." </ROW>
<ROW> "" </ROW>
<ROW> "" </ROW>
</TABLE>
</THEN>
</IF>
</THEN>
</IF>
</DOCUMENT>
</XML>
Thank you.
Receipt Template modify in it after that upload into RMS.
Thanks Ramy, do I insert this in XML file? if yes, where about on the file should I insert it?
Thanks
Replace <TEXT> Transaction.ReceiptTransactionName </TEXT>
by
<IF>
<CONDITION> Transaction.Type = transactiontypeSales </CONDITION>
<THEN>
<TEXT> "Invoice" </TEXT>
</THEN>
<ELSE>
<TEXT> Transaction.ReceiptTransactionName </TEXT>
</ELSE>
</IF>
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156