CALCODE 表格:詳細資料
GROUPBY 直欄
包含許多位元旗號,用來對 CalculationCodeCombineMethod 指出在執行計算時,應該將多少 OrderItems 納入群組。
每一組的 OrderItems 都是用來計算一種貨幣金額,這個金額是利用 CalculationCodeApplyMethod 來個別套用。
預設的 CalculationCodeCombineMethods 可識別下列位元旗號,位元順序從低到高分別是:
- 1 = perProduct - 有不同 CatalogEntries 的 OrderItems 應該個別分組。
當 CatlogEntry
在 CATENTREL 表格中有一個 PRODUCT_ITEM 上層,則改用上層 CatalogEntry。
- 2 = perTradingAgreement - 有不同 TradingAgreements 的 OrderItems 應該個別分組。
- 4 = perOffer - 有不同 Offers 的 OrderItems 應該個別分組。
- 8 = perAddress - 有不同出貨地址的 OrderItems 應該個別分組。
您可以新增位元旗號來指定上述分組的合併方式:
比方說:
- 0 = 不分組。將所有適用的 OrderItems 放置在單一群組中。
- 1 = 使用 perProduct 分組。
- 2 = 使用 perTradingAgreement 分組。
- 3 = 使用 perProduct 和 perTradingAgreement 分組。
- 4 = 使用 perOffer 分組。
- 6 = 使用 perOffer 和 perTradingAgreement 分組。
- 9 = 使用 perProduct 和 perAddress 分組。
回到 CALCODE 表格。