<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tf/onlinemanual/000432" xml:lang="en">
   <Header>
      <Title>Examples of generated self-billed purchase invoices</Title>
      <Keyword type="header" order="d1e1986243">
         <Level1>Self-billed purchase invoices</Level1>
         <Level2>examples</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <SectionTitle>The example order</SectionTitle>
      <Paragraph>The following two order lines exist for the same supplier, with
		whom you have a self-billing relationship. The (only) home currency is USD and
		the order currency is EUR.</Paragraph>
      <List>
         <ListItem> 
            <List>
               <ListIntro>Order: 10000010/10/0 for 10 pcs of item A.</ListIntro>
               <ListItem>The unit price = 10 EUR.</ListItem>
               <ListItem>The tax country code = NL-001 (high tax 20 percent).</ListItem>
               <ListItem>The rate determiner = Document Date.</ListItem>
               <ListItem>The purchase type = PUR.</ListItem>
               <ListItem>The rate: 1 EUR = 1 USD.</ListItem>
            </List>
         </ListItem>
         <ListItem> 
            <List>
               <ListIntro>Order: 10000011/10/0 for 5 pcs of item B.</ListIntro>
               <ListItem>The unit price = 5 EUR.</ListItem>
               <ListItem>The tax country code = NL-002 (low tax 10 percent).</ListItem>
               <ListItem>The rate determiner = Document Date.</ListItem>
               <ListItem>The purchase type = PUR.</ListItem>
               <ListItem>The rate: 1 EUR = 2 USD.</ListItem>
            </List>
         </ListItem>
      </List>
      <Paragraph>As the order lines are compressed and the compression criteria
		all are the same, the two order lines will be combined on one invoice. The
		compression criteria in this case are the company, the order type, the
		invoice-from BP, the currency, the tax country, the rate determiner, and the
		purchase type.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>The rate determiner is Document Date</SectionTitle>
      <Paragraph>If the rate determiner is <GUIRef href="/baanerp/tf/domains/acp.boid#docdate" role="option">Document Date</GUIRef>, ERP Enterprise determines the rate for the invoice at the time when the
		invoice is generated. For each invoice accrual posting, it must be determined
		whether there is a difference in home currencies, and if so, the differences
		must be posted to the integration transactions as currency differences.</Paragraph>
      <Paragraph>If the rate is 1 EUR = 3 USD at the time when you generate the
		self-billed invoice, the following postings are created:</Paragraph>
      <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
         <TBODY noTR="6">
            <TR no="1" isLast="false">
               <TD rowspan="1" colspan="1">Type</TD>
               <TD rowspan="1" colspan="1">Account</TD>
               <TD rowspan="1" colspan="1">EUR</TD>
               <TD rowspan="1" colspan="1">USD</TD>
            </TR>
            <TR no="2" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Invoice
				Accrual account A</TD>
               <TD align="right" rowspan="1" colspan="1">100</TD>
               <TD align="right" rowspan="1" colspan="1">300</TD>
            </TR>
            <TR no="3" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Tax account (NL-001)</TD>
               <TD align="right" rowspan="1" colspan="1">20</TD>
               <TD align="right" rowspan="1" colspan="1">60</TD>
            </TR>
            <TR no="4" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Invoice Accrual
				account B</TD>
               <TD align="right" rowspan="1" colspan="1">25</TD>
               <TD align="right" rowspan="1" colspan="1">75</TD>
            </TR>
            <TR no="5" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Tax account (NL-002)</TD>
               <TD align="right" rowspan="1" colspan="1">2.5</TD>
               <TD align="right" rowspan="1" colspan="1">7.5</TD>
            </TR>
            <TR no="6" isLast="true">
               <TD rowspan="1" colspan="1">Credit</TD>
               <TD rowspan="1" colspan="1">Control
				Account</TD>
               <TD align="right" rowspan="1" colspan="1">147.5</TD>
               <TD align="right" rowspan="1" colspan="1">442.5</TD>
            </TR>
         </TBODY>
      </TABLE>
      <List>
         <ListIntro>As the rate determiner is <GUIRef href="/baanerp/tf/domains/acp.boid#docdate" role="option">Document Date</GUIRef> and the rate is 1 EUR = 3 USD, the following <GUIRef href="" role="manual">Currency Difference</GUIRef> integration transactions are created:</ListIntro>
         <ListItem>For the posting on <GUIRef href="" role="manual">Invoice Accrual</GUIRef> account A,
		  a currency difference integration Debit posting of –200 USD (the Debit side is
		  the invoice accrual side).</ListItem>
         <ListItem>For the posting on <GUIRef href="" role="manual">Invoice Accrual</GUIRef> account B,
		  a currency difference integration Debit posting of –25 USD. Note that by
		  definition, the transaction amount of the currency difference integration
		  postings is always zero. For self-billing, a real price difference cannot
		  occur, because the generated invoice is always in the order currency and is
		  always for exactly the same amount as the receipt(s).</ListItem>
      </List>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>The rate determiner is other than Document
		Date</SectionTitle>
      <Paragraph>If the rate determiner is not <GUIRef href="/baanerp/tf/domains/acp.boid#docdate" role="option">Document Date</GUIRef>, the following postings are created:</Paragraph>
      <TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated">
         <TBODY noTR="6">
            <TR no="1" isLast="false">
               <TD rowspan="1" colspan="1">Type</TD>
               <TD rowspan="1" colspan="1">Account</TD>
               <TD width="45" rowspan="1" colspan="1">EUR</TD>
               <TD width="19" rowspan="1" colspan="1">USD</TD>
            </TR>
            <TR no="2" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Invoice Accrual account A</TD>
               <TD width="45" rowspan="1" colspan="1">100</TD>
               <TD width="19" rowspan="1" colspan="1">100</TD>
            </TR>
            <TR no="3" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Tax
				account (NL-001)</TD>
               <TD width="45" rowspan="1" colspan="1">20</TD>
               <TD width="19" rowspan="1" colspan="1">20</TD>
            </TR>
            <TR no="4" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Invoice Accrual account B</TD>
               <TD width="45" rowspan="1" colspan="1">25</TD>
               <TD width="19" rowspan="1" colspan="1">50</TD>
            </TR>
            <TR no="5" isLast="false">
               <TD rowspan="1" colspan="1">Debit</TD>
               <TD rowspan="1" colspan="1">Tax account
				(NL-002)</TD>
               <TD width="45" rowspan="1" colspan="1">2.5</TD>
               <TD width="19" rowspan="1" colspan="1">5</TD>
            </TR>
            <TR no="6" isLast="true">
               <TD rowspan="1" colspan="1">Credit</TD>
               <TD rowspan="1" colspan="1">Control Account</TD>
               <TD width="45" rowspan="1" colspan="1">147.5</TD>
               <TD width="19" rowspan="1" colspan="1">175</TD>
            </TR>
         </TBODY>
      </TABLE>
      <Paragraph>As the invoice accrual accounts are posted with the same rate
		information as the receipts, no currency differences need to be posted. The
		rate information of the control account and the invoice itself is the average
		rate: 1 EUR = 1.186441 USD.</Paragraph>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/tf/onlinemanual/000008" role="manual">Self billing</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>