why doesn't this modification to XML receipt work?

how can i modify the fullpage.xml file so that if the sale is charged to the customer's store account, the title of the receipt is 'SALES INVOICE' - otherwise we want the title to be 'SALES RECEIPT'...i tried modifying the file as shown below without success:

Tender.Descriptor.TenderType = 4 "SALES INVOICE" "SALES RECEIPT"

not sure if this can be done?

thanks, kevin

Reply to
kskinne
Loading thread data ...

try Tender.Descriptor.TenderType = tenderAccount

Reply to
Glenn Adams [MVP - Retail Mgmt]

nope, that doesn't work either - it still says SALES RECEIPT regardless of which tender type i select when tendering the transaction. any other ideas? should i be using something else to test for this? i also tried this:

Tender.Descriptor.TenderType = 4 & Tender.AmountIn

0 "SALES INVOICE" "SALES RECEIPT"

without any luck, thought maybe testing for this would only work if i was testing each tender, but that doesn't seem to work either

thanks Glenn, Kevin

"Glenn Adams [MVP - Retail Mgmt]" wrote:

Reply to
kskinne

Check the Report Library, one of the receipts on there has an example.

Reply to
Jason Hunt

assuming you mean on the customersource website - i am working with microsoft on getting our registration of RMS associated with my passport login, right now it's not. but as soon as I am able to get access to RMS info on customersource, i'll try to check it out. in the meantime if you know specifically what report mod your thinking of, could you post an example for me? thanks

kevin

"Jas> Check the Report Library, one of the receipts on there has an example. > > >

Reply to
kskinne

ok, i checked out the receipts available for download, and none of them are doing what i'm trying to do. they are testing to see if:

Transaction.TotalQuantityPurchased > 0

the problem with that is, it will be true regardless of the tender type being selected. for both a sale that is paid in cash and a sale that is charged on account, both instances the TotalQuantityPurchased is > 0... I need to change the title of the receipt to 'SALES INVOICE' but only if the item is being charged on account. i couldn't find any samples that showed how to do that. any other ideas?

thanks, kevin

Reply to
kskinne

Hi Kevin,

Sorry, I was thinking of the wrong thing.

Glenn's suggestion should work:

Tender.Descriptor.TenderType = TenderAccount

Make sure you remember to re-load the XML file after you make any changes. The receipt templates are stored in the database, so if you update the .xml file, RMS won't recognize those changes until you reload it.

- Jason

Reply to
Jason Hunt

this is exactly what i have in the header section of my XML file:

Transaction.ReceiptReturningItems = TRUE "CREDIT MEMO" Tender.Descriptor.TenderType = TenderAccount

"SALES INVOICE" "SALES RECEIPT"

i have re-loaded this file as the receipt template in manager too. but it still isn't working (the first IF statement that changes the title to CREDIT MEMO if items are being returned works fine though)

it is not changing the title to SALES INVOICE if I do a test sale and charge the item to the customer's store account.

the if statement appears to be well-formed, and when i print the receipt it is not erroring out, it's just that regardless of the tender type i select, my condition always evaluates to FALSE

can someone test this in their own receipt template and see if it works for them??

thank you for your help, kevin

Reply to
kskinne

Jason or Glenn,

Does Tender.Descriptor.TenderType actually represent the tender that was selected during the tendering process at the end of a transaction? Or is there some other property that I should be evaluating instead? I just got thinking, maybe I am evaluating the wrong tender.

Thanks, Kevin

Reply to
kskinne

another question - is it possible that the tendertype variable can only be used when it is referencing a collection? in other words do i need to have this in a FOR statement, where I am testing each tender? (see my second post

- that's what i was attempting to do there). just throwing out ideas, i'm not sure how to get this working correctly...

thanks, kevin

Reply to
kskinne

Yeah, I think you hit on it here - you would need to check for each tender - RMS allows split tenders, so the receipt always has to assume there is more than one. Didn't think about that before.

Reply to
Glenn Adams [MVP - Retail Mgmt]

Hi Glenn -

based on this then, what would be the best way to do this. i tried replacing this:

Tender.Descriptor.TenderType = TenderAccount "SALES INVOICE" "SALES INVOICE"

with this instead:

Tender.Descriptor.TenderType = TenderAccount & Tender.AmountIn 0

"a" "b"

however when i try to reselect this file in manager, it won't let me because it says it is not a well-formed xml document. what is wrong with my syntax? and if the syntax is correct will this work? i'm worried that if i use this, it will insert a title for each tender and i'll have a bunch of 'SALES RECEIPTS' written across the top instead of just one.

any help is appreciated - thank you for your help so far.

kevin

Reply to
kskinne

You have to use HTML codes for the ampersand and the greater-than/less-than symbols:

Tender.Descriptor.TenderType = TenderAccount & Tender.AmountIn <> 0

The receipts that come with RMS should also illustrate this.

Reply to
Jason Hunt

oops - sorry about that, i should have caught that...

ok, so i made that change, and then it allowed me to load the updated XML file without problems in manager. however, then i went into POS and did a transaction, and charged it to the store account tender. when the receipt printed, it still said 'RECEIPT' on the top instead of 'INVOICE'. so the IF statement is still not evaluating my transaction the way i need it to.

plus, now that I have placed the tender within a FOR statement, instead of saying 'sales receipt' once in the top, it says it multiple times (???), at least until it reaches the margin and runs out of space

hopefully one of you guys can maybe come up with a better way of accomplishing the same thing, or at least fixing the way I'm trying to do it? because this just doesn't seem to be working - problem is i don't see why, when i look at the code, it looks like it should work...

thanks, kevin

Reply to
kskinne

ok, i've got something that is working for me now:

Transaction.ReceiptReturningItems = TRUE "CREDIT MEMO" Tender.AmountIn 0 Tender.Descriptor.TenderType TenderAccount "SALES INVOICE" "SALES RECEIPT" ""

this evaluates correctly and eliminates the duplicate titles. thank you Glenn and Jason for helping me get to the point where i was able to work this out. i appreciate the help

Kevin

Reply to
kskinne

Reply to
Michael Fellows

yes i couldn't agree more...another thing i would really like to see is a separate TransactionType enum property for returns, instead of being lumped in with TransactionTypeSales

thanks, kevin

Reply to
kskinne

I would like to say that was fantastic how you all solved that, it is a problem I needed too, thanks. I am not a programmer so could you advise were these lines of code would need to be in the receipt templates, and do you need to have the customer account type set to account. More questions sorry, new to RMS just trying to get it set up. Is there a way of showing on invoices (receipts) the amount for an item excluding VAT, rather than the finished amount, just some of my account customers need to know prices excluding vat. Also my current receipts on the epos printer format shows VAT and the A4 printer format it shows Sales Tax, how can I change this?

Any help is appreciated. Thanks

"ksk> yes i couldn't agree more...another thing i would really like to see is a

Reply to
Platinum

Hi,

Nice little xml mod you've got here.

I'm trying to put this into the receipt file myself, but I'm a novice with html as I only learn by looking at existing templates/code.

Can anyone tell me where this code has to go in the full page receipt layout please.

Many Thanks

Mark @ CES

Reply to
mark

Reply to
Peter Liu

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.