Forcing receipt to use 2 lines

Apr 03, 2006 4 Replies

would someone please guide me on how to edit the XML in the receipt to show:



Item Description Amount



123456789012 Nice long sleeve tee shirt $16.99

I dont want it to be like this: Item Description Amount



1234567 Nice long sleev $16.99
89012 e Tee Shirt

i want it to use 2 lines by default.



TIA,


All of these changes are in the PrintTransactionDetails Sub. To get what you want you are going to have to combine the first two columns Item and Description into one column. Change this:

"<~" PageWidth * 0.29 "Item" "<" PageWidth * 0.42 "Description" ">~" PageWidth * 0.29 "Amount"

"================|=========================|=================" To this:

"<~" PageWidth * 0.71 "Item Description" ">~" PageWidth * 0.29 "Amount"

"=========================================|================="

Then make sure there is only one "|" in each row in the TransactionDetail section. For instance this line of code: "|Discount|" Entry.ExtendedDiscountNegative Should be changed to: "Discount|" Entry.ExtendedDiscountNegative There several lines of code that need to changed.

Lastly modify this line of code: Entry.Item.ItemLookupCode "|" Entry.Description "|" Entry.ExtendedFullPrice and make it look like this: Entry.Item.ItemLookupCode "|" Entry.ExtendedFullPrice Entry.Description "|" Entry.ExtendedFullPrice There are two places in the TransactionDetails section that this code should be changed to ensure your receipt displays the format you want.

Rob

Thanks Rob, that did it. There was a slash or two missing in your code (malformed XML), so i am posting the updated version of your advice here for future reference:

All of these changes are in the PrintTransactionDetails Sub. To get what you want you are going to have to combine the first two columns Item and Description into one column. Change this:

"~" PageWidth * 0.29 "Amount"

"================|=========================|=================" To this:

"~" PageWidth * 0.29 "Amount"

"=========================================|================="

Then make sure there is only one "|" in each row in the TransactionDetail section. For instance this line of code: "|Discount|" Entry.ExtendedDiscountNegative Should be changed to: "Discount|" Entry.ExtendedDiscountNegative There several lines of code that need to changed.

Lastly modify this line of code: Entry.Item.ItemLookupCode "|" Entry.Description "|" Entry.ExtendedFullPrice and make it look like this: Entry.Item.ItemLookupCode "|" Entry.ExtendedFullPrice Entry.Description "|" Entry.ExtendedFullPrice There are two places in the TransactionDetails section that this code should be changed to ensure your receipt displays the format you want.

Hi Rob,

I am having almost like the same issue and need your help here, I would like to omit the "item" from the receipt format and print out as Description qty amount ======= == ===Any ideal how to modify the xml?

Your help is very muc appreciated.

Kase

Rob" wrote:

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required