Skip to main content.
Index | Support | Documentation | FAQ

Vatbook Period Reset - E-Mail

When the Vatbook (Daybook) is reset either by a user or automatically by the automation manager a csv (Comma Separate Value) file file is created.

This csv file can be loaded into Excel, Numbers - any spreadsheet really to allow you to look/analyis the figures. Normally you would use the Windows Link option to load them locally. However, you may want:

One of the best ways to do this is get the system to send you a copy via E-mail when the period is reset. It is fairly easy to setup.

  • Step 1 - Tell Premvet when the period is reset to 'do something'
  • Step 2 - What does Premvet 'Do'

  • Lets look at Step 2 first - what do you want done, to be a little more generic in it's application it's not preset to use E-Mail - it's up to you. (As of Version 03.01.09 November 2009 we have included a sample, prior to that cut and paste).

    The sample file is script/vatbook.example, so lets use that:

    The screen should now resemble:

    #! /bin/ksh
    echo "`date`  $1  $2" |
    /usr/local/bin/mutt -s "Vatbook Reset" -a text/vatbook.csv root
    exit 0
    

    That little script will take the vatbook file and send it to whoever. The same procedure can be used to copy the file or .... - speak to support to help you fine tune what you want to do.


    Finally, we need to tell Premvet to take that action when the Period is reset.

    This is done via a Params.txt entry

     
    Vatbook_Reset_Cmd = script/vatbook.sh
    
    So when period is reset the script will be run you will be mailed with the details.