dodil/erp-method
modules/inventory/signoff/inventory/history/inventory_standard_price.v1.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_inventory_v3" name="Stock & warehouses processes" targetNamespace="https://git.dodil.io/dodil/erp-platform/processes" exporter="erp-platform erp-compose bpmn" exporterVersion="1">
<bpmn:collaboration id="Collaboration_inventory_v3">
<bpmn:documentation>Stock & warehouses: one pool per entity lifecycle, generated from module.yaml.</bpmn:documentation>
<bpmn:participant id="Participant_inventory_standard_price" name="Standard price" processRef="Process_inventory_standard_price_v3" />
</bpmn:collaboration>
<bpmn:process id="Process_inventory_standard_price_v3" name="Standard price" isExecutable="false">
<bpmn:documentation>Lifecycle of the standard price, generated from module.yaml by erp-compose bpmn; change the workflow there, not this file. States: scheduled, effective.</bpmn:documentation>
<bpmn:laneSet id="LaneSet_standard_price">
<bpmn:lane id="Lane_standard_price_accountant" name="Finance (bookkeeper, outside accountant)">
<bpmn:flowNodeRef>Start_standard_price</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Task_schedule_standard_price</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_standard_price_system" name="The system">
<bpmn:flowNodeRef>Task_apply_standard_price</bpmn:flowNodeRef>
<bpmn:flowNodeRef>End_standard_price_effective</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Start_standard_price" name="Standard price needed">
<bpmn:outgoing>Flow_Start_standard_price__Task_schedule_standard_price</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Task_schedule_standard_price" name="Set a standard price from a date" dodil:step="schedule_standard_price">
<bpmn:documentation>By: Finance (bookkeeper, outside accountant). From none to scheduled. When: readiness: starts_after_today; the company values at standard on that date, or switches to it that day. Effect: a dated standard price per company and product (NUMERIC(19,4) per base unit).</bpmn:documentation>
<bpmn:incoming>Flow_Start_standard_price__Task_schedule_standard_price</bpmn:incoming>
<bpmn:outgoing>Flow_Task_schedule_standard_price__Task_apply_standard_price</bpmn:outgoing>
</bpmn:userTask>
<bpmn:serviceTask id="Task_apply_standard_price" name="The standard price takes effect" dodil:step="apply_standard_price" implementation="##unspecified">
<bpmn:documentation>By: The system. From scheduled to effective. When: valid_from is today (business_timezone). Effect: a revaluation row of the quantity on hand at the old and new price, and its journal (stock_valuation against revaluation), journal_id derived (company, product, valid_from), posted once.</bpmn:documentation>
<bpmn:incoming>Flow_Task_schedule_standard_price__Task_apply_standard_price</bpmn:incoming>
<bpmn:outgoing>Flow_Task_apply_standard_price__End_standard_price_effective</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:endEvent id="End_standard_price_effective" name="Standard price effective">
<bpmn:incoming>Flow_Task_apply_standard_price__End_standard_price_effective</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_Start_standard_price__Task_schedule_standard_price" sourceRef="Start_standard_price" targetRef="Task_schedule_standard_price" />
<bpmn:sequenceFlow id="Flow_Task_schedule_standard_price__Task_apply_standard_price" sourceRef="Task_schedule_standard_price" targetRef="Task_apply_standard_price" />
<bpmn:sequenceFlow id="Flow_Task_apply_standard_price__End_standard_price_effective" sourceRef="Task_apply_standard_price" targetRef="End_standard_price_effective" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_inventory_v3">
<bpmndi:BPMNPlane id="BPMNPlane_inventory_v3" bpmnElement="Collaboration_inventory_v3">
<bpmndi:BPMNShape id="Participant_inventory_standard_price_di" bpmnElement="Participant_inventory_standard_price" isHorizontal="true">
<dc:Bounds x="0" y="0" width="790" height="280" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_standard_price_accountant_di" bpmnElement="Lane_standard_price_accountant" isHorizontal="true">
<dc:Bounds x="30" y="0" width="760" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_standard_price_system_di" bpmnElement="Lane_standard_price_system" isHorizontal="true">
<dc:Bounds x="30" y="140" width="760" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Start_standard_price_di" bpmnElement="Start_standard_price">
<dc:Bounds x="157" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_schedule_standard_price_di" bpmnElement="Task_schedule_standard_price">
<dc:Bounds x="295" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_apply_standard_price_di" bpmnElement="Task_apply_standard_price">
<dc:Bounds x="465" y="160" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="End_standard_price_effective_di" bpmnElement="End_standard_price_effective">
<dc:Bounds x="667" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_Start_standard_price__Task_schedule_standard_price_di" bpmnElement="Flow_Start_standard_price__Task_schedule_standard_price">
<di:waypoint x="193" y="60" />
<di:waypoint x="295" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_schedule_standard_price__Task_apply_standard_price_di" bpmnElement="Flow_Task_schedule_standard_price__Task_apply_standard_price">
<di:waypoint x="395" y="60" />
<di:waypoint x="440" y="60" />
<di:waypoint x="440" y="200" />
<di:waypoint x="465" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_Task_apply_standard_price__End_standard_price_effective_di" bpmnElement="Flow_Task_apply_standard_price__End_standard_price_effective">
<di:waypoint x="565" y="200" />
<di:waypoint x="667" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>