iDempiere

IProcessFactory 實作驗收考題.

2019-04-22 · 1 分鐘 · Ray Lee (System Analyst)

情境說明:
將報價單抛轉成正式銷售訂單. 並傳入一個參IsComplete 抛轉後,是否同時完成訂單.
1.建立一個新的 Plug-in Project: tw.idempiere.exam
2.在 AD_Table: C_Order / Window: Sales Order 新增一個按鍵.
3.建立一個OSGi Process 並指定要該按鍵的 Process
4.在該報價單上按該按鍵後,Copy 資訊至全新的銷售訂單上.
5.若參數選擇為Yes, Document Action完成該訂單.

English Version

Scenario Description:
Convert a quotation into an official Sales Order. Pass a parameter IsComplete to determine whether to complete the order simultaneously after conversion.
1. Create a new Plug-in Project: tw.idempiere.exam
2. Add a button on AD_Table: C_Order / Window: Sales Order.
3. Create an OSGi Process and assign it to the button’s Process.
4. After clicking the button on the quotation, copy the information to a brand new Sales Order.
5. If the parameter is set to Yes, execute Document Action to complete the order.

日本語版

シナリオ説明:
見積書を正式な受注伝票に変換する。パラメータIsCompleteを渡し、変換後に同時に受注を完了するかどうかを指定する。
1. 新しいPlug-in Projectを作成: tw.idempiere.exam
2. AD_Table: C_Order / Window: Sales Order にボタンを追加する。
3. OSGi Processを作成し、そのボタンのProcessに割り当てる。
4. 見積書上でそのボタンをクリックした後、情報を新しい受注伝票にコピーする。
5. パラメータがYesの場合、Document Actionで受注を完了する。

Ray Lee (System Analyst)
作者 Ray Lee (System Analyst)

iDempeire ERP Contributor, 經濟部中小企業處財務管理顧問 李寶瑞