{
  "sendresult": false,
  
  "process": {
    "enabled": true,
    "require":"/work.php",
    "call":"procexpense"
  },
  
  "final": {
    "good":"/thanks.php",
    "error":"/error.php"
  },
  
  "email": {
    "enabled": false,
    "subject": "THCL - Expenses log confirmation",
    "from": "John McKay <john@liburne.com>",
    "template": "register.html",
    "tomain": "email",
    "tolist": {
       "srctype" : "db",
       "src" : "contacts"
    }
  },
  
  "form": {
    "enabled": true,
    "buttext": "Modify Expenses",
    "buticon": "send",
    "changecall":"getexpense",
    "display":"none",

    "fields": [
       { "id":"expid",        "type":"hidden"   },
       { "id":"userid",       "type":"hidden",   "label":"User", "require":"/work.php","call":"getuser" },
       { "id":"invtypeid",    "type":"select",   "label":"Invoice Type", "sqlid":"getinvtypes","fname":"invtype","fvalue":"invtypeid", "validate":"required" },
       { "id":"invfrom",      "type":"input",    "label":"Invoice From", "validate":"required" },
       { "id":"invno",        "type":"input",    "label":"Invoice No.", "validate":"required" },
       { "id":"invdate",      "type":"date",     "label":"Invoice Date", "validate":"required" },
       { "id":"invnet",       "type":"input",    "label":"Amount Net", "validate":"required,money" },
       { "id":"invvat",       "type":"input",    "label":"VAT", "validate":"required,money" },
       { "id":"invtot",       "type":"input",    "label":"Amount Total", "validate":"required,money" },
       { "id":"notes",        "type":"text",     "label":"Description", "validate":"" }
     ]
  }
}
