dodil/erp-method

modules/tax/signoff/tax/tax_trade_declaration.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_tax_v7" name="Tax (VAT) processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
 <bpmn:collaboration id="Collaboration_tax_v7">
  <bpmn:documentation>Tax (VAT): one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
  <bpmn:participant id="Participant_tax_trade_declaration" name="Trade declaration" processRef="Process_tax_trade_declaration_v7" />
 </bpmn:collaboration>
 <bpmn:process id="Process_tax_trade_declaration_v7" name="Trade declaration" isExecutable="false">
  <bpmn:documentation>Lifecycle of the trade declaration, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: draft, filed.</bpmn:documentation>
  <bpmn:laneSet id="LaneSet_trade_declaration">
   <bpmn:lane id="Lane_trade_declaration_tax_admin" name="Whoever is responsible for VAT (the owner, the bookkeeper, the accountant)">
    <bpmn:flowNodeRef>Start_trade_declaration</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_prepare_trade_declaration</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>Task_record_trade_declaration_filed</bpmn:flowNodeRef>
    <bpmn:flowNodeRef>End_trade_declaration_filed</bpmn:flowNodeRef>
   </bpmn:lane>
  </bpmn:laneSet>
  <bpmn:startEvent id="Start_trade_declaration" name="Trade declaration needed">
   <bpmn:outgoing>Flow_Start_trade_declaration__Task_prepare_trade_declaration</bpmn:outgoing>
  </bpmn:startEvent>
  <bpmn:userTask id="Task_prepare_trade_declaration" name="Prepare the EC sales list or Intrastat declaration" dodil:step="prepare_trade_declaration">
   <bpmn:documentation>By: Whoever is responsible for VAT (the owner, the bookkeeper, the accountant). From none to draft. When: ni_goods registered; for Intrastat, the flow's threshold passed. Effect: lines from ar's (and purchasing's) goods documents with EU partners; the upload file (TAX-42, TAX-43).</bpmn:documentation>
   <bpmn:incoming>Flow_Start_trade_declaration__Task_prepare_trade_declaration</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_prepare_trade_declaration__Task_record_trade_declaration_filed</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:userTask id="Task_record_trade_declaration_filed" name="Record that it was filed with HMRC" dodil:step="record_trade_declaration_filed">
   <bpmn:documentation>By: Whoever is responsible for VAT (the owner, the bookkeeper, the accountant). From draft to filed. When: the EC sales list ties to box 8 for its months; every Intrastat line has a commodity code. Requires: submission_ref. Effect: filed with the reference and date; an amendment is a new version.</bpmn:documentation>
   <bpmn:incoming>Flow_Task_prepare_trade_declaration__Task_record_trade_declaration_filed</bpmn:incoming>
   <bpmn:outgoing>Flow_Task_record_trade_declaration_filed__End_trade_declaration_filed</bpmn:outgoing>
  </bpmn:userTask>
  <bpmn:endEvent id="End_trade_declaration_filed" name="Trade declaration filed">
   <bpmn:incoming>Flow_Task_record_trade_declaration_filed__End_trade_declaration_filed</bpmn:incoming>
  </bpmn:endEvent>
  <bpmn:sequenceFlow id="Flow_Start_trade_declaration__Task_prepare_trade_declaration" sourceRef="Start_trade_declaration" targetRef="Task_prepare_trade_declaration" />
  <bpmn:sequenceFlow id="Flow_Task_prepare_trade_declaration__Task_record_trade_declaration_filed" sourceRef="Task_prepare_trade_declaration" targetRef="Task_record_trade_declaration_filed" />
  <bpmn:sequenceFlow id="Flow_Task_record_trade_declaration_filed__End_trade_declaration_filed" sourceRef="Task_record_trade_declaration_filed" targetRef="End_trade_declaration_filed" />
 </bpmn:process>
 <bpmndi:BPMNDiagram id="BPMNDiagram_tax_v7">
  <bpmndi:BPMNPlane id="BPMNPlane_tax_v7" bpmnElement="Collaboration_tax_v7">
   <bpmndi:BPMNShape id="Participant_tax_trade_declaration_di" bpmnElement="Participant_tax_trade_declaration" isHorizontal="true">
    <dc:Bounds x="0" y="0" width="790" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Lane_trade_declaration_tax_admin_di" bpmnElement="Lane_trade_declaration_tax_admin" isHorizontal="true">
    <dc:Bounds x="30" y="0" width="760" height="140" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Start_trade_declaration_di" bpmnElement="Start_trade_declaration">
    <dc:Bounds x="157" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_prepare_trade_declaration_di" bpmnElement="Task_prepare_trade_declaration">
    <dc:Bounds x="295" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="Task_record_trade_declaration_filed_di" bpmnElement="Task_record_trade_declaration_filed">
    <dc:Bounds x="465" y="20" width="100" height="80" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNShape id="End_trade_declaration_filed_di" bpmnElement="End_trade_declaration_filed">
    <dc:Bounds x="667" y="42" width="36" height="36" />
   </bpmndi:BPMNShape>
   <bpmndi:BPMNEdge id="Flow_Start_trade_declaration__Task_prepare_trade_declaration_di" bpmnElement="Flow_Start_trade_declaration__Task_prepare_trade_declaration">
    <di:waypoint x="193" y="60" />
    <di:waypoint x="295" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_prepare_trade_declaration__Task_record_trade_declaration_filed_di" bpmnElement="Flow_Task_prepare_trade_declaration__Task_record_trade_declaration_filed">
    <di:waypoint x="395" y="60" />
    <di:waypoint x="465" y="60" />
   </bpmndi:BPMNEdge>
   <bpmndi:BPMNEdge id="Flow_Task_record_trade_declaration_filed__End_trade_declaration_filed_di" bpmnElement="Flow_Task_record_trade_declaration_filed__End_trade_declaration_filed">
    <di:waypoint x="565" y="60" />
    <di:waypoint x="667" y="60" />
   </bpmndi:BPMNEdge>
  </bpmndi:BPMNPlane>
 </bpmndi:BPMNDiagram>
</bpmn:definitions>