<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/td/onlinemanual/000321" xml:lang="en">
   <Header>
      <Title>To commingle purchase orders</Title>
      <Keyword type="header" order="d1e1311799">
         <Level1>Purchase order</Level1>
         <Level2>commingling</Level2>
      </Keyword>
      <Keyword type="header" order="d1e1311804">
         <Level1>Commingling</Level1>
      </Keyword>
   </Header>
   <AimSection>
      <Paragraph>You can <Link href="/baanerp/td/glossary/glossary#000320" role="glossary">commingle</Link> purchase orders
		that have the <GUIRef href="/baanerp/td/domains/pur.hdst#created" role="option">Created</GUIRef> status.</Paragraph>
      <Paragraph>To commingle purchase
		orders, on the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu of the <GUIRef href="/baanerp/td/pur/tdpur4100m000" role="session">Purchase Orders (tdpur4100m000)</GUIRef> or <GUIRef href="/baanerp/td/pur/tdpur4100m900" role="session">Purchase Order - Lines (tdpur4100m900)</GUIRef> sessions, click <GUIRef href="/baanerp/td/pur/tdpur4100m000#tdpur4210m000" role="command">Commingle Purchase Orders</GUIRef>. As a result, the <Link href="/baanerp/td/pur/tdpur4210m000" role="session" Update="No">Commingle Purchase Orders (tdpur4210m000)</Link> session starts in which you can enter your selection
		range.</Paragraph>
   </AimSection>
   <ProcedureSection>
      <SectionTitle>Commingling process</SectionTitle>
      <Steps>
         <Step>
            <StepTitle>Header level commingling</StepTitle>
            <Paragraph>When you click <GUIRef href="/baanerp/td/pur/tdpur4210m000#exec.cont.process" role="command">Commingle</GUIRef> in
			 the <GUIRef href="/baanerp/td/pur/tdpur4210m000" role="session">Commingle Purchase Orders (tdpur4210m000)</GUIRef> session, LN arranges the
			 purchase orders by buy-from business partner. The <Link href="/baanerp/td/glossary/glossary#PurchaOrderH_td" role="glossary">purchase order header</Link> fields
			 of each purchase order are compared. If the header fields match, LN initially writes the
			 corresponding lines into one new header. This process is repeated for the next
			 header. If the header fields match, LN copies this header to the previously created
			 header. If the fields do not match, LN creates a new header. This process is repeated
			 for each successive header.</Paragraph>
         </Step>
         <Step>
            <StepTitle>Line level commingling</StepTitle>
            <Paragraph>After comparing the
			 order headers, lines are sorted according to item details. Lines that differ
			 only by their details fields are commingled into the same <Link href="/baanerp/td/glossary/glossary#000207" role="glossary">position</Link>, but with a
			 different <Link href="/baanerp/tc/glossary/glossary#SequenNumber_tc" role="glossary">sequence number</Link>. Lines from
			 the same origin and with the same item will have different sequences, because
			 the linked line data is different for the various lines.</Paragraph>
            <Paragraph>Prices that you
			 enter on the purchase order are overwritten during the commingling process. If
			 a valid price/discount structure is linked to the order line, for the sum of
			 all the quantities of the different sequence numbers linked to the order line, LN derives the price
			 from the <Link href="/baanerp/td/onlinemanual/tdpcg" role="manual">Pricing</Link> module. If you have not defined a
			 valid price/discount structure for the order line, LN derives the price
			 from the <Link href="/baanerp/td/onlinemanual/tdipu" role="manual">Item Purchase Data (IPU)</Link> module.</Paragraph>
            <Paragraph>If you commingle
			 purchase order lines that are linked to a purchase contract, the lines that are
			 linked to the same contract are commingled. LN derives the price
			 for the commingled order line from the contract's active <Link href="/baanerp/td/glossary/glossary#000332" role="glossary">purchase contract price revision</Link>. If you have not defined a valid contract price revision, LN derives the price
			 from the <GUIRef href="/baanerp/td/ipu" role="module">Item Purchase Data</GUIRef> module.</Paragraph>
         </Step>
         <Step>
            <StepTitle>Approval</StepTitle>
            <Paragraph>After both line and
			 header level commingling is carried out, you must approve the commingled order.
			 Next, LN deletes the
			 original order and the concerned LN modules are updated with the new order number. As a result, the
			 status in the linked order line data of those modules is changed to <GUIRef href="/baanerp/td/domains/pur.stat#approved" role="option">Approved</GUIRef>.</Paragraph>
         </Step>
      </Steps>
   </ProcedureSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/td/onlinemanual/000322" role="manual">Overview of purchase order commingling</Link>
      </RelTopic>
      <RelTopic>
         <Link href="/baanerp/td/onlinemanual/000067" role="manual">Purchase contracts</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>