<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/ts/onlinemanual/000527" xml:lang="en">
   <Header>
      <Title>Priority Rule</Title>
      <Keyword type="header" order="d1e2783480">
         <Level1>Priority Rule</Level1>
      </Keyword>
   </Header>
   <AimSection>
      <Paragraph>If more than one resource is found for a planning group, the
		resources are prioritized based on priority rules. Set the <Link href="/baanerp/ts/spc/tsspc0100m000#f.lab.wo" role="formfield">Proposed Priority</Link> field in the <Link href="/baanerp/ts/spc/tsspc0100m000" role="session">Service Planning Parameters (tsspc0100m000)</Link>.</Paragraph>
   </AimSection>
   <GeneralSection>
      <Paragraph>ERP Enterprise always ranks the proposed resources based on the priority rules. The ranking or
		the prioritization enables ERP Enterprise to automatically allocate the resource with the highest ranking.
		If the <GUIRef href="/baanerp/ts/spc/tsspc0100m000#tsspc000.hpwo" role="manual">Automatically highest priority</GUIRef> check box, in the <Link href="/baanerp/ts/spc/tsspc0100m000" role="session">Service Planning Parameters (tsspc0100m000)</Link> session is selected, ERP Enterprise allocates the
		resources with the highest priority. If this check box is cleared, you must
		manually allocate the resources.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <Paragraph>Following rules are defined:</Paragraph>
      <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
         <TBODY noTR="6">
            <TR no="1" isLast="false">
               <TD rowspan="1" colspan="1">S.No</TD>
               <TD rowspan="1" colspan="1">Rule</TD>
            </TR>
            <TR no="2" isLast="false">
               <TD rowspan="1" colspan="1">1</TD>
               <TD rowspan="1" colspan="1">Is not
				allocated to other Planning Groups</TD>
            </TR>
            <TR no="3" isLast="false">
               <TD rowspan="1" colspan="1">2</TD>
               <TD rowspan="1" colspan="1">Has all Planning
				Group attribute values</TD>
            </TR>
            <TR no="4" isLast="false">
               <TD rowspan="1" colspan="1">3</TD>
               <TD rowspan="1" colspan="1">Has all required skills</TD>
            </TR>
            <TR no="5" isLast="false">
               <TD rowspan="1" colspan="1">4</TD>
               <TD rowspan="1" colspan="1">Has all preferred skills</TD>
            </TR>
            <TR no="6" isLast="true">
               <TD rowspan="1" colspan="1">5</TD>
               <TD rowspan="1" colspan="1">Has Planning Group with earliest finished activity</TD>
            </TR>
         </TBODY>
      </TABLE>
      <Paragraph>ERP Enterprise checks all the rules and ranks the proposed resources for a group. If the first
		rule is applicable, the resource gets 24 (= 16) points. If the second rule is
		applicable, the resource gets 23 (= 8) points. If the rule three is applicable,
		the resource gets 22 (= 4) points. If the rule four is applicable, the resource
		gets 21 (= 2) points. If the rule five is applicable, the resource gets 20 (=
		1) points. The resources have the same priority only if the same rules are
		applicable.</Paragraph>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>Resource A: If only rule 1 is applicable, this resource gets
		  16 points.</Paragraph>
         <Paragraph>Resource B: If only rule 2, 3 and 4 are applicable, this
		  resource gets 8 + 4 + 2 = 14 points.</Paragraph>
         <Paragraph>Resource C: If only rule 1 and 5 are applicable, this resource
		  gets 16 + 1 = 17 points.</Paragraph>
         <Paragraph>Therefore, resource C gets the highest priority.</Paragraph>
      </ExampleSection>
   </GeneralSection>
   <GeneralSection>
      <Paragraph>When resources are sorted on priority, the highest priority is
		displayed as the last record. To list the resource with highest priority as the
		first record, ERP Enterprise recalculates the priority based on the following formula:</Paragraph>
      <Formula space-and-orientation="indented-estimated">
         <Paragraph>priority = 32-priority</Paragraph>
      </Formula>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>After the recalculation the priority for the resources
		  mentioned in the above example is as follows:</Paragraph>
         <Paragraph>Resource A: If only rule 1 is applicable, this resource gets
		  16 points. Priority = 32 – 16 = 16.</Paragraph>
         <Paragraph>Resource B: If only rule 2, 3 and 4 are applicable, this
		  resource gets 14 points. Priority = 32 – 14 = 18.</Paragraph>
         <Paragraph>Resource C: If only rule 1 and 5 are applicable, this resource
		  gets 17 points. Priority = 32 – 17 = 15.</Paragraph>
      </ExampleSection>
      <Paragraph>Following is the description of the Priority Rules:</Paragraph>
      <List>
         <ListItemHead>Rule 1- Is not allocated to other Planning
		  Groups</ListItemHead>
         <ListItem>This rule is true when, for a resource, no record exists in <Link href="/baanerp/ts/spc/tsspc3102m000" role="session">Group - Resources (tsspc3102m000)</Link> session for any other Planning Group.</ListItem>
         <ListItemHead>Rule 2- Has all Planning Group attribute
		  values</ListItemHead>
         <ListItem>This rule is true when, for a resource, the <Link href="/baanerp/ts/spc/tsspc3104m000#tsspc304.mtav" role="formfield">Match on Attribute Values</Link> field in the <Link href="/baanerp/ts/spc/tsspc3104m000" role="session">Group - Proposed Resources (tsspc3104m000)</Link> session is set to
		  specific.</ListItem>
         <ListItemHead>Rule 3- Has all required skills</ListItemHead>
         <ListItem>This rule is true when, for a resource, the <Link href="/baanerp/ts/spc/tsspc3104m000#tsspc304.mtms" role="formfield">Match on Mandatory Skills</Link> check box and the <Link href="/baanerp/ts/spc/tsspc3104m000#tsspc304.mtps" role="formfield">Match on Preferred Skills</Link> check box in the <Link href="/baanerp/ts/spc/tsspc3104m000" role="session">Group - Proposed Resources (tsspc3104m000)</Link> session is selected.</ListItem>
         <ListItemHead>Rule 4- Has all preferred skills</ListItemHead>
         <ListItem>This rule is true when, for a resource, the <Link href="/baanerp/ts/spc/tsspc3104m000#tsspc304.mtps" role="formfield">Match on Preferred Skills</Link> check box is selected in the <Link href="/baanerp/ts/spc/tsspc3104m000" role="session">Group - Proposed Resources (tsspc3104m000)</Link> session.</ListItem>
         <ListItemHead>Rule 5- Has Planning Group with earliest finished
		  activity</ListItemHead>
         <ListItem>The rule is true when the resource is allocated to another
		  Planning Group (or groups) in <Link href="/baanerp/ts/spc/tsspc3102m000" role="session">Group - Resources (tsspc3102m000)</Link> session, and the <GUIRef href="/baanerp/ts/spc/tsspc3200m000#f.pftm.from" role="manual">Planned Finish Time</GUIRef> of the latest Planning Group is
		  earlier than the other proposed resources. When the resource is not yet
		  allocated to a Planning Group, this rule is definitely true.</ListItem>
      </List>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/ts/onlinemanual/000533" role="manual">Resource allocation for group planning</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/ts/onlinemanual/000531" role="manual">Group planning process</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/ts/onlinemanual/000529" role="manual">Group planning data set-up</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/ts/onlinemanual/000530" role="manual">Territory planning process</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/ts/onlinemanual/000532" role="manual">Route-based planning process</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>