<cfcomponent output="false">
	<cffunction name="nonbill" access="remote" returntype="string">
		<cfargument name="chkvalue" required="yes" hint="ot Step 1">
		<cfargument name="unchkvalue" required="yes" hint="ot Step 1">

		<cfif #chkvalue# neq ''>
			<cfquery  datasource="#Application.DataSrc#">
				update #Request.prefix_db_agency#.pSchedules set Nonbillable = '1'
				where Schedule_ID in(#chkvalue#)
				AND Status = 0
			</cfquery>
		</cfif>

		<cfif #unchkvalue# neq ''>
			<cfquery  datasource="#Application.DataSrc#">
				update #Request.prefix_db_agency#.pSchedules set Nonbillable = '0' where Schedule_ID in(#unchkvalue#)
				AND Status = 0 
			</cfquery>
		</cfif>

		<cfreturn 'success'>
	</cffunction>
</cfcomponent>