'**********************************************************
' cust_addDefaultEntryInformalPrintout
' @description: Add a default printout to workflowtable
' @param: Nothing
' @return Nothing
' added with CC-001065 
'**********************************************************
function cust_addDefaultEntryInformalPrintout
    wfvariables.sPrintRowID.Value = ""
    wfvariables.iPrintAmount.Value = 1

    Set oEntry = wfvariables.recPrintouts.CreateListItem
    oEntry.Item("sLocation").Value = "" 
    oEntry.Item("sResponsible").Value = wfclient.UserName
    oEntry.Item("sResponsibleGUID").Value = wfclient.OrgUserID
    oEntry.Item("sComment").Value = ""	
    oEntry.Item("dCreatedOn").Value = Right("0" & Day(Date),2) & "." & Right("0" & Month(Date),2) & "." & Year(Date) 'CR1.7			
    oEntry.Item("sDestroyed").Value = "" 
	oEntry.Item("sCreator").Value = wfclient.UserName				
    oEntry.Item("iLocked").Value = 0
    wfvariables.recPrintouts.AddListItem oEntry 

    changeFieldByVariable wfvariables.sLocation.Name, 0, 1
    changeFieldByVariable wfvariables.iPrintAmount.Name, 0, 1
    changeFieldByVariable wfvariables.sPrintComment.Name, 0, 1
    changeFieldByVariable wfvariables.oResponsible.Name, 0, 1
    
    'CR - Support English / Multilanguage - CC-000240
    changeButtonByVariable  "SaveEntry"  ,1,1
    changeButtonByVariable  "NewEntry"  ,1,1
    changeButtonByVariable  "CopyEntry"  ,1,1
    changeButtonByVariable "DeleteEntry" ,1,1
    changeButtonByVariable "EditEntry" ,1,1

End function 