dodil/erp-method
modules/payments/signoff/payments/history/payments_deposit_batch.v2.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_payments_v4" name="Payments & collections processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_payments_v4">
<bpmn:documentation>Payments & collections: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_payments_deposit_batch" name="Deposit batch" processRef="Process_payments_deposit_batch_v4" />
</bpmn:collaboration>
<bpmn:process id="Process_payments_deposit_batch_v4" name="Deposit batch" isExecutable="false">
<bpmn:documentation>Lifecycle of the deposit batch, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: open, deposited, matched.</bpmn:documentation>
<bpmn:laneSet id="LaneSet_deposit_batch">
<bpmn:lane id="Lane_deposit_batch_cashier" name="Whoever records money (bookkeeper, office manager)">
<bpmn:flowNodeRef>Start_deposit_batch</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_start_deposit_batch</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_add_cheque_to_batch</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_close_deposit_batch</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_match_deposit_batch</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_add_cheque_to_batch__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_add_cheque_to_batch__if_end</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_deposit_batch_matched</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_deposit_batch" name="Deposit batch needed">
<bpmn:outgoing>Flow_Start_deposit_batch__Task_start_deposit_batch</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_start_deposit_batch" name="Start a paying-in (v3)" dodil:step="start_deposit_batch">
<bpmn:documentation>By: Whoever records money (bookkeeper, office manager). From none to open. When: a bank account with purpose receive.</bpmn:documentation>
<bpmn:incoming>Flow_Start_deposit_batch__Task_start_deposit_batch</bpmn:incoming>
<bpmn:outgoing>Flow_Task_start_deposit_batch__Gateway_add_cheque_to_batch__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_add_cheque_to_batch" name="Add a cheque receipt to the paying-in" dodil:step="add_cheque_to_batch">
<bpmn:documentation>By: Whoever records money (bookkeeper, office manager). From open to open. When: a receipt with method cheque not in another batch.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_add_cheque_to_batch__if__Task_add_cheque_to_batch</bpmn:incoming>
<bpmn:outgoing>Flow_Task_add_cheque_to_batch__Gateway_add_cheque_to_batch__if_end</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_close_deposit_batch" name="Close the paying-in with its slip" dodil:step="close_deposit_batch">
<bpmn:documentation>By: Whoever records money (bookkeeper, office manager). From open to deposited. Requires: slip_no. Effect: keyed dep:<bank_account_id>:<slip>; the total fixed (PAY-28).</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_add_cheque_to_batch__if_end__Task_close_deposit_batch</bpmn:incoming>
<bpmn:outgoing>Flow_Task_close_deposit_batch__Task_match_deposit_batch</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_match_deposit_batch" name="Match the batch to its statement credit" dodil:step="match_deposit_batch">
<bpmn:documentation>By: Whoever records money (bookkeeper, office manager). From deposited to matched. When: the line's amount equals the batch total.</bpmn:documentation>
<bpmn:incoming>Flow_Task_close_deposit_batch__Task_match_deposit_batch</bpmn:incoming>
<bpmn:outgoing>Flow_Task_match_deposit_batch__End_deposit_batch_matched</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_add_cheque_to_batch__if" name="a receipt with method cheque not in another batch?">
<bpmn:incoming>Flow_Task_start_deposit_batch__Gateway_add_cheque_to_batch__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_add_cheque_to_batch__if__Task_add_cheque_to_batch</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_add_cheque_to_batch__if__Gateway_add_cheque_to_batch__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_add_cheque_to_batch__if_end">
<bpmn:incoming>Flow_Gateway_add_cheque_to_batch__if__Gateway_add_cheque_to_batch__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_add_cheque_to_batch__Gateway_add_cheque_to_batch__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_add_cheque_to_batch__if_end__Task_close_deposit_batch</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_deposit_batch_matched" name="Deposit batch matched">
<bpmn:incoming>Flow_Task_match_deposit_batch__End_deposit_batch_matched</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_deposit_batch__Task_start_deposit_batch" sourceRef="Start_deposit_batch" targetRef="Task_start_deposit_batch" />
<bpmn:sequenceFlow id="Flow_Gateway_add_cheque_to_batch__if__Task_add_cheque_to_batch" name="a receipt with method cheque not in another batch" sourceRef="Gateway_add_cheque_to_batch__if" targetRef="Task_add_cheque_to_batch" />
<bpmn:sequenceFlow id="Flow_Gateway_add_cheque_to_batch__if__Gateway_add_cheque_to_batch__if_end" name="otherwise" sourceRef="Gateway_add_cheque_to_batch__if" targetRef="Gateway_add_cheque_to_batch__if_end" />
<bpmn:sequenceFlow id="Flow_Task_add_cheque_to_batch__Gateway_add_cheque_to_batch__if_end" sourceRef="Task_add_cheque_to_batch" targetRef="Gateway_add_cheque_to_batch__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_add_cheque_to_batch__if_end__Task_close_deposit_batch" sourceRef="Gateway_add_cheque_to_batch__if_end" targetRef="Task_close_deposit_batch" />
<bpmn:sequenceFlow id="Flow_Task_start_deposit_batch__Gateway_add_cheque_to_batch__if" sourceRef="Task_start_deposit_batch" targetRef="Gateway_add_cheque_to_batch__if" />
<bpmn:sequenceFlow id="Flow_Task_close_deposit_batch__Task_match_deposit_batch" sourceRef="Task_close_deposit_batch" targetRef="Task_match_deposit_batch" />
<bpmn:sequenceFlow id="Flow_Task_match_deposit_batch__End_deposit_batch_matched" sourceRef="Task_match_deposit_batch" targetRef="End_deposit_batch_matched" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_payments_v4">
<bpmndi:BPMNPlane id="BPMNPlane_payments_v4" bpmnElement="Collaboration_payments_v4">
<bpmndi:BPMNShape id="Participant_payments_deposit_batch_di" bpmnElement="Participant_payments_deposit_batch" isHorizontal="true">
<dc:Bounds x="0" y="0" width="1300" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_deposit_batch_cashier_di" bpmnElement="Lane_deposit_batch_cashier" isHorizontal="true">
<dc:Bounds x="30" y="0" width="1270" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_deposit_batch_di" bpmnElement="Start_deposit_batch">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_start_deposit_batch_di" bpmnElement="Task_start_deposit_batch">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_add_cheque_to_batch_di" bpmnElement="Task_add_cheque_to_batch">
<dc:Bounds x="635" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_close_deposit_batch_di" bpmnElement="Task_close_deposit_batch">
<dc:Bounds x="805" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_match_deposit_batch_di" bpmnElement="Task_match_deposit_batch">
<dc:Bounds x="975" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_add_cheque_to_batch__if_di" bpmnElement="Gateway_add_cheque_to_batch__if">
<dc:Bounds x="490" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_add_cheque_to_batch__if_end_di" bpmnElement="Gateway_add_cheque_to_batch__if_end">
<dc:Bounds x="660" y="155" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_deposit_batch_matched_di" bpmnElement="End_deposit_batch_matched">
<dc:Bounds x="1177" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_deposit_batch__Task_start_deposit_batch_di" bpmnElement="Flow_Start_deposit_batch__Task_start_deposit_batch">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_add_cheque_to_batch__if__Task_add_cheque_to_batch_di" bpmnElement="Flow_Gateway_add_cheque_to_batch__if__Task_add_cheque_to_batch">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_add_cheque_to_batch__if__Gateway_add_cheque_to_batch__if_end_di" bpmnElement="Flow_Gateway_add_cheque_to_batch__if__Gateway_add_cheque_to_batch__if_end">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
<di:waypoint x="635" y="180" />
<di:waypoint x="660" y="180" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_add_cheque_to_batch__Gateway_add_cheque_to_batch__if_end_di" bpmnElement="Flow_Task_add_cheque_to_batch__Gateway_add_cheque_to_batch__if_end">
<di:waypoint x="685" y="100" />
<di:waypoint x="685" y="220" />
<di:waypoint x="685" y="220" />
<di:waypoint x="685" y="205" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_add_cheque_to_batch__if_end__Task_close_deposit_batch_di" bpmnElement="Flow_Gateway_add_cheque_to_batch__if_end__Task_close_deposit_batch">
<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_Task_start_deposit_batch__Gateway_add_cheque_to_batch__if_di" bpmnElement="Flow_Task_start_deposit_batch__Gateway_add_cheque_to_batch__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="490" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_close_deposit_batch__Task_match_deposit_batch_di" bpmnElement="Flow_Task_close_deposit_batch__Task_match_deposit_batch">
<di:waypoint x="905" y="60" />
<di:waypoint x="975" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_match_deposit_batch__End_deposit_batch_matched_di" bpmnElement="Flow_Task_match_deposit_batch__End_deposit_batch_matched">
<di:waypoint x="1075" y="60" />
<di:waypoint x="1177" y="60" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>