Quantcast
Channel: Microsoft Dynamics RMS Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4469

RE: RMS v2 + Hotfix 40 / How to print additional form after sales receipt with customer selected

$
0
0

Hi. And sorry for the delay, work first - you know how it is.

OK, this is what You have to do. In steps:

1º) Make a copy of your Sales ticket to make a new version of the file. Rename it in a new version of the xml file. Edit it with Notepad.

2º) At the end of the file, where you have the MAIN DOCUMENT group, where you call sub-functions, add a new line lke this <CALL> "PrintExtraForm1" </CALL> . Important: this should be the last sub-function you are calling in the main document

3º) Create a new sub-function with the same name <SUB name="PrintExtraForm1">, that is first checking if there is a Customer selected and, if yes, prints the text you want and in the format you need. It should look something like this:

<!--

  =============================

  SUB: PrintExtraForm1

  =============================

-->

<SUB name="PrintExtraForm1">

<!-- First we check if there is a Customer -->

<IF>

<CONDITION> Len(Customer.AccountNumber) </CONDITION>

<THEN>

<TABLE>

<BORDER> tbNone </BORDER>

<COLUMNHEADER>

<ALIGNMENT> "<~"      </ALIGNMENT>

<WIDTH>     PageWidth * 0.50 </WIDTH>

<TEXT>      ""  </TEXT>

</COLUMNHEADER>

<COLUMNHEADER>

<ALIGNMENT> "<~"      </ALIGNMENT>

<WIDTH>     PageWidth * 0.50 </WIDTH>

<TEXT>      ""  </TEXT>

</COLUMNHEADER>

<ROW> "Licensee/Tax Exempt Purchases" </ROW>

<ROW> "" </ROW>

<ROW> "___ Licensee Cash/Check/Charge" </ROW>

<ROW> "___ Licensee Escrow" </ROW>

<ROW> "___ Tax-Exempt Customer" </ROW>

<ROW> "" </ROW>

<ROW> "Date: |" Transaction.Date </ROW>

<ROW> "Receipt: |" Transaction.ReceiptTransactionNumber </ROW>

<ROW> "Amount of Purchase: |" Transaction.Total </ROW>

<ROW> "Licensee Account #/Tax-Exempt: |" Customer.AccountNumber </ROW>

<ROW> "Licensee Name/Tax-Exempt Organization Name: |" Customer.Name </ROW>

<ROW> "" </ROW>

<ROW> "" </ROW>

<ROW> "______________________________" </ROW>

<ROW> "Signature: Licensee or Tax-Exempt Customer" </ROW>

<ROW/>

</TABLE>

</THEN>

</IF>

</SUB>

4º) Save and test it. If it works, you will probably have to add some <PAPERCUT> tags, for printer to cut of the new extra form. This will depend on the ticket printer you are using. With EPSON TM should work correctly.

5º) Repeat the steps 2 and 3 to create two more sub-functions, obvioulsy with other names, let say "PrintExtraForm2" AND "PrintExtraForm3".

P.S.: I haven't had time to test it, but more or less should be fine...

Please publish your results on the forum.

Contact me over mail if you need more help...

BR, Antonijo


Viewing all articles
Browse latest Browse all 4469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>