Receipt modification Problem


C

Chris

I am trying to modify the header of the reciept to reflect current business
practices and have something wrong with the XML code. What I am trying to do
is set a different text for the store name based on a variable contained in
the sales rep field. Every customer of our business is assigned a sales rep
that is actually the sales channel they use to reach our store. I would like
invoices, work orders, packing slips to have the correct store name at the
top depending on what sales rep is associted with the customer.sale.
Receipt variable I want to replace is <TEXT> Configuration.StoreName </TEXT>

Here is the XML I have worked out. It does not work.

<IF>

<CONDITION> Customer.SalesRepID =1</CONDITION>

<THEN>

<TEXT> "Catholic Family Gifts" </TEXT>

</THEN>

<IF>

<CONDITION> Customer.SalesRepID =7</CONDITION>

<THEN>

<TEXT> "Catholic Bible Store" </TEXT>

</THEN>

<IF>

<CONDITION> Customer.SalesRepID =8</CONDITION>

<THEN>

<TEXT> "Red Plate Store" </TEXT>

</THEN>

<ELSE>

<TEXT> "Vineyard Books, Gifts & Church Supplies" </TEXT>

</ELSE>

</IF>

</IF>

</IF>
 
Ad

Advertisements

R

root

maybe something like this?

<IF>
<CONDITION> mycondition </CONDITION>
<THEN>
<IF>
<CONDITION> Customer.SalesRepID =1</CONDITION>
<THEN>
<TEXT> "Catholic Family Gifts" </TEXT>
</THEN>
</IF>
<IF>
<CONDITION> Customer.SalesRepID =7</CONDITION>
<THEN>
<TEXT> "Catholic Bible Store" </TEXT>
</THEN>
</IF>
<IF>
<CONDITION> Customer.SalesRepID =8</CONDITION>
<THEN>
<TEXT> "Red Plate Store" </TEXT>
</THEN>
</IF>
<ELSE>
<TEXT> "Vineyard Books, Gifts & Church Supplies" </TEXT>
</ELSE>
</THEN>
<IF>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top