Skip to content

Instantly share code, notes, and snippets.

@yasuflatland-lf
Last active April 18, 2022 06:28
Show Gist options
  • Save yasuflatland-lf/8ace35d97352da7321f310ec927a7260 to your computer and use it in GitHub Desktop.
Save yasuflatland-lf/8ace35d97352da7321f310ec927a7260 to your computer and use it in GitHub Desktop.
Japanese Payment Process
sequenceDiagram

    actor Customer
    participant Sales as Sales
    participant Accounting as Accounting
    participant Finance as Finance
    participant System as System
    participant Report as Report Files<br/>紙の伝票
    participant Procurement as Procurement
    participant Warehouse as Warehouse
    actor Vendors as Vendors / Factories

        %% 見積もり
        par Quote<br/>見積もり処理
            Customer ->>+Sales: (1) Quote Request<br/>(Online/Fax/Mail)
            Sales ->>-System: (2) Register the quote into the System
            Note over System: The quote is stored in the Quote Table
            loop Negotiation
                Customer -->>Sales: Negotiate the price
                Sales ->>Customer:  
            end  
            Note over Customer, Sales : Agree with the price

            Sales ->>System: Register the final quote  
            activate Sales
            Sales ->>Report: (3b) File the quote report<br/>見積もり控、採算計画書
            Note right of Report: File the quote report<br/>見積もり控、採算計画書
            Sales ->>Customer: (3a) Sending a quote <br/>(by phisical mail in some case)
            deactivate Sales
            activate Customer
        end
        
        %% 注文
        par Order<br/>注文処理
            Customer ->>+Sales: (4) Submit a order<br/>(Online/Fax/Mail)
            deactivate Customer
            Sales ->>+System: (5) Register the order
            Note over System: The quote is convereted to an order
            Sales ->>Customer: (6a) Send an order acceptance slip<br/>(注文請書)
            Sales ->>-Report: (6b) File the order acceptance slip<br/>(注文請書控え/受注伝票)
            Note right of Report: File the order acceptance slip<br/>(注文請書控え/受注伝票)
        end   
        
        %% 調達注文
        par Procurement Order<br/>調達注文
            System ->>-Procurement: Request an order to vendors for the product
            Procurement ->>+Vendors: (8b) Send orders to vendors
            Procurement ->>Report: (8a) File the order to vendors
            Note right of Report: Place order for vendors<br/>仕入れ先への注文書
        end
        
        %% 倉庫に納品
        par Product arrive at the wherehouse<br/> 倉庫に納品
            Vendors ->>-Warehouse: Product or parts arrive from vendors
            Warehouse ->>+System: (9) Register the product in the inventory record
            Note over System: Register the product in the inventory record
            Warehouse ->>Report: (10) File inventory slip<br/>入荷伝票
            Note right of Report: File inventory slip<br/>入荷伝票
        end
        
        %% 倉庫から調達に連絡
        par Wherehouse notify Procurement for the update of stocks<br/>倉庫から調達に連絡
            System -->>-Procurement: Notify the products are in stock
            Procurement ->>+System: (15) Record stocks
            Note over System: Convert the inventory record to stock
            Procurement ->> Report: (16) File purchase slip<br/>仕入伝票
            Note right of Report: File purchase slip<br/>仕入伝票
        end
        
        %% 調達から営業へ連絡
        par Procurement notify Sales<br/>調達から営業へ連絡
            System -->>-Sales: (11) In stock notification to Sales
            activate Sales
            Sales ->>System: Request shipping to the customer
            deactivate Sales
            activate System
            System-->>Warehouse: (12a) Request Shiping<br/>出荷指示書
            System-->>Warehouse: (12b) Generate picking list<br/>ピッキングリスト
            deactivate System
        end        
        
        %% 出荷
        par Shipping<br/>出荷
            Warehouse -->>System: (14a) Record delivery slip
            activate System
            activate Warehouse
            Warehouse ->>Report: (14b) File the delivery slip<br/>納品書(控)/出荷伝票
            Note right of Report: File the delivery slip<br/>納品書(控)/出荷伝票
            Warehouse ->>Customer: Shipping products
            deactivate Warehouse            
        end
        
        %% 売上処理
        par Sales register sold record<br/>売上処理
            System -->> Sales: Notify Sales for shipping products
            activate Sales
            deactivate System
            Sales ->> System: (17) Record sales
            Sales ->> Report: (18) File Sales slip
            deactivate Sales
            Note right of Report: File Sales slip<br/>売上伝票
        end
        
        Note over Customer, Vendors: Close date for Sales on Credit<br/>締め日
        
        %% 経理
        par Sales on Credit prodcess<br/>締め処理
            Accounting ->>System: (19) Gather billes for Sales on Credit process<br/>請求締め処理
            activate Accounting
            Accounting ->> Customer: (20a) Send billes<br/>請求書
            activate Customer
            Accounting ->>Report: (20b) File Billes<br/>請求書(控)
            deactivate Accounting
            Note right of Report: File Billes<br/>請求書(控)  
            
            %% 経理
            %% 顧客から入金
            Customer ->> Finance: Place payment
            deactivate Customer
            activate Finance
            
            Finance ->> System: (23) Check if money recived
            Finance ->> Report: (24) File paying-in slips<br/>入金伝票
            deactivate Finance            
            Note right of Report: File paying-in slips<br/>入金伝票
            
            System -->> Accounting: Notify if payment from customers are not match with issued sales slips for the month.
        end        
        
        %% ベンダーへ支払い
        Note over Customer, Vendors: Close date for Payment<br/>支払い締め  
        par Sales on Credit for Vendors process<br/>ベンダーへ支払い
            Accounting ->> System: (21) Process billes from vendors for Sales on Credit process<br/>支払い締め処理
            activate Accounting
            activate System
            
            Accounting ->> Vendors: (22a) Send a payment slip<br/>支払書
            Accounting ->> Report: (22b) File the copy of payment slip<br/>支払書(控) 
            deactivate Accounting            
            Note right of Report: File the copy of payment slip<br/>支払書(控)        
            
            %%財務が支払い確認後、伝票作成
            System -->> Finance: (25) Notify placing payment for vendors
            deactivate System            
            activate Finance
            Finance ->>Vendors: Place payment
            Finance ->>Report: (26) File Payment slips<br/>支払伝票
            deactivate Finance
            Note right of Report: File Payment slips<br/>支払伝票
        end
        Note over Customer, Vendors: Close date for Payment<br/>入金/支払い期日
                
        
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment