<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/wh/onlinemanual/000307" xml:lang="en">
   <Header>
      <Title>Determination of calendar correction</Title>
      <Keyword type="header" order="d1e2981133">
         <Level1>calendar correction</Level1>
      </Keyword>
      <Keyword type="header" order="d1e2981136">
         <Level1>lead time</Level1>
      </Keyword>
   </Header>
   <GeneralSection>
      <List>
         <ListIntro>When ERP Enterprise determines the planned delivery date and the planned receipt date
		  in the <GUIRef href="/baanerp/wh/inh/whinh2100m000" role="session">Warehousing Orders (whinh2100m000)</GUIRef> session, ERP Enterprise takes into account
		  the calendars of the ship-from data and the ship-to data to determine the
		  required calendar correction. ERP Enterprise determines the calendar correction for ship-from data and ship-to
		  data in the same way. The calendar correction determination only differs in the
		  following way:</ListIntro>
         <ListItem>If the calendar correction must be determined for the ship-from
		  data, ERP Enterprise uses the <GUIRef href="/baanerp/wh/inh/whinh2100m000#whinh200.sfco" role="manual" Update="No">Ship-from Code</GUIRef>.</ListItem>
         <ListItem>If the calendar correction must be determined for the ship-to
		  data, ERP Enterprise uses the <GUIRef href="/baanerp/wh/inh/whinh2100m000#whinh200.stco" role="manual" Update="No">Ship-to Code</GUIRef>.</ListItem>
      </List>
      <ProcedureList>
         <ListIntro>To be able to add a calendar correction, ERP Enterprise searches for a
		  calendar as follows:</ListIntro>
         <ListItem>If the <GUIRef href="/baanerp/wh/inh/whinh2100m000#whinh200.sfco" role="manual" Update="No">Ship-from Code</GUIRef> or the <GUIRef href="/baanerp/wh/inh/whinh2100m000#whinh200.stco" role="manual" Update="No">Ship-to Code</GUIRef> is a warehouse, ERP Enterprise searches for a
		  calendar in the following sequence: the address' calendar, then the warehouse's
		  calendar, and then the company's calendar. In all other cases, ERP Enterprise uses the address'
		  calendar. If ERP Enterprise cannot
		  find any calendar, a calendar correction does not take place.</ListItem>
         <ListItem> 
            <List>
               <ListIntro>If a calendar is found, ERP Enterprise searches for the
				actual calendar based on:</ListIntro>
               <ListItem>The found calendar.</ListItem>
               <ListItem>The <Link href="/baanerp/tc/glossary/glossary#ResoActiType_tc" role="glossary">availability type</Link>.</ListItem>
               <ListItem>The calendar's start date and end date.</ListItem>
            </List>
         </ListItem>
         <ListItem>ERP Enterprise determines the calendar correction based on the actual calendar's start time
		  and end time.</ListItem>
      </ProcedureList>
   </GeneralSection>
   <GeneralSection>
      <Note>
         <SectionTitle>Note</SectionTitle>
         <List>
            <ListItem>You can view the actual calendar in the <GUIRef href="/baanerp/tc/ccp/tcccp0120m000" role="session">Calendar Working Hours (tcccp0120m000)</GUIRef> session.</ListItem>
            <ListItem>You can define the availability type in the <GUIRef href="/baanerp/wh/wmd/whwmd0100s000" role="session">Master Data Parameters (whwmd0100s000)</GUIRef> session.</ListItem>
         </List>
      </Note>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/tc/onlinemanual/000128" role="manual">Overview of calendar functionality</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>