Summary

The Inventory Transfer email template is used to inform study participants that a manual inventory transfer has occurred.

Table of Contents


Only the portions of the email marked in blue can be easily modified. If modifying other portions of the email template, view the page related to customizing email templates.

Context Keys

Context Keys are used to access data from the system. Examples of their use can be seen in the following template. These context keys can also be added to the email template or relocated within the template.

  • $!{applicationName}- Study name
  • $siteName – Site name
  • $addressLine1 – Street Address Line 1
  • $addressLine2 – Street Address Line 2
  • $addressLine3 – Suite/Office/Floor
  • $addressLine4 – City, State/Province, Postal Code, Country
  • $attn – Name of the person who should receive the shipment
  • $phoneNumber – Phone Number
  • $!{faxNumber} – Fax Number
  • $shipment.getDisplayID() – Shipment ID
  • $currentLocalTime – Time that the Inventory Transfer occurred
  • $distributor.getName() – Distributor’s name such as “US Packaging Company”
Take care when using the following context keys in ways that differ from the standard setup in the email template. These keys will return unexpected results if not contained within a 'foreach' loop. 

  • $shipment.getContainers() – List of drug containers in the shipment
  • $drugContainer – Each container in the shipment
  • $drugContainer.getDisplayID() – Drug container’s ID

 Template

File Name: inventoryTransfer.vm

<html>
<body>
<table border="0" width="80%" align="center">
  <tr>
    <td valign="top">
<img src="$logoImage">     
    </td>
    <td align="right" valign="top">
      <table border="0" valign="top">
        <tr>
          <td>
            <font face="arial" size="3">
              <b>Fountayn</b>
            </font>
          </td>
        </tr>
        <tr>
          <td>
            <font face="arial" size="1">  
              www.fountayn.com
            </font>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  
  <tr>
    <td colspan="2">
      &nbsp;
    </td>
  </tr>
  
  <tr>
    <td colspan="2">
      <table width="100%">

  	<tr>
          <td>
            <b>Study:</b>
          </td>
          <td>
            <b>$!{applicationName}</b>
          </td>
  	</tr>      
  	<tr>
          <td colspan="2">
            <b>Requisition Number (Customer Ref(s)): $shipment.getDisplayID() </b>
          </td>
  	</tr>
      
        <tr>
          <td width="20%">
            <b>Date:</b>
          </td>
          <td width="80%">
            $currentLocalTime
          </td>
        </tr>
        <tr>
          <td width="20%">
            <b>From:</b>
          </td>
          <td width="80%">
            $distributor.getName()
          </td>
        </tr>      
      </table>
    </td>
  </tr>
  
  <tr>
    <td colspan="2">
    &nbsp;
    </td>
  </tr>
  <tr>
    <td colspan="2">
    &nbsp;
    </td>
  </tr>

  <tr>
    <td colspan="2">
      A manual inventory transfer has been triggered:
    </td>
  </tr>
  <tr>
    <td align="left">

      <table width="100%" border="0">
        <tr>        
          <td align="left" width="40%" valign="top">
            <b>Destination for shipment:</b>
          </td>
          <td align="left" width="60%" valign="top">
            $site.getName()<br>
            $!addressLine1<br>
            $!addressLine2<br>
            $!addressLine3<br>
            $!addressLine4
          </td>
        </tr> 
        <tr>
          <td align="left" width="30%">
            <b>Phone No:</b>
          </td>
          <td>
            $!phoneNumber
          </td>
        </tr>
        <tr>
          <td align="left" width="30%">
            <b>Consignee Fax No:</b>
          </td>
          <td>
            $!faxNumber
          </td>
        </tr>
      </table>    
    </td>
  </tr>
  
  <tr>
  
    <td colspan="2">
      &nbsp;
    </td>
  </tr>

  <tr>
    <td colspan="2">
      <b>The shipment shall contain the following items:</b>
    </td>
  </tr>

  <tr>
    <td colspan="2">

		<ul>
		  #foreach( $drugContainer in $shipment.getContainers() )
           <li>$drugContainer.getDisplayID()</li>
           	
		#end
		</ul>
         
    </td>
  </tr>

  <tr>
      <td colspan="2">
        &nbsp;
      </td>
  </tr>
  
</table>
</body>
</html>





Need more help?

Please visit the Fountayn Contact Information page.