Topic outline

  • General

    This is a full working process built to be simplistic - For a live environment process, it would probably require more configuration such as email alerts, permissions and other features.

    • Video

    • Notes

      "Obtain User Details" Trigger

      1. $user_info = userInfo(@@USER_LOGGED);
      2.   @@name = $user_info['firstname'].' '.$user_info['lastname'];
      3.   @@employee_ID= @@USER_LOGGED;


      "Expenses Reimbursement Confirmation" Output Document Template

      1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      2.   <html>
      3.   <head>
      4.   </head>
      5.   <body>
      6.   <p><b><font size="5">Reimbursement Confirmation</font></b></p>
      7.   <p><font size="4">I,@#name,&nbsp;<span>have received the reimbursement of these expenses:</span></font></p>
      8.   <p></p>
      9.   <table>
      10.   <tbody>
      11.   <tr><th>Expense Name</th><th>Expense Date</th><th>Amount</th></tr>
      12.   <!--@>grid-->
      13.   <tr>
      14.   <td>@#Expense_Name</td>
      15.   <td>@#Expense_Date</td>
      16.   <td>@#Amount</td>
      17.   </tr>
      18.   <!--@<grid--></tbody>
      19.   </table>
      20.   </body>
      21. </html>


      "Expenses Reimbursement form" Dynaform JavaScript Code

      1. function showOrHideDescription() {
      2. if ( $("#payment_method").getControl().val() != "1")
      3.     $("#check_number").show();
      4. else
      5.     $("#check_number").hide();
      6. }
      7.  
      8. showOrHideDescription();
      9. $('#payment_method').change(showOrHideDescription);