// This script contains the logic which is executed whenever data is entered and sent


//Calculate Rates based on Labor Hours

*WHEN S_GLACC
	*IS *
	*REC(EXPRESSION = ([S_GLACC].[PL310]+[S_GLACC].[PL320]+[S_GLACC].[PL330]+[S_GLACC].[PL340]+[S_GLACC].[PL120]+[S_GLACC].[PL130])/[S_GLACC].[WHOURS], S_GLACC = RATE)
*ENDWHEN 


// //Send Rates to Processing Module

// *XDIM_MEMBERSET S_GLACC = RATE

// *DESTINATION_APP = SF_PROCESSING
// *SKIP_DIM = S_GLACC, S_CCENTER
// *ADD_DIM S_INVMETRIC = RATE
// *ADD_DIM S_PRODUCT = DISTRIB
// *ADD_DIM S_PROCACT = S_CCENTER:S_PROACT
