dodil/erp-method

modules/ar/signoff/ar/history/ar_invoice.v7.bpmn

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dodil="https://git.dodil.io/dodil/erp-platform/bpmn/1" id="Definitions_ar_v8" name="Invoicing processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_ar_v8">
  <bpmn:documentation>Invoicing: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_ar_invoice" name="Invoice" processRef="Process_ar_invoice_v8" />
  <bpmn:participant id="Participant_customer" name="The customer (external)">
   <bpmn:documentation>Outside the system: the steps it sends are what the process waits on.</bpmn:documentation>
  </bpmn:participant>
  <bpmn:messageFlow id="Flow_Participant_customer__Task_receive_invoice" sourceRef="Participant_customer" targetRef="Task_receive_invoice" />
  <bpmn:messageFlow id="Flow_Participant_customer__Task_pay" sourceRef="Participant_customer" targetRef="Task_pay" />
 </bpmn:collaboration>
 <bpmn:process id="Process_ar_invoice_v8" name="Invoice" isExecutable="false">
  <bpmn:documentation>Lifecycle of the invoice, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, issued, void, cancelled. Note: SETTLEMENT is derived, never stored: outstanding = total - SUM(allocations of payments, credit notes and write-offs), computed by payments; open, part paid, paid and written off follow from it, so there is no "paid" state to set. For the screens the brick answers each document's readiness: every gate of its next transitions as {gate, met, reason, fix} (fix a link to the screen that clears it), so no screen re-derives a rule. A migrated invoice (source_kind odoo) is issued history: post_to_ledger, send and raise never run on it; credit notes and allocations do.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_invoice">
   <bpmn:lane id="Lane_invoice_system" name="The system">
    <bpmn:flowNodeRef>Start_invoice</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_raise_due</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Timer_raise_due</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_raise_from_order</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_raise_for_acceptance</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_settle_payment_request_invoice</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_ai_check_draft</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_post_to_ledger</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_deliver_einvoice</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_record_einvoice_status</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_hand_to_partner_company</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_release_deferred_revenue</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Timer_release_deferred_revenue</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_invoice_none__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_ai_check_draft__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_ai_check_draft__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_post_to_ledger__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_post_to_ledger__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_deliver_einvoice__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_deliver_einvoice__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_hand_to_partner_company__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_hand_to_partner_company__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_release_deferred_revenue__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_release_deferred_revenue__if_end</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_invoice_biller" name="Whoever sends the invoices (office, bookkeeper)">
    <bpmn:flowNodeRef>Task_draft_invoice</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_raise_interest_draft</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_review_draft</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_fill_usage</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_accept_invoice_findings</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_cancel_draft_invoice</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_issue</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_send</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_export</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_fill_usage__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_fill_usage__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_accept_invoice_findings__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_accept_invoice_findings__if_end</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_invoice_draft__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_invoice_cancelled</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_export__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_export__if_end</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_invoice_customer" name="The customer (external)">
    <bpmn:flowNodeRef>Task_receive_invoice</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_pay</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_invoice_collector" name="Whoever chases money and records it">
    <bpmn:flowNodeRef>Task_chase</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Timer_chase</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_record_payment</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_chase__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_chase__if_end</bpmn:flowNodeRef>
   </bpmn:lane>
   <bpmn:lane id="Lane_invoice_approver" name="Owner / finance manager">
    <bpmn:flowNodeRef>Task_void_invoice</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Gateway_invoice_issued__if</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_invoice_issued</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_invoice_void</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_invoice" name="Invoice needed">
   <bpmn:outgoing>Flow_Start_invoice__Gateway_invoice_none__if</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:serviceTask id="Task_raise_due" name="Raise this period's draft" dodil:step="raise_due" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to draft. When: a schedule period is due. Effect: keyed rec:schedule:period, so a second run makes nothing. Waits: the billing day of the period.</bpmn:documentation>
   <bpmn:incoming>Flow_Timer_raise_due__Task_raise_due</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_raise_due__Gateway_ai_check_draft__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:intermediateCatchEvent id="Timer_raise_due" name="the billing day of the period">
   <bpmn:incoming>Flow_Gateway_invoice_none__if__Timer_raise_due</bpmn:incoming>
   <bpmn:outgoing>Flow_Timer_raise_due__Task_raise_due</bpmn:outgoing>
   <bpmn:timerEventDefinition id="Timer_raise_due__definition">
    <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">the billing day of the period</bpmn:timeDuration>
   </bpmn:timerEventDefinition>
  </bpmn:intermediateCatchEvent>
  <bpmn:serviceTask id="Task_raise_from_order" name="Raise the draft the order asked for" dodil:step="raise_from_order" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to draft. When: a source called raise_draft (an order, a deposit, an adapter). Effect: keyed on the source; lines keep their source keys.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_none__if__Task_raise_from_order</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_raise_from_order__Gateway_ai_check_draft__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:serviceTask id="Task_raise_for_acceptance" name="Raise the draft for the accepted item" dodil:step="raise_for_acceptance" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to draft. When: an item was accepted (AR-29). Effect: keyed acc:item.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_none__if__Task_raise_for_acceptance</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_raise_for_acceptance__Gateway_ai_check_draft__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_draft_invoice" name="Raise an invoice by hand" dodil:step="draft_invoice">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From none to draft. When: work with no order (AR-02). Effect: totals and tax computed, never typed.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_none__if__Task_draft_invoice</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_draft_invoice__Gateway_ai_check_draft__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_raise_interest_draft" name="Raise the late-payment interest note (v4)" dodil:step="raise_interest_draft">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From none to draft. When: late_interest_mode is not off; the customer is a business; an invoice paid late or still overdue. Effect: a draft kind interest at the statutory rate plus fixed compensation, code OS (AR-39).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_none__if__Task_raise_interest_draft</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_raise_interest_draft__Gateway_ai_check_draft__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_settle_payment_request_invoice" name="Raise the deposit invoice a paid request became (v4)" dodil:step="settle_payment_request_invoice" implementation="##unspecified">
   <bpmn:documentation>By: The system. From none to draft. When: payments settled a payment request (AR-36). Effect: keyed dep:&lt;request_id&gt;:&lt;n&gt;, tax point = received_on; issued at once (it is the money already received).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_none__if__Task_settle_payment_request_invoice</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_settle_payment_request_invoice__Gateway_ai_check_draft__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:serviceTask id="Task_ai_check_draft" name="AI checks the draft before issue (suggest)" dodil:step="ai_check_draft" implementation="##unspecified">
   <bpmn:documentation>By: The system. From draft to draft. When: the pre-issue check is on. Effect: unusual amounts, a missing PO, an odd tax code or a duplicate of last month listed for the biller.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_ai_check_draft__if__Task_ai_check_draft</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_ai_check_draft__Gateway_ai_check_draft__if_end</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_review_draft" name="Review the draft" dodil:step="review_draft">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From draft to draft. Effect: drafts are not issued automatically unless the setting says so for the source.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_ai_check_draft__if_end__Task_review_draft</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_review_draft__Gateway_fill_usage__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_fill_usage" name="Enter the period's usage" dodil:step="fill_usage">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From draft to draft. When: the draft has a usage line.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_fill_usage__if__Task_fill_usage</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_fill_usage__Gateway_fill_usage__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_accept_invoice_findings" name="Accept or dismiss each AI finding" dodil:step="accept_invoice_findings">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From draft to draft. When: the draft has findings (AR-32). Effect: each decision recorded in ar_ai_finding; nothing changes without the biller.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_accept_invoice_findings__if__Task_accept_invoice_findings</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_accept_invoice_findings__Gateway_accept_invoice_findings__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_cancel_draft_invoice" name="Cancel the draft" dodil:step="cancel_draft_invoice">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From draft to cancelled. Effect: no number used; a zero-usage period ends here.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_draft__if__Task_cancel_draft_invoice</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_cancel_draft_invoice__End_invoice_cancelled</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_issue" name="Issue the invoice" dodil:step="issue">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From draft to issued. When: at least one line; usage filled in; the customer has a billing profile in force today; the tax content check passes; the tax point is not in a locked or filed VAT return (tax GET /vat-returns/tax-point-status) or a closed period; v4: each deposit deduction within what remains of its deposit; a cost centre on every revenue line where the ledger requires one. Effect: numbered from the company's series; issue date today; due date from the terms; tax and bill-to frozen; revenue for a service period to deferred revenue (AR-46).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_draft__if__Task_issue</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_issue__Gateway_post_to_ledger__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_post_to_ledger" name="Post to the ledger" dodil:step="post_to_ledger" implementation="##unspecified">
   <bpmn:documentation>By: The system. From issued to issued. When: the ledger mode is post. Effect: a balanced journal keyed on the invoice.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_post_to_ledger__if__Task_post_to_ledger</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_post_to_ledger__Gateway_post_to_ledger__if_end</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:userTask id="Task_send" name="Send it (a person presses Send)" dodil:step="send">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From issued to issued. Effect: the send recorded; delivery tracked by the mail capability, or by the e-invoice access point (v4).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_post_to_ledger__if_end__Task_send</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_send__Gateway_deliver_einvoice__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:serviceTask id="Task_deliver_einvoice" name="Deliver as a Peppol e-invoice (v4)" dodil:step="deliver_einvoice" implementation="##unspecified">
   <bpmn:documentation>By: The system. From issued to issued. When: the customer's channel is peppol with a participant id; the UBL passes EN 16931 and Peppol BIS 3 validation. Effect: UBL 2.1 to the access point, the message id on the send (AR-43).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_deliver_einvoice__if__Task_deliver_einvoice</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_deliver_einvoice__Gateway_deliver_einvoice__if_end</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:serviceTask id="Task_record_einvoice_status" name="Record the e-invoice's delivery and the buyer's response (v4)" dodil:step="record_einvoice_status" implementation="##unspecified">
   <bpmn:documentation>By: The system. From issued to issued. Effect: each status with its time on the send row (AR-44).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_deliver_einvoice__if_end__Task_record_einvoice_status</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_record_einvoice_status__Gateway_hand_to_partner_company__if</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:serviceTask id="Task_hand_to_partner_company" name="Hand the intercompany invoice to the partner company (v4)" dodil:step="hand_to_partner_company" implementation="##unspecified">
   <bpmn:documentation>By: The system. From issued to issued. When: trading_partner names a company in this installation. Effect: a bill keyed ic:&lt;invoice_id&gt; in that company's purchasing (AR-41).</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_hand_to_partner_company__if__Task_hand_to_partner_company</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_hand_to_partner_company__Gateway_hand_to_partner_company__if_end</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:serviceTask id="Task_release_deferred_revenue" name="Release revenue for the period (v4)" dodil:step="release_deferred_revenue" implementation="##unspecified">
   <bpmn:documentation>By: The system. From issued to issued. When: a line with a service period not fully released. Effect: deferred to revenue for the days in the period, keyed [invoice_id, line_no, period_id] (AR-46). Waits: the month end.</bpmn:documentation>
   <bpmn:incoming>Flow_Timer_release_deferred_revenue__Task_release_deferred_revenue</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_release_deferred_revenue__Gateway_release_deferred_revenue__if_end</bpmn:outgoing>
  </bpmn:serviceTask>
  <bpmn:intermediateCatchEvent id="Timer_release_deferred_revenue" name="the month end">
   <bpmn:incoming>Flow_Gateway_release_deferred_revenue__if__Timer_release_deferred_revenue</bpmn:incoming>
   <bpmn:outgoing>Flow_Timer_release_deferred_revenue__Task_release_deferred_revenue</bpmn:outgoing>
   <bpmn:timerEventDefinition id="Timer_release_deferred_revenue__definition">
    <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">the month end</bpmn:timeDuration>
   </bpmn:timerEventDefinition>
  </bpmn:intermediateCatchEvent>
  <bpmn:receiveTask id="Task_receive_invoice" name="Receive the invoice" dodil:step="receive_invoice" dodil:external="true">
   <bpmn:documentation>By: The customer. From issued to issued. Done outside the system: the process waits for it.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_release_deferred_revenue__if_end__Task_receive_invoice</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_receive_invoice__Gateway_chase__if</bpmn:outgoing>
  </bpmn:receiveTask>
  <bpmn:userTask id="Task_chase" name="Chase by hand" dodil:step="chase">
   <bpmn:documentation>By: Whoever chases money and records it. From issued to issued. When: overdue and outstanding above zero, and reminders are by hand. Waits: the due date passes unpaid.</bpmn:documentation>
   <bpmn:incoming>Flow_Timer_chase__Task_chase</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_chase__Gateway_chase__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:intermediateCatchEvent id="Timer_chase" name="the due date passes unpaid">
   <bpmn:incoming>Flow_Gateway_chase__if__Timer_chase</bpmn:incoming>
   <bpmn:outgoing>Flow_Timer_chase__Task_chase</bpmn:outgoing>
   <bpmn:timerEventDefinition id="Timer_chase__definition">
    <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">the due date passes unpaid</bpmn:timeDuration>
   </bpmn:timerEventDefinition>
  </bpmn:intermediateCatchEvent>
  <bpmn:receiveTask id="Task_pay" name="Pay" dodil:step="pay" dodil:external="true">
   <bpmn:documentation>By: The customer. From issued to issued. Done outside the system: the process waits for it.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_chase__if_end__Task_pay</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_pay__Task_record_payment</bpmn:outgoing>
  </bpmn:receiveTask>
  <bpmn:userTask id="Task_record_payment" name="Record the receipt and what it settles" dodil:step="record_payment">
   <bpmn:documentation>By: Whoever chases money and records it. From issued to issued. Effect: in payments: the receipt and its allocations; outstanding is derived.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_pay__Task_record_payment</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_record_payment__Gateway_export__if</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_export" name="Include in the monthly export to the accountant" dodil:step="export">
   <bpmn:documentation>By: Whoever sends the invoices (office, bookkeeper). From issued to issued. When: the ledger mode is export. Effect: in one export batch, once.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_export__if__Task_export</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_export__Gateway_export__if_end</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_void_invoice" name="Void the invoice" dodil:step="void_invoice" dodil:approval="true">
   <bpmn:documentation>By: Owner / finance manager. From issued to void. When: no allocations, and the owner's void_policy allows it (default never_sent). Requires: reason. Effect: drops out of every balance; reversing journal dated today in post mode. An approval.</bpmn:documentation>
   <bpmn:incoming>Flow_Gateway_invoice_issued__if__Task_void_invoice</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_void_invoice__End_invoice_void</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:exclusiveGateway id="Gateway_invoice_none__if" name="New invoice?">
   <bpmn:incoming>Flow_Start_invoice__Gateway_invoice_none__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_invoice_none__if__Timer_raise_due</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_invoice_none__if__Task_raise_from_order</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_invoice_none__if__Task_raise_for_acceptance</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_invoice_none__if__Task_draft_invoice</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_invoice_none__if__Task_raise_interest_draft</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_invoice_none__if__Task_settle_payment_request_invoice</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_ai_check_draft__if" name="the pre-issue check is on?">
   <bpmn:incoming>Flow_Task_raise_due__Gateway_ai_check_draft__if</bpmn:incoming>
   <bpmn:incoming>Flow_Task_raise_from_order__Gateway_ai_check_draft__if</bpmn:incoming>
   <bpmn:incoming>Flow_Task_raise_for_acceptance__Gateway_ai_check_draft__if</bpmn:incoming>
   <bpmn:incoming>Flow_Task_draft_invoice__Gateway_ai_check_draft__if</bpmn:incoming>
   <bpmn:incoming>Flow_Task_raise_interest_draft__Gateway_ai_check_draft__if</bpmn:incoming>
   <bpmn:incoming>Flow_Task_settle_payment_request_invoice__Gateway_ai_check_draft__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_ai_check_draft__if__Task_ai_check_draft</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_ai_check_draft__if__Gateway_ai_check_draft__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_ai_check_draft__if_end">
   <bpmn:incoming>Flow_Gateway_ai_check_draft__if__Gateway_ai_check_draft__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_ai_check_draft__Gateway_ai_check_draft__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_ai_check_draft__if_end__Task_review_draft</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_fill_usage__if" name="the draft has a usage line?">
   <bpmn:incoming>Flow_Task_review_draft__Gateway_fill_usage__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_fill_usage__if__Task_fill_usage</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_fill_usage__if__Gateway_fill_usage__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_fill_usage__if_end">
   <bpmn:incoming>Flow_Gateway_fill_usage__if__Gateway_fill_usage__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_fill_usage__Gateway_fill_usage__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_fill_usage__if_end__Gateway_accept_invoice_findings__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_accept_invoice_findings__if" name="the draft has findings (AR-32)?">
   <bpmn:incoming>Flow_Gateway_fill_usage__if_end__Gateway_accept_invoice_findings__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_accept_invoice_findings__if__Task_accept_invoice_findings</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_accept_invoice_findings__if__Gateway_accept_invoice_findings__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_accept_invoice_findings__if_end">
   <bpmn:incoming>Flow_Gateway_accept_invoice_findings__if__Gateway_accept_invoice_findings__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_accept_invoice_findings__Gateway_accept_invoice_findings__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_accept_invoice_findings__if_end__Gateway_invoice_draft__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_invoice_draft__if" name="Invoice draft: what next?">
   <bpmn:incoming>Flow_Gateway_accept_invoice_findings__if_end__Gateway_invoice_draft__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_invoice_draft__if__Task_cancel_draft_invoice</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_invoice_draft__if__Task_issue</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_invoice_cancelled" name="Invoice cancelled">
   <bpmn:incoming>Flow_Task_cancel_draft_invoice__End_invoice_cancelled</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:exclusiveGateway id="Gateway_post_to_ledger__if" name="the ledger mode is post?">
   <bpmn:incoming>Flow_Task_issue__Gateway_post_to_ledger__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_post_to_ledger__if__Task_post_to_ledger</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_post_to_ledger__if__Gateway_post_to_ledger__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_post_to_ledger__if_end">
   <bpmn:incoming>Flow_Gateway_post_to_ledger__if__Gateway_post_to_ledger__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_post_to_ledger__Gateway_post_to_ledger__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_post_to_ledger__if_end__Task_send</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_deliver_einvoice__if" name="the customer's channel is peppol with a participant id; the UBL passes EN 16931 and Peppol BIS 3 validation?">
   <bpmn:incoming>Flow_Task_send__Gateway_deliver_einvoice__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_deliver_einvoice__if__Task_deliver_einvoice</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_deliver_einvoice__if__Gateway_deliver_einvoice__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_deliver_einvoice__if_end">
   <bpmn:incoming>Flow_Gateway_deliver_einvoice__if__Gateway_deliver_einvoice__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_deliver_einvoice__Gateway_deliver_einvoice__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_deliver_einvoice__if_end__Task_record_einvoice_status</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_hand_to_partner_company__if" name="trading_partner names a company in this installation?">
   <bpmn:incoming>Flow_Task_record_einvoice_status__Gateway_hand_to_partner_company__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_hand_to_partner_company__if__Task_hand_to_partner_company</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_hand_to_partner_company__if__Gateway_hand_to_partner_company__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_hand_to_partner_company__if_end">
   <bpmn:incoming>Flow_Gateway_hand_to_partner_company__if__Gateway_hand_to_partner_company__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_hand_to_partner_company__Gateway_hand_to_partner_company__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_hand_to_partner_company__if_end__Gateway_release_deferred_revenue__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_release_deferred_revenue__if" name="a line with a service period not fully released?">
   <bpmn:incoming>Flow_Gateway_hand_to_partner_company__if_end__Gateway_release_deferred_revenue__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_release_deferred_revenue__if__Timer_release_deferred_revenue</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_release_deferred_revenue__if__Gateway_release_deferred_revenue__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_release_deferred_revenue__if_end">
   <bpmn:incoming>Flow_Gateway_release_deferred_revenue__if__Gateway_release_deferred_revenue__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_release_deferred_revenue__Gateway_release_deferred_revenue__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_release_deferred_revenue__if_end__Task_receive_invoice</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_chase__if" name="overdue and outstanding above zero, and reminders are by hand?">
   <bpmn:incoming>Flow_Task_receive_invoice__Gateway_chase__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_chase__if__Timer_chase</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_chase__if__Gateway_chase__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_chase__if_end">
   <bpmn:incoming>Flow_Gateway_chase__if__Gateway_chase__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_chase__Gateway_chase__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_chase__if_end__Task_pay</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_export__if" name="the ledger mode is export?">
   <bpmn:incoming>Flow_Task_record_payment__Gateway_export__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_export__if__Task_export</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_export__if__Gateway_export__if_end</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_export__if_end">
   <bpmn:incoming>Flow_Gateway_export__if__Gateway_export__if_end</bpmn:incoming>
   <bpmn:incoming>Flow_Task_export__Gateway_export__if_end</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_export__if_end__Gateway_invoice_issued__if</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:exclusiveGateway id="Gateway_invoice_issued__if" name="Invoice issued: done, or go on?">
   <bpmn:incoming>Flow_Gateway_export__if_end__Gateway_invoice_issued__if</bpmn:incoming>
   <bpmn:outgoing>Flow_Gateway_invoice_issued__if__Task_void_invoice</bpmn:outgoing>
   <bpmn:outgoing>Flow_Gateway_invoice_issued__if__End_invoice_issued</bpmn:outgoing>
  </bpmn:exclusiveGateway>
  <bpmn:endEvent id="End_invoice_issued" name="Invoice issued">
   <bpmn:incoming>Flow_Gateway_invoice_issued__if__End_invoice_issued</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:endEvent id="End_invoice_void" name="Invoice void">
   <bpmn:incoming>Flow_Task_void_invoice__End_invoice_void</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Timer_raise_due__Task_raise_due" sourceRef="Timer_raise_due" targetRef="Task_raise_due" />
  <bpmn:sequenceFlow id="Flow_Timer_release_deferred_revenue__Task_release_deferred_revenue" sourceRef="Timer_release_deferred_revenue" targetRef="Task_release_deferred_revenue" />
  <bpmn:sequenceFlow id="Flow_Timer_chase__Task_chase" sourceRef="Timer_chase" targetRef="Task_chase" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_none__if__Timer_raise_due" sourceRef="Gateway_invoice_none__if" targetRef="Timer_raise_due" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_none__if__Task_raise_from_order" sourceRef="Gateway_invoice_none__if" targetRef="Task_raise_from_order" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_none__if__Task_raise_for_acceptance" sourceRef="Gateway_invoice_none__if" targetRef="Task_raise_for_acceptance" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_none__if__Task_draft_invoice" sourceRef="Gateway_invoice_none__if" targetRef="Task_draft_invoice" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_none__if__Task_raise_interest_draft" sourceRef="Gateway_invoice_none__if" targetRef="Task_raise_interest_draft" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_none__if__Task_settle_payment_request_invoice" sourceRef="Gateway_invoice_none__if" targetRef="Task_settle_payment_request_invoice" />
  <bpmn:sequenceFlow id="Flow_Start_invoice__Gateway_invoice_none__if" sourceRef="Start_invoice" targetRef="Gateway_invoice_none__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_ai_check_draft__if__Task_ai_check_draft" name="the pre-issue check is on" sourceRef="Gateway_ai_check_draft__if" targetRef="Task_ai_check_draft" />
  <bpmn:sequenceFlow id="Flow_Gateway_ai_check_draft__if__Gateway_ai_check_draft__if_end" name="otherwise" sourceRef="Gateway_ai_check_draft__if" targetRef="Gateway_ai_check_draft__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_ai_check_draft__Gateway_ai_check_draft__if_end" sourceRef="Task_ai_check_draft" targetRef="Gateway_ai_check_draft__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_fill_usage__if__Task_fill_usage" name="the draft has a usage line" sourceRef="Gateway_fill_usage__if" targetRef="Task_fill_usage" />
  <bpmn:sequenceFlow id="Flow_Gateway_fill_usage__if__Gateway_fill_usage__if_end" name="otherwise" sourceRef="Gateway_fill_usage__if" targetRef="Gateway_fill_usage__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_fill_usage__Gateway_fill_usage__if_end" sourceRef="Task_fill_usage" targetRef="Gateway_fill_usage__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_accept_invoice_findings__if__Task_accept_invoice_findings" name="the draft has findings (AR-32)" sourceRef="Gateway_accept_invoice_findings__if" targetRef="Task_accept_invoice_findings" />
  <bpmn:sequenceFlow id="Flow_Gateway_accept_invoice_findings__if__Gateway_accept_invoice_findings__if_end" name="otherwise" sourceRef="Gateway_accept_invoice_findings__if" targetRef="Gateway_accept_invoice_findings__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_accept_invoice_findings__Gateway_accept_invoice_findings__if_end" sourceRef="Task_accept_invoice_findings" targetRef="Gateway_accept_invoice_findings__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_ai_check_draft__if_end__Task_review_draft" sourceRef="Gateway_ai_check_draft__if_end" targetRef="Task_review_draft" />
  <bpmn:sequenceFlow id="Flow_Task_review_draft__Gateway_fill_usage__if" sourceRef="Task_review_draft" targetRef="Gateway_fill_usage__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_fill_usage__if_end__Gateway_accept_invoice_findings__if" sourceRef="Gateway_fill_usage__if_end" targetRef="Gateway_accept_invoice_findings__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_draft__if__Task_cancel_draft_invoice" sourceRef="Gateway_invoice_draft__if" targetRef="Task_cancel_draft_invoice" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_draft__if__Task_issue" sourceRef="Gateway_invoice_draft__if" targetRef="Task_issue" />
  <bpmn:sequenceFlow id="Flow_Gateway_accept_invoice_findings__if_end__Gateway_invoice_draft__if" sourceRef="Gateway_accept_invoice_findings__if_end" targetRef="Gateway_invoice_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_raise_due__Gateway_ai_check_draft__if" sourceRef="Task_raise_due" targetRef="Gateway_ai_check_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_raise_from_order__Gateway_ai_check_draft__if" sourceRef="Task_raise_from_order" targetRef="Gateway_ai_check_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_raise_for_acceptance__Gateway_ai_check_draft__if" sourceRef="Task_raise_for_acceptance" targetRef="Gateway_ai_check_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_draft_invoice__Gateway_ai_check_draft__if" sourceRef="Task_draft_invoice" targetRef="Gateway_ai_check_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_raise_interest_draft__Gateway_ai_check_draft__if" sourceRef="Task_raise_interest_draft" targetRef="Gateway_ai_check_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_settle_payment_request_invoice__Gateway_ai_check_draft__if" sourceRef="Task_settle_payment_request_invoice" targetRef="Gateway_ai_check_draft__if" />
  <bpmn:sequenceFlow id="Flow_Task_cancel_draft_invoice__End_invoice_cancelled" sourceRef="Task_cancel_draft_invoice" targetRef="End_invoice_cancelled" />
  <bpmn:sequenceFlow id="Flow_Gateway_post_to_ledger__if__Task_post_to_ledger" name="the ledger mode is post" sourceRef="Gateway_post_to_ledger__if" targetRef="Task_post_to_ledger" />
  <bpmn:sequenceFlow id="Flow_Gateway_post_to_ledger__if__Gateway_post_to_ledger__if_end" name="otherwise" sourceRef="Gateway_post_to_ledger__if" targetRef="Gateway_post_to_ledger__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_post_to_ledger__Gateway_post_to_ledger__if_end" sourceRef="Task_post_to_ledger" targetRef="Gateway_post_to_ledger__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_deliver_einvoice__if__Task_deliver_einvoice" name="the customer's channel is peppol with a participant id; the UBL passes EN 16931 and Peppol BIS 3 validation" sourceRef="Gateway_deliver_einvoice__if" targetRef="Task_deliver_einvoice" />
  <bpmn:sequenceFlow id="Flow_Gateway_deliver_einvoice__if__Gateway_deliver_einvoice__if_end" name="otherwise" sourceRef="Gateway_deliver_einvoice__if" targetRef="Gateway_deliver_einvoice__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_deliver_einvoice__Gateway_deliver_einvoice__if_end" sourceRef="Task_deliver_einvoice" targetRef="Gateway_deliver_einvoice__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_hand_to_partner_company__if__Task_hand_to_partner_company" name="trading_partner names a company in this installation" sourceRef="Gateway_hand_to_partner_company__if" targetRef="Task_hand_to_partner_company" />
  <bpmn:sequenceFlow id="Flow_Gateway_hand_to_partner_company__if__Gateway_hand_to_partner_company__if_end" name="otherwise" sourceRef="Gateway_hand_to_partner_company__if" targetRef="Gateway_hand_to_partner_company__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_hand_to_partner_company__Gateway_hand_to_partner_company__if_end" sourceRef="Task_hand_to_partner_company" targetRef="Gateway_hand_to_partner_company__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_release_deferred_revenue__if__Timer_release_deferred_revenue" name="a line with a service period not fully released" sourceRef="Gateway_release_deferred_revenue__if" targetRef="Timer_release_deferred_revenue" />
  <bpmn:sequenceFlow id="Flow_Gateway_release_deferred_revenue__if__Gateway_release_deferred_revenue__if_end" name="otherwise" sourceRef="Gateway_release_deferred_revenue__if" targetRef="Gateway_release_deferred_revenue__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_release_deferred_revenue__Gateway_release_deferred_revenue__if_end" sourceRef="Task_release_deferred_revenue" targetRef="Gateway_release_deferred_revenue__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_chase__if__Timer_chase" name="overdue and outstanding above zero, and reminders are by hand" sourceRef="Gateway_chase__if" targetRef="Timer_chase" />
  <bpmn:sequenceFlow id="Flow_Gateway_chase__if__Gateway_chase__if_end" name="otherwise" sourceRef="Gateway_chase__if" targetRef="Gateway_chase__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_chase__Gateway_chase__if_end" sourceRef="Task_chase" targetRef="Gateway_chase__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_export__if__Task_export" name="the ledger mode is export" sourceRef="Gateway_export__if" targetRef="Task_export" />
  <bpmn:sequenceFlow id="Flow_Gateway_export__if__Gateway_export__if_end" name="otherwise" sourceRef="Gateway_export__if" targetRef="Gateway_export__if_end" />
  <bpmn:sequenceFlow id="Flow_Task_export__Gateway_export__if_end" sourceRef="Task_export" targetRef="Gateway_export__if_end" />
  <bpmn:sequenceFlow id="Flow_Gateway_post_to_ledger__if_end__Task_send" sourceRef="Gateway_post_to_ledger__if_end" targetRef="Task_send" />
  <bpmn:sequenceFlow id="Flow_Task_send__Gateway_deliver_einvoice__if" sourceRef="Task_send" targetRef="Gateway_deliver_einvoice__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_deliver_einvoice__if_end__Task_record_einvoice_status" sourceRef="Gateway_deliver_einvoice__if_end" targetRef="Task_record_einvoice_status" />
  <bpmn:sequenceFlow id="Flow_Task_record_einvoice_status__Gateway_hand_to_partner_company__if" sourceRef="Task_record_einvoice_status" targetRef="Gateway_hand_to_partner_company__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_hand_to_partner_company__if_end__Gateway_release_deferred_revenue__if" sourceRef="Gateway_hand_to_partner_company__if_end" targetRef="Gateway_release_deferred_revenue__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_release_deferred_revenue__if_end__Task_receive_invoice" sourceRef="Gateway_release_deferred_revenue__if_end" targetRef="Task_receive_invoice" />
  <bpmn:sequenceFlow id="Flow_Task_receive_invoice__Gateway_chase__if" sourceRef="Task_receive_invoice" targetRef="Gateway_chase__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_chase__if_end__Task_pay" sourceRef="Gateway_chase__if_end" targetRef="Task_pay" />
  <bpmn:sequenceFlow id="Flow_Task_pay__Task_record_payment" sourceRef="Task_pay" targetRef="Task_record_payment" />
  <bpmn:sequenceFlow id="Flow_Task_record_payment__Gateway_export__if" sourceRef="Task_record_payment" targetRef="Gateway_export__if" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_issued__if__Task_void_invoice" sourceRef="Gateway_invoice_issued__if" targetRef="Task_void_invoice" />
  <bpmn:sequenceFlow id="Flow_Gateway_invoice_issued__if__End_invoice_issued" name="done" sourceRef="Gateway_invoice_issued__if" targetRef="End_invoice_issued" />
  <bpmn:sequenceFlow id="Flow_Gateway_export__if_end__Gateway_invoice_issued__if" sourceRef="Gateway_export__if_end" targetRef="Gateway_invoice_issued__if" />
  <bpmn:sequenceFlow id="Flow_Task_issue__Gateway_post_to_ledger__if" sourceRef="Task_issue" targetRef="Gateway_post_to_ledger__if" />
  <bpmn:sequenceFlow id="Flow_Task_void_invoice__End_invoice_void" sourceRef="Task_void_invoice" targetRef="End_invoice_void" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_ar_v8">
  <bpmndi:BPMNPlane id="BPMNPlane_ar_v8" bpmnElement="Collaboration_ar_v8">
   <bpmndi:BPMNShape id="Participant_ar_invoice_di" bpmnElement="Participant_ar_invoice" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="5550" height="1420" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_invoice_system_di" bpmnElement="Lane_invoice_system" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="5520" height="500" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_invoice_biller_di" bpmnElement="Lane_invoice_biller" isHorizontal="true">
    <dc:Bounds x="30" y="500" width="5520" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_invoice_customer_di" bpmnElement="Lane_invoice_customer" isHorizontal="true">
    <dc:Bounds x="30" y="760" width="5520" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_invoice_collector_di" bpmnElement="Lane_invoice_collector" isHorizontal="true">
    <dc:Bounds x="30" y="900" width="5520" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_invoice_approver_di" bpmnElement="Lane_invoice_approver" isHorizontal="true">
    <dc:Bounds x="30" y="1160" width="5520" height="260" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_invoice_di" bpmnElement="Start_invoice">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_raise_due_di" bpmnElement="Task_raise_due">
    <dc:Bounds x="635" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Timer_raise_due_di" bpmnElement="Timer_raise_due">
    <dc:Bounds x="497" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_raise_from_order_di" bpmnElement="Task_raise_from_order">
    <dc:Bounds x="465" y="140" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_raise_for_acceptance_di" bpmnElement="Task_raise_for_acceptance">
    <dc:Bounds x="465" y="260" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_draft_invoice_di" bpmnElement="Task_draft_invoice">
    <dc:Bounds x="465" y="520" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_raise_interest_draft_di" bpmnElement="Task_raise_interest_draft">
    <dc:Bounds x="465" y="640" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_settle_payment_request_invoice_di" bpmnElement="Task_settle_payment_request_invoice">
    <dc:Bounds x="465" y="380" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_ai_check_draft_di" bpmnElement="Task_ai_check_draft">
    <dc:Bounds x="805" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_review_draft_di" bpmnElement="Task_review_draft">
    <dc:Bounds x="975" y="520" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_fill_usage_di" bpmnElement="Task_fill_usage">
    <dc:Bounds x="1315" y="520" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_accept_invoice_findings_di" bpmnElement="Task_accept_invoice_findings">
    <dc:Bounds x="1655" y="520" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_cancel_draft_invoice_di" bpmnElement="Task_cancel_draft_invoice">
    <dc:Bounds x="1995" y="520" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_issue_di" bpmnElement="Task_issue">
    <dc:Bounds x="1995" y="640" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_post_to_ledger_di" bpmnElement="Task_post_to_ledger">
    <dc:Bounds x="2335" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_send_di" bpmnElement="Task_send">
    <dc:Bounds x="2505" y="520" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_deliver_einvoice_di" bpmnElement="Task_deliver_einvoice">
    <dc:Bounds x="2845" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_record_einvoice_status_di" bpmnElement="Task_record_einvoice_status">
    <dc:Bounds x="3015" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_hand_to_partner_company_di" bpmnElement="Task_hand_to_partner_company">
    <dc:Bounds x="3355" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_release_deferred_revenue_di" bpmnElement="Task_release_deferred_revenue">
    <dc:Bounds x="3865" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Timer_release_deferred_revenue_di" bpmnElement="Timer_release_deferred_revenue">
    <dc:Bounds x="3727" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_receive_invoice_di" bpmnElement="Task_receive_invoice">
    <dc:Bounds x="3865" y="780" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_chase_di" bpmnElement="Task_chase">
    <dc:Bounds x="4375" y="920" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Timer_chase_di" bpmnElement="Timer_chase">
    <dc:Bounds x="4237" y="942" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_pay_di" bpmnElement="Task_pay">
    <dc:Bounds x="4375" y="780" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_record_payment_di" bpmnElement="Task_record_payment">
    <dc:Bounds x="4545" y="920" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_export_di" bpmnElement="Task_export">
    <dc:Bounds x="4885" y="520" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_void_invoice_di" bpmnElement="Task_void_invoice">
    <dc:Bounds x="5225" y="1180" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_invoice_none__if_di" bpmnElement="Gateway_invoice_none__if">
    <dc:Bounds x="320" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_ai_check_draft__if_di" bpmnElement="Gateway_ai_check_draft__if">
    <dc:Bounds x="660" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_ai_check_draft__if_end_di" bpmnElement="Gateway_ai_check_draft__if_end">
    <dc:Bounds x="830" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_fill_usage__if_di" bpmnElement="Gateway_fill_usage__if">
    <dc:Bounds x="1170" y="535" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_fill_usage__if_end_di" bpmnElement="Gateway_fill_usage__if_end">
    <dc:Bounds x="1340" y="655" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_accept_invoice_findings__if_di" bpmnElement="Gateway_accept_invoice_findings__if">
    <dc:Bounds x="1510" y="535" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_accept_invoice_findings__if_end_di" bpmnElement="Gateway_accept_invoice_findings__if_end">
    <dc:Bounds x="1680" y="655" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_invoice_draft__if_di" bpmnElement="Gateway_invoice_draft__if">
    <dc:Bounds x="1850" y="535" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_invoice_cancelled_di" bpmnElement="End_invoice_cancelled">
    <dc:Bounds x="2197" y="542" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_post_to_ledger__if_di" bpmnElement="Gateway_post_to_ledger__if">
    <dc:Bounds x="2190" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_post_to_ledger__if_end_di" bpmnElement="Gateway_post_to_ledger__if_end">
    <dc:Bounds x="2360" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_deliver_einvoice__if_di" bpmnElement="Gateway_deliver_einvoice__if">
    <dc:Bounds x="2700" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_deliver_einvoice__if_end_di" bpmnElement="Gateway_deliver_einvoice__if_end">
    <dc:Bounds x="2870" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_hand_to_partner_company__if_di" bpmnElement="Gateway_hand_to_partner_company__if">
    <dc:Bounds x="3210" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_hand_to_partner_company__if_end_di" bpmnElement="Gateway_hand_to_partner_company__if_end">
    <dc:Bounds x="3380" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_release_deferred_revenue__if_di" bpmnElement="Gateway_release_deferred_revenue__if">
    <dc:Bounds x="3550" y="35" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_release_deferred_revenue__if_end_di" bpmnElement="Gateway_release_deferred_revenue__if_end">
    <dc:Bounds x="3720" y="155" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_chase__if_di" bpmnElement="Gateway_chase__if">
    <dc:Bounds x="4060" y="935" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_chase__if_end_di" bpmnElement="Gateway_chase__if_end">
    <dc:Bounds x="4230" y="1055" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_export__if_di" bpmnElement="Gateway_export__if">
    <dc:Bounds x="4740" y="535" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_export__if_end_di" bpmnElement="Gateway_export__if_end">
    <dc:Bounds x="4910" y="655" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Gateway_invoice_issued__if_di" bpmnElement="Gateway_invoice_issued__if">
    <dc:Bounds x="5080" y="1195" width="50" height="50" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_invoice_issued_di" bpmnElement="End_invoice_issued">
    <dc:Bounds x="5257" y="1322" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_invoice_void_di" bpmnElement="End_invoice_void">
    <dc:Bounds x="5427" y="1202" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Timer_raise_due__Task_raise_due_di" bpmnElement="Flow_Timer_raise_due__Task_raise_due">
    <di:waypoint x="533" y="60" />
    <di:waypoint x="635" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Timer_release_deferred_revenue__Task_release_deferred_revenue_di" bpmnElement="Flow_Timer_release_deferred_revenue__Task_release_deferred_revenue">
    <di:waypoint x="3763" y="60" />
    <di:waypoint x="3865" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Timer_chase__Task_chase_di" bpmnElement="Flow_Timer_chase__Task_chase">
    <di:waypoint x="4273" y="960" />
    <di:waypoint x="4375" y="960" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_none__if__Timer_raise_due_di" bpmnElement="Flow_Gateway_invoice_none__if__Timer_raise_due">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="497" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_none__if__Task_raise_from_order_di" bpmnElement="Flow_Gateway_invoice_none__if__Task_raise_from_order">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="440" y="60" />
    <di:waypoint x="440" y="180" />
    <di:waypoint x="465" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_none__if__Task_raise_for_acceptance_di" bpmnElement="Flow_Gateway_invoice_none__if__Task_raise_for_acceptance">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="440" y="60" />
    <di:waypoint x="440" y="300" />
    <di:waypoint x="465" y="300" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_none__if__Task_draft_invoice_di" bpmnElement="Flow_Gateway_invoice_none__if__Task_draft_invoice">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="440" y="60" />
    <di:waypoint x="440" y="560" />
    <di:waypoint x="465" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_none__if__Task_raise_interest_draft_di" bpmnElement="Flow_Gateway_invoice_none__if__Task_raise_interest_draft">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="440" y="60" />
    <di:waypoint x="440" y="680" />
    <di:waypoint x="465" y="680" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_none__if__Task_settle_payment_request_invoice_di" bpmnElement="Flow_Gateway_invoice_none__if__Task_settle_payment_request_invoice">
    <di:waypoint x="370" y="60" />
    <di:waypoint x="440" y="60" />
    <di:waypoint x="440" y="420" />
    <di:waypoint x="465" y="420" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Start_invoice__Gateway_invoice_none__if_di" bpmnElement="Flow_Start_invoice__Gateway_invoice_none__if">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="320" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_ai_check_draft__if__Task_ai_check_draft_di" bpmnElement="Flow_Gateway_ai_check_draft__if__Task_ai_check_draft">
    <di:waypoint x="710" y="180" />
    <di:waypoint x="780" y="180" />
    <di:waypoint x="780" y="60" />
    <di:waypoint x="805" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_ai_check_draft__if__Gateway_ai_check_draft__if_end_di" bpmnElement="Flow_Gateway_ai_check_draft__if__Gateway_ai_check_draft__if_end">
    <di:waypoint x="710" y="180" />
    <di:waypoint x="830" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_ai_check_draft__Gateway_ai_check_draft__if_end_di" bpmnElement="Flow_Task_ai_check_draft__Gateway_ai_check_draft__if_end">
    <di:waypoint x="855" y="100" />
    <di:waypoint x="855" y="220" />
    <di:waypoint x="855" y="220" />
    <di:waypoint x="855" y="205" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_fill_usage__if__Task_fill_usage_di" bpmnElement="Flow_Gateway_fill_usage__if__Task_fill_usage">
    <di:waypoint x="1220" y="560" />
    <di:waypoint x="1315" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_fill_usage__if__Gateway_fill_usage__if_end_di" bpmnElement="Flow_Gateway_fill_usage__if__Gateway_fill_usage__if_end">
    <di:waypoint x="1220" y="560" />
    <di:waypoint x="1315" y="560" />
    <di:waypoint x="1315" y="680" />
    <di:waypoint x="1340" y="680" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_fill_usage__Gateway_fill_usage__if_end_di" bpmnElement="Flow_Task_fill_usage__Gateway_fill_usage__if_end">
    <di:waypoint x="1365" y="600" />
    <di:waypoint x="1365" y="726" />
    <di:waypoint x="1365" y="726" />
    <di:waypoint x="1365" y="705" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_accept_invoice_findings__if__Task_accept_invoice_findings_di" bpmnElement="Flow_Gateway_accept_invoice_findings__if__Task_accept_invoice_findings">
    <di:waypoint x="1560" y="560" />
    <di:waypoint x="1655" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_accept_invoice_findings__if__Gateway_accept_invoice_findings__if_end_di" bpmnElement="Flow_Gateway_accept_invoice_findings__if__Gateway_accept_invoice_findings__if_end">
    <di:waypoint x="1560" y="560" />
    <di:waypoint x="1655" y="560" />
    <di:waypoint x="1655" y="680" />
    <di:waypoint x="1680" y="680" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_accept_invoice_findings__Gateway_accept_invoice_findings__if_end_di" bpmnElement="Flow_Task_accept_invoice_findings__Gateway_accept_invoice_findings__if_end">
    <di:waypoint x="1705" y="600" />
    <di:waypoint x="1705" y="732" />
    <di:waypoint x="1705" y="732" />
    <di:waypoint x="1705" y="705" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_ai_check_draft__if_end__Task_review_draft_di" bpmnElement="Flow_Gateway_ai_check_draft__if_end__Task_review_draft">
    <di:waypoint x="880" y="180" />
    <di:waypoint x="950" y="180" />
    <di:waypoint x="950" y="560" />
    <di:waypoint x="975" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_review_draft__Gateway_fill_usage__if_di" bpmnElement="Flow_Task_review_draft__Gateway_fill_usage__if">
    <di:waypoint x="1075" y="560" />
    <di:waypoint x="1170" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_fill_usage__if_end__Gateway_accept_invoice_findings__if_di" bpmnElement="Flow_Gateway_fill_usage__if_end__Gateway_accept_invoice_findings__if">
    <di:waypoint x="1390" y="680" />
    <di:waypoint x="1485" y="680" />
    <di:waypoint x="1485" y="560" />
    <di:waypoint x="1510" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_draft__if__Task_cancel_draft_invoice_di" bpmnElement="Flow_Gateway_invoice_draft__if__Task_cancel_draft_invoice">
    <di:waypoint x="1900" y="560" />
    <di:waypoint x="1995" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_draft__if__Task_issue_di" bpmnElement="Flow_Gateway_invoice_draft__if__Task_issue">
    <di:waypoint x="1900" y="560" />
    <di:waypoint x="1970" y="560" />
    <di:waypoint x="1970" y="680" />
    <di:waypoint x="1995" y="680" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_accept_invoice_findings__if_end__Gateway_invoice_draft__if_di" bpmnElement="Flow_Gateway_accept_invoice_findings__if_end__Gateway_invoice_draft__if">
    <di:waypoint x="1730" y="680" />
    <di:waypoint x="1825" y="680" />
    <di:waypoint x="1825" y="560" />
    <di:waypoint x="1850" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_raise_due__Gateway_ai_check_draft__if_di" bpmnElement="Flow_Task_raise_due__Gateway_ai_check_draft__if">
    <di:waypoint x="685" y="100" />
    <di:waypoint x="685" y="238" />
    <di:waypoint x="685" y="238" />
    <di:waypoint x="685" y="205" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_raise_from_order__Gateway_ai_check_draft__if_di" bpmnElement="Flow_Task_raise_from_order__Gateway_ai_check_draft__if">
    <di:waypoint x="565" y="180" />
    <di:waypoint x="660" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_raise_for_acceptance__Gateway_ai_check_draft__if_di" bpmnElement="Flow_Task_raise_for_acceptance__Gateway_ai_check_draft__if">
    <di:waypoint x="565" y="300" />
    <di:waypoint x="635" y="300" />
    <di:waypoint x="635" y="180" />
    <di:waypoint x="660" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_draft_invoice__Gateway_ai_check_draft__if_di" bpmnElement="Flow_Task_draft_invoice__Gateway_ai_check_draft__if">
    <di:waypoint x="565" y="560" />
    <di:waypoint x="635" y="560" />
    <di:waypoint x="635" y="180" />
    <di:waypoint x="660" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_raise_interest_draft__Gateway_ai_check_draft__if_di" bpmnElement="Flow_Task_raise_interest_draft__Gateway_ai_check_draft__if">
    <di:waypoint x="565" y="680" />
    <di:waypoint x="635" y="680" />
    <di:waypoint x="635" y="180" />
    <di:waypoint x="660" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_settle_payment_request_invoice__Gateway_ai_check_draft__if_di" bpmnElement="Flow_Task_settle_payment_request_invoice__Gateway_ai_check_draft__if">
    <di:waypoint x="565" y="420" />
    <di:waypoint x="635" y="420" />
    <di:waypoint x="635" y="180" />
    <di:waypoint x="660" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_cancel_draft_invoice__End_invoice_cancelled_di" bpmnElement="Flow_Task_cancel_draft_invoice__End_invoice_cancelled">
    <di:waypoint x="2095" y="560" />
    <di:waypoint x="2197" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_post_to_ledger__if__Task_post_to_ledger_di" bpmnElement="Flow_Gateway_post_to_ledger__if__Task_post_to_ledger">
    <di:waypoint x="2240" y="60" />
    <di:waypoint x="2335" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_post_to_ledger__if__Gateway_post_to_ledger__if_end_di" bpmnElement="Flow_Gateway_post_to_ledger__if__Gateway_post_to_ledger__if_end">
    <di:waypoint x="2240" y="60" />
    <di:waypoint x="2335" y="60" />
    <di:waypoint x="2335" y="180" />
    <di:waypoint x="2360" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_post_to_ledger__Gateway_post_to_ledger__if_end_di" bpmnElement="Flow_Task_post_to_ledger__Gateway_post_to_ledger__if_end">
    <di:waypoint x="2385" y="100" />
    <di:waypoint x="2385" y="220" />
    <di:waypoint x="2385" y="220" />
    <di:waypoint x="2385" y="205" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_deliver_einvoice__if__Task_deliver_einvoice_di" bpmnElement="Flow_Gateway_deliver_einvoice__if__Task_deliver_einvoice">
    <di:waypoint x="2750" y="60" />
    <di:waypoint x="2845" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_deliver_einvoice__if__Gateway_deliver_einvoice__if_end_di" bpmnElement="Flow_Gateway_deliver_einvoice__if__Gateway_deliver_einvoice__if_end">
    <di:waypoint x="2750" y="60" />
    <di:waypoint x="2845" y="60" />
    <di:waypoint x="2845" y="180" />
    <di:waypoint x="2870" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_deliver_einvoice__Gateway_deliver_einvoice__if_end_di" bpmnElement="Flow_Task_deliver_einvoice__Gateway_deliver_einvoice__if_end">
    <di:waypoint x="2895" y="100" />
    <di:waypoint x="2895" y="226" />
    <di:waypoint x="2895" y="226" />
    <di:waypoint x="2895" y="205" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_hand_to_partner_company__if__Task_hand_to_partner_company_di" bpmnElement="Flow_Gateway_hand_to_partner_company__if__Task_hand_to_partner_company">
    <di:waypoint x="3260" y="60" />
    <di:waypoint x="3355" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_hand_to_partner_company__if__Gateway_hand_to_partner_company__if_end_di" bpmnElement="Flow_Gateway_hand_to_partner_company__if__Gateway_hand_to_partner_company__if_end">
    <di:waypoint x="3260" y="60" />
    <di:waypoint x="3355" y="60" />
    <di:waypoint x="3355" y="180" />
    <di:waypoint x="3380" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_hand_to_partner_company__Gateway_hand_to_partner_company__if_end_di" bpmnElement="Flow_Task_hand_to_partner_company__Gateway_hand_to_partner_company__if_end">
    <di:waypoint x="3405" y="100" />
    <di:waypoint x="3405" y="232" />
    <di:waypoint x="3405" y="232" />
    <di:waypoint x="3405" y="205" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_release_deferred_revenue__if__Timer_release_deferred_revenue_di" bpmnElement="Flow_Gateway_release_deferred_revenue__if__Timer_release_deferred_revenue">
    <di:waypoint x="3600" y="60" />
    <di:waypoint x="3727" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_release_deferred_revenue__if__Gateway_release_deferred_revenue__if_end_di" bpmnElement="Flow_Gateway_release_deferred_revenue__if__Gateway_release_deferred_revenue__if_end">
    <di:waypoint x="3600" y="60" />
    <di:waypoint x="3695" y="60" />
    <di:waypoint x="3695" y="180" />
    <di:waypoint x="3720" y="180" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_release_deferred_revenue__Gateway_release_deferred_revenue__if_end_di" bpmnElement="Flow_Task_release_deferred_revenue__Gateway_release_deferred_revenue__if_end">
    <di:waypoint x="3915" y="100" />
    <di:waypoint x="3915" y="238" />
    <di:waypoint x="3745" y="238" />
    <di:waypoint x="3745" y="205" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_chase__if__Timer_chase_di" bpmnElement="Flow_Gateway_chase__if__Timer_chase">
    <di:waypoint x="4110" y="960" />
    <di:waypoint x="4237" y="960" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_chase__if__Gateway_chase__if_end_di" bpmnElement="Flow_Gateway_chase__if__Gateway_chase__if_end">
    <di:waypoint x="4110" y="960" />
    <di:waypoint x="4205" y="960" />
    <di:waypoint x="4205" y="1080" />
    <di:waypoint x="4230" y="1080" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_chase__Gateway_chase__if_end_di" bpmnElement="Flow_Task_chase__Gateway_chase__if_end">
    <di:waypoint x="4425" y="1000" />
    <di:waypoint x="4425" y="1120" />
    <di:waypoint x="4255" y="1120" />
    <di:waypoint x="4255" y="1105" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_export__if__Task_export_di" bpmnElement="Flow_Gateway_export__if__Task_export">
    <di:waypoint x="4790" y="560" />
    <di:waypoint x="4885" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_export__if__Gateway_export__if_end_di" bpmnElement="Flow_Gateway_export__if__Gateway_export__if_end">
    <di:waypoint x="4790" y="560" />
    <di:waypoint x="4885" y="560" />
    <di:waypoint x="4885" y="680" />
    <di:waypoint x="4910" y="680" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_export__Gateway_export__if_end_di" bpmnElement="Flow_Task_export__Gateway_export__if_end">
    <di:waypoint x="4935" y="600" />
    <di:waypoint x="4935" y="726" />
    <di:waypoint x="4935" y="726" />
    <di:waypoint x="4935" y="705" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_post_to_ledger__if_end__Task_send_di" bpmnElement="Flow_Gateway_post_to_ledger__if_end__Task_send">
    <di:waypoint x="2410" y="180" />
    <di:waypoint x="2480" y="180" />
    <di:waypoint x="2480" y="560" />
    <di:waypoint x="2505" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_send__Gateway_deliver_einvoice__if_di" bpmnElement="Flow_Task_send__Gateway_deliver_einvoice__if">
    <di:waypoint x="2605" y="560" />
    <di:waypoint x="2675" y="560" />
    <di:waypoint x="2675" y="60" />
    <di:waypoint x="2700" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_deliver_einvoice__if_end__Task_record_einvoice_status_di" bpmnElement="Flow_Gateway_deliver_einvoice__if_end__Task_record_einvoice_status">
    <di:waypoint x="2920" y="180" />
    <di:waypoint x="2990" y="180" />
    <di:waypoint x="2990" y="60" />
    <di:waypoint x="3015" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_record_einvoice_status__Gateway_hand_to_partner_company__if_di" bpmnElement="Flow_Task_record_einvoice_status__Gateway_hand_to_partner_company__if">
    <di:waypoint x="3115" y="60" />
    <di:waypoint x="3210" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_hand_to_partner_company__if_end__Gateway_release_deferred_revenue__if_di" bpmnElement="Flow_Gateway_hand_to_partner_company__if_end__Gateway_release_deferred_revenue__if">
    <di:waypoint x="3430" y="180" />
    <di:waypoint x="3525" y="180" />
    <di:waypoint x="3525" y="60" />
    <di:waypoint x="3550" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_release_deferred_revenue__if_end__Task_receive_invoice_di" bpmnElement="Flow_Gateway_release_deferred_revenue__if_end__Task_receive_invoice">
    <di:waypoint x="3770" y="180" />
    <di:waypoint x="3840" y="180" />
    <di:waypoint x="3840" y="820" />
    <di:waypoint x="3865" y="820" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_receive_invoice__Gateway_chase__if_di" bpmnElement="Flow_Task_receive_invoice__Gateway_chase__if">
    <di:waypoint x="3965" y="820" />
    <di:waypoint x="4035" y="820" />
    <di:waypoint x="4035" y="960" />
    <di:waypoint x="4060" y="960" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_chase__if_end__Task_pay_di" bpmnElement="Flow_Gateway_chase__if_end__Task_pay">
    <di:waypoint x="4280" y="1080" />
    <di:waypoint x="4350" y="1080" />
    <di:waypoint x="4350" y="820" />
    <di:waypoint x="4375" y="820" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_pay__Task_record_payment_di" bpmnElement="Flow_Task_pay__Task_record_payment">
    <di:waypoint x="4475" y="820" />
    <di:waypoint x="4520" y="820" />
    <di:waypoint x="4520" y="960" />
    <di:waypoint x="4545" y="960" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_record_payment__Gateway_export__if_di" bpmnElement="Flow_Task_record_payment__Gateway_export__if">
    <di:waypoint x="4645" y="960" />
    <di:waypoint x="4715" y="960" />
    <di:waypoint x="4715" y="560" />
    <di:waypoint x="4740" y="560" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_issued__if__Task_void_invoice_di" bpmnElement="Flow_Gateway_invoice_issued__if__Task_void_invoice">
    <di:waypoint x="5130" y="1220" />
    <di:waypoint x="5225" y="1220" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_invoice_issued__if__End_invoice_issued_di" bpmnElement="Flow_Gateway_invoice_issued__if__End_invoice_issued">
    <di:waypoint x="5130" y="1220" />
    <di:waypoint x="5232" y="1220" />
    <di:waypoint x="5232" y="1340" />
    <di:waypoint x="5257" y="1340" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Gateway_export__if_end__Gateway_invoice_issued__if_di" bpmnElement="Flow_Gateway_export__if_end__Gateway_invoice_issued__if">
    <di:waypoint x="4960" y="680" />
    <di:waypoint x="5055" y="680" />
    <di:waypoint x="5055" y="1220" />
    <di:waypoint x="5080" y="1220" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_issue__Gateway_post_to_ledger__if_di" bpmnElement="Flow_Task_issue__Gateway_post_to_ledger__if">
    <di:waypoint x="2095" y="680" />
    <di:waypoint x="2165" y="680" />
    <di:waypoint x="2165" y="60" />
    <di:waypoint x="2190" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_void_invoice__End_invoice_void_di" bpmnElement="Flow_Task_void_invoice__End_invoice_void">
    <di:waypoint x="5325" y="1220" />
    <di:waypoint x="5427" y="1220" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNShape id="Participant_customer_di" bpmnElement="Participant_customer" isHorizontal="true">
    <dc:Bounds x="0" y="1460" width="5550" height="60" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Participant_customer__Task_receive_invoice_di" bpmnElement="Flow_Participant_customer__Task_receive_invoice">
    <di:waypoint x="3915" y="1460" />
    <di:waypoint x="3915" y="860" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Participant_customer__Task_pay_di" bpmnElement="Flow_Participant_customer__Task_pay">
    <di:waypoint x="4425" y="1460" />
    <di:waypoint x="4425" y="860" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>