dodil/erp-method
modules/fixed-assets/signoff/fixed-assets/fixed-assets_capital_allowance_computation.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_fixed-assets_v3" name="Fixed assets & depreciation processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_fixed-assets_v3">
<bpmn:documentation>Fixed assets & depreciation: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_fixed-assets_capital_allowance_computation" name="Capital allowance computation" processRef="Process_fixed-assets_capital_allowance_computation_v3" />
</bpmn:collaboration>
<bpmn:process id="Process_fixed-assets_capital_allowance_computation_v3" name="Capital allowance computation" isExecutable="false">
<bpmn:documentation>Lifecycle of the capital allowance computation, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, prepared, approved, filed.</bpmn:documentation>
<bpmn:laneSet id="LaneSet_capital_allowance_computation">
<bpmn:lane id="Lane_capital_allowance_computation_tax_preparer" name="whoever prepares the corporation tax computation (in-house tax, or the external accountant)">
<bpmn:flowNodeRef>Start_capital_allowance_computation</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_draft_ca_computation</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_choose_allowance</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_prepare_ca_computation</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_choose_allowance__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_choose_allowance__if_end</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_capital_allowance_computation_finance_approver" name="the financial controller (finance manager)">
<bpmn:flowNodeRef>Task_approve_ca_computation</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_return_ca_computation</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_file_ca_computation</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_capital_allowance_computation_prepared__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_capital_allowance_computation_approved__if</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_capital_allowance_computation_filed</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_capital_allowance_computation" name="Capital allowance computation needed">
<bpmn:outgoing>Flow_Start_capital_allowance_computation__Task_draft_ca_computation</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_draft_ca_computation" name="Open the computation for a chargeable period" dodil:step="draft_ca_computation">
<bpmn:documentation>By: whoever prepares the corporation tax computation (in-house tax, or the external accountant). From none to draft. When: the previous period filed, or opening pools entered. Effect: keyed (company_code, period_start, period_end); pools, additions and disposals derived from the tax area.</bpmn:documentation>
<bpmn:incoming>Flow_Start_capital_allowance_computation__Task_draft_ca_computation</bpmn:incoming>
<bpmn:outgoing>Flow_Task_draft_ca_computation__Gateway_choose_allowance__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_choose_allowance" name="Choose the allowance for an addition" dodil:step="choose_allowance">
<bpmn:documentation>By: whoever prepares the corporation tax computation (in-house tax, or the external accountant). From draft to draft. When: the claim fits the asset (AIA not on a car; full expensing only for a company's new and unused main-pool plant). Effect: a claim row per asset (aia | full_expensing | fya_50 | pool | single_asset | sba | none) and amount.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_choose_allowance__if__Task_choose_allowance</bpmn:incoming>
<bpmn:outgoing>Flow_Task_choose_allowance__Gateway_choose_allowance__if_end</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_prepare_ca_computation" name="Prepare the computation" dodil:step="prepare_ca_computation">
<bpmn:documentation>By: whoever prepares the corporation tax computation (in-house tax, or the external accountant). From draft to prepared. When: every addition has a claim; the AIA claimed within the company's allocated limit for the period. Effect: WDA, balancing allowances and charges, closing pools computed and kept.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_choose_allowance__if_end__Task_prepare_ca_computation</bpmn:incoming>
<bpmn:outgoing>Flow_Task_prepare_ca_computation__Gateway_capital_allowance_computation_prepared__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_approve_ca_computation" name="Approve the computation" dodil:step="approve_ca_computation" dodil:approval="true">
<bpmn:documentation>By: the financial controller (finance manager). From prepared to approved. When: the approver is not the preparer (email AND sub). An approval.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_capital_allowance_computation_prepared__if__Task_approve_ca_computation</bpmn:incoming>
<bpmn:outgoing>Flow_Task_approve_ca_computation__Gateway_capital_allowance_computation_approved__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_return_ca_computation" name="Send back with a reason" dodil:step="return_ca_computation">
<bpmn:documentation>By: the financial controller (finance manager). From prepared / approved to draft. Requires: reason.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_capital_allowance_computation_prepared__if__Task_return_ca_computation</bpmn:incoming>
<bpmn:incoming>Flow_Gateway_capital_allowance_computation_approved__if__Task_return_ca_computation</bpmn:incoming>
<bpmn:outgoing>Flow_Task_return_ca_computation__Gateway_choose_allowance__if</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="Task_file_ca_computation" name="Mark it filed with the return" dodil:step="file_ca_computation">
<bpmn:documentation>By: the financial controller (finance manager). From approved to filed. Requires: return_reference. Effect: frozen; later changes land in the next period as adjustments.</bpmn:documentation>
<bpmn:incoming>Flow_Gateway_capital_allowance_computation_approved__if__Task_file_ca_computation</bpmn:incoming>
<bpmn:outgoing>Flow_Task_file_ca_computation__End_capital_allowance_computation_filed</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_choose_allowance__if" name="the claim fits the asset (AIA not on a car; full expensing only for a company's new and unused main-pool plant)?">
<bpmn:incoming>Flow_Task_draft_ca_computation__Gateway_choose_allowance__if</bpmn:incoming>
<bpmn:incoming>Flow_Task_return_ca_computation__Gateway_choose_allowance__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_choose_allowance__if__Task_choose_allowance</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_choose_allowance__if__Gateway_choose_allowance__if_end</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_choose_allowance__if_end">
<bpmn:incoming>Flow_Gateway_choose_allowance__if__Gateway_choose_allowance__if_end</bpmn:incoming>
<bpmn:incoming>Flow_Task_choose_allowance__Gateway_choose_allowance__if_end</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_choose_allowance__if_end__Task_prepare_ca_computation</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_capital_allowance_computation_prepared__if" name="Capital allowance computation prepared: what next?">
<bpmn:incoming>Flow_Task_prepare_ca_computation__Gateway_capital_allowance_computation_prepared__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_capital_allowance_computation_prepared__if__Task_approve_ca_computation</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_capital_allowance_computation_prepared__if__Task_return_ca_computation</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:exclusiveGateway id="Gateway_capital_allowance_computation_approved__if" name="Capital allowance computation approved: what next?">
<bpmn:incoming>Flow_Task_approve_ca_computation__Gateway_capital_allowance_computation_approved__if</bpmn:incoming>
<bpmn:outgoing>Flow_Gateway_capital_allowance_computation_approved__if__Task_return_ca_computation</bpmn:outgoing>
<bpmn:outgoing>Flow_Gateway_capital_allowance_computation_approved__if__Task_file_ca_computation</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="End_capital_allowance_computation_filed" name="Capital allowance computation filed">
<bpmn:incoming>Flow_Task_file_ca_computation__End_capital_allowance_computation_filed</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_capital_allowance_computation__Task_draft_ca_computation" sourceRef="Start_capital_allowance_computation" targetRef="Task_draft_ca_computation" />
<bpmn:sequenceFlow id="Flow_Gateway_choose_allowance__if__Task_choose_allowance" name="the claim fits the asset (AIA not on a car; full expensing only for a company's new and unused main-pool plant)" sourceRef="Gateway_choose_allowance__if" targetRef="Task_choose_allowance" />
<bpmn:sequenceFlow id="Flow_Gateway_choose_allowance__if__Gateway_choose_allowance__if_end" name="otherwise" sourceRef="Gateway_choose_allowance__if" targetRef="Gateway_choose_allowance__if_end" />
<bpmn:sequenceFlow id="Flow_Task_choose_allowance__Gateway_choose_allowance__if_end" sourceRef="Task_choose_allowance" targetRef="Gateway_choose_allowance__if_end" />
<bpmn:sequenceFlow id="Flow_Gateway_choose_allowance__if_end__Task_prepare_ca_computation" sourceRef="Gateway_choose_allowance__if_end" targetRef="Task_prepare_ca_computation" />
<bpmn:sequenceFlow id="Flow_Task_draft_ca_computation__Gateway_choose_allowance__if" sourceRef="Task_draft_ca_computation" targetRef="Gateway_choose_allowance__if" />
<bpmn:sequenceFlow id="Flow_Gateway_capital_allowance_computation_prepared__if__Task_approve_ca_computation" sourceRef="Gateway_capital_allowance_computation_prepared__if" targetRef="Task_approve_ca_computation" />
<bpmn:sequenceFlow id="Flow_Gateway_capital_allowance_computation_prepared__if__Task_return_ca_computation" sourceRef="Gateway_capital_allowance_computation_prepared__if" targetRef="Task_return_ca_computation" />
<bpmn:sequenceFlow id="Flow_Task_prepare_ca_computation__Gateway_capital_allowance_computation_prepared__if" sourceRef="Task_prepare_ca_computation" targetRef="Gateway_capital_allowance_computation_prepared__if" />
<bpmn:sequenceFlow id="Flow_Gateway_capital_allowance_computation_approved__if__Task_return_ca_computation" sourceRef="Gateway_capital_allowance_computation_approved__if" targetRef="Task_return_ca_computation" />
<bpmn:sequenceFlow id="Flow_Gateway_capital_allowance_computation_approved__if__Task_file_ca_computation" sourceRef="Gateway_capital_allowance_computation_approved__if" targetRef="Task_file_ca_computation" />
<bpmn:sequenceFlow id="Flow_Task_approve_ca_computation__Gateway_capital_allowance_computation_approved__if" sourceRef="Task_approve_ca_computation" targetRef="Gateway_capital_allowance_computation_approved__if" />
<bpmn:sequenceFlow id="Flow_Task_return_ca_computation__Gateway_choose_allowance__if" sourceRef="Task_return_ca_computation" targetRef="Gateway_choose_allowance__if" />
<bpmn:sequenceFlow id="Flow_Task_file_ca_computation__End_capital_allowance_computation_filed" sourceRef="Task_file_ca_computation" targetRef="End_capital_allowance_computation_filed" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_fixed-assets_v3">
<bpmndi:BPMNPlane id="BPMNPlane_fixed-assets_v3" bpmnElement="Collaboration_fixed-assets_v3">
<bpmndi:BPMNShape id="Participant_fixed-assets_capital_allowance_computation_di" bpmnElement="Participant_fixed-assets_capital_allowance_computation" isHorizontal="true">
<dc:Bounds x="0" y="0" width="1810" height="520" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_capital_allowance_computation_tax_preparer_di" bpmnElement="Lane_capital_allowance_computation_tax_preparer" isHorizontal="true">
<dc:Bounds x="30" y="0" width="1780" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_capital_allowance_computation_finance_approver_di" bpmnElement="Lane_capital_allowance_computation_finance_approver" isHorizontal="true">
<dc:Bounds x="30" y="260" width="1780" height="260" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_capital_allowance_computation_di" bpmnElement="Start_capital_allowance_computation">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_draft_ca_computation_di" bpmnElement="Task_draft_ca_computation">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_choose_allowance_di" bpmnElement="Task_choose_allowance">
<dc:Bounds x="635" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_prepare_ca_computation_di" bpmnElement="Task_prepare_ca_computation">
<dc:Bounds x="805" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_approve_ca_computation_di" bpmnElement="Task_approve_ca_computation">
<dc:Bounds x="1145" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_return_ca_computation_di" bpmnElement="Task_return_ca_computation">
<dc:Bounds x="1145" y="400" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_file_ca_computation_di" bpmnElement="Task_file_ca_computation">
<dc:Bounds x="1485" y="280" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_choose_allowance__if_di" bpmnElement="Gateway_choose_allowance__if">
<dc:Bounds x="490" y="35" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_choose_allowance__if_end_di" bpmnElement="Gateway_choose_allowance__if_end">
<dc:Bounds x="660" y="155" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_capital_allowance_computation_prepared__if_di" bpmnElement="Gateway_capital_allowance_computation_prepared__if">
<dc:Bounds x="1000" y="295" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_capital_allowance_computation_approved__if_di" bpmnElement="Gateway_capital_allowance_computation_approved__if">
<dc:Bounds x="1340" y="295" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_capital_allowance_computation_filed_di" bpmnElement="End_capital_allowance_computation_filed">
<dc:Bounds x="1687" y="302" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_capital_allowance_computation__Task_draft_ca_computation_di" bpmnElement="Flow_Start_capital_allowance_computation__Task_draft_ca_computation">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_choose_allowance__if__Task_choose_allowance_di" bpmnElement="Flow_Gateway_choose_allowance__if__Task_choose_allowance">
<di:waypoint x="540" y="60" />
<di:waypoint x="635" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_choose_allowance__if__Gateway_choose_allowance__if_end_di" bpmnElement="Flow_Gateway_choose_allowance__if__Gateway_choose_allowance__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_choose_allowance__Gateway_choose_allowance__if_end_di" bpmnElement="Flow_Task_choose_allowance__Gateway_choose_allowance__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_choose_allowance__if_end__Task_prepare_ca_computation_di" bpmnElement="Flow_Gateway_choose_allowance__if_end__Task_prepare_ca_computation">
<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_draft_ca_computation__Gateway_choose_allowance__if_di" bpmnElement="Flow_Task_draft_ca_computation__Gateway_choose_allowance__if">
<di:waypoint x="395" y="60" />
<di:waypoint x="490" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_capital_allowance_computation_prepared__if__Task_approve_ca_computation_di" bpmnElement="Flow_Gateway_capital_allowance_computation_prepared__if__Task_approve_ca_computation">
<di:waypoint x="1050" y="320" />
<di:waypoint x="1145" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_capital_allowance_computation_prepared__if__Task_return_ca_computation_di" bpmnElement="Flow_Gateway_capital_allowance_computation_prepared__if__Task_return_ca_computation">
<di:waypoint x="1050" y="320" />
<di:waypoint x="1120" y="320" />
<di:waypoint x="1120" y="440" />
<di:waypoint x="1145" y="440" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_prepare_ca_computation__Gateway_capital_allowance_computation_prepared__if_di" bpmnElement="Flow_Task_prepare_ca_computation__Gateway_capital_allowance_computation_prepared__if">
<di:waypoint x="905" y="60" />
<di:waypoint x="975" y="60" />
<di:waypoint x="975" y="320" />
<di:waypoint x="1000" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_capital_allowance_computation_approved__if__Task_return_ca_computation_di" bpmnElement="Flow_Gateway_capital_allowance_computation_approved__if__Task_return_ca_computation">
<di:waypoint x="1365" y="345" />
<di:waypoint x="1365" y="501" />
<di:waypoint x="1195" y="501" />
<di:waypoint x="1195" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Gateway_capital_allowance_computation_approved__if__Task_file_ca_computation_di" bpmnElement="Flow_Gateway_capital_allowance_computation_approved__if__Task_file_ca_computation">
<di:waypoint x="1390" y="320" />
<di:waypoint x="1485" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_approve_ca_computation__Gateway_capital_allowance_computation_approved__if_di" bpmnElement="Flow_Task_approve_ca_computation__Gateway_capital_allowance_computation_approved__if">
<di:waypoint x="1245" y="320" />
<di:waypoint x="1340" y="320" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_return_ca_computation__Gateway_choose_allowance__if_di" bpmnElement="Flow_Task_return_ca_computation__Gateway_choose_allowance__if">
<di:waypoint x="1195" y="480" />
<di:waypoint x="1195" y="507" />
<di:waypoint x="515" y="507" />
<di:waypoint x="515" y="85" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_file_ca_computation__End_capital_allowance_computation_filed_di" bpmnElement="Flow_Task_file_ca_computation__End_capital_allowance_computation_filed">
<di:waypoint x="1585" y="320" />
<di:waypoint x="1687" y="320" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>