機械翻訳について

条件での異なる属性の使用および単純な計算の実行

条件または処理内の様々な属性の値を調整し、単純な算術式を含むオーダー管理拡張を作成します。

直接出荷サプライヤとの契約があり、サプライヤがComputer Service and Rentalsの顧客に対してAS54888品目を含む販売オーダーの処理を開始する前に、3日間のリード・タイムが必要であるとします。 このニーズを満たすには、次のロジックを実装する拡張機能を作成します:

If the Customer attribute on the order header contains Computer Service and Rentals, and if the Order Type attribute on the order header contains Dropship Orders, and if the Item attribute on the order line contains AS54888, then set the Ordered Date on the order header to the value that the Current Date attribute contains plus 3 days.

設定のテスト

  1. 「オーダー管理」作業領域に移動し、販売オーダーを作成します。

    属性

    顧客

    Computer Service and Rentals

    オーダー・タイプ

    直送オーダー

  2. オーダー・ヘッドの「オーダー日」が、デフォルトで現在の日付になっていることを確認します。 現在の日付が9/01/20 10:02 PMであるとします。

  3. オーダー明細にAS54888品目を追加し、「送信」をクリックします。

  4. オーダー・ヘッダーの「オーダー日」が、現在の日付に3日を加えた日付になっていることを確認します。 この例では、Ordered Dateに9/04/20 10:02 PMが含まれていることを確認します。