IBM WebSphere Commerce Calculation Framework Guide V ersion 5. 4  IBM WebSph

IBM WebSphere Commerce Calculation Framework Guide V ersion 5. 4  IBM WebSphere Commerce Calculation Framework Guide V ersion 5. 4  Note: Before using this information and the product it supports, be sure to read the general information under Appendix E, “Notices” on page 113. First Edition (May 2002). This edition applies to version 5.4 of IBM® WebSphere® Commerce and to all subsequent releases and modifications until otherwise indicated in new editions. Make sure you are using the correct edition for the level of the product. Order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the address given below. IBM welcomes your comments. You can send your comments by any one of the following methods: 1. Electronically to the E-mail address listed below. Be sure to include your entire network address if you wish a reply. Internet: torrcf@ca.ibm.com 2. By regular mail to the following address: IBM Canada Ltd. Laboratory B3/KB7/8200/MKM 8200 Warden Avenue Markham, ON L6G 1C7 Canada When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 2002. All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Before you begin . . . . . . . . . . . v Conventions used in this book . . . . . . . . v Knowledge requirements . . . . . . . . . . vi Where to find new information . . . . . . . . vi Chapter 1. Introduction to the calculation framework . . . . . . . . 1 WebSphere Commerce business objects and the calculation framework . . . . . . . . . . . 1 Calculation framework overview . . . . . . . 2 Chapter 2. Calculation methods . . . . 5 Database tables for calculation methods . . . . . 7 Calculation method data model diagram . . . . 7 How calculation methods work . . . . . . . . 8 General flow of calculation methods . . . . . 10 Chapter 3. Calculation usages. . . . . 13 Database tables for calculation usage . . . . . . 13 CALUSAGE database table . . . . . . . . 14 STENCALUSG database table . . . . . . . 14 Calculation usage data model diagram . . . . 15 Calculation methods for calculation usages . . . . 15 InitializeCalculationUsage calculation methods 16 ApplyCalculationUsage calculation methods . . 17 SummarizeCalculationUsage calculation methods 19 FinalizeCalculationUsage calculation methods . . 20 How calculation usages work . . . . . . . . 20 How calculation usages are applied . . . . . 21 Chapter 4. Calculation codes . . . . . 23 Database tables for calculation codes . . . . . . 24 CALCODE database table . . . . . . . . 25 STENCALUSG database table . . . . . . . 27 Calculation code data model diagrams . . . . 27 Calculation methods for calculation codes . . . . 28 CalculationCodeCombine calculation methods. . 29 CalculationCodeQualify calculation methods . . 30 CalculationCodeCalculate calculation methods. . 31 CalculationCodeApply calculation methods. . . 31 How calculation codes work. . . . . . . . . 32 Chapter 5. Calculation rules . . . . . 35 Database tables for calculation rules . . . . . . 35 CALRULE database table. . . . . . . . . 36 SHPJCRULE database table . . . . . . . . 37 STENCALUSG database table . . . . . . . 38 TAXJCRULE database table . . . . . . . . 38 Calculation rule data model diagrams . . . . 39 Calculation methods for calculation rules . . . . 41 CalculationRuleCombine calculation method . . 41 CalculationRuleQualify calculation method . . . 42 CalculationRuleCalculate calculation method . . 44 How calculation rules are used . . . . . . . . 45 Chapter 6. Calculation scales and calculation ranges. . . . . . . . . . 47 Calculation scale properties . . . . . . . . . 47 Calculation range properties. . . . . . . . . 49 Database tables for calculation scales and calculation ranges . . . . . . . . . . . . . . . . 50 CALSCALE database table . . . . . . . . 51 CALRANGE database table . . . . . . . . 51 CALRLOOKUP database table . . . . . . . 52 Calculation scale and calculation range data model diagram . . . . . . . . . . . . 52 Calculation methods for calculation scales . . . . 53 CalculationScaleLookup calculation methods . . 53 MonetaryCalculationScaleLookup calculation methods . . . . . . . . . . . . . . 55 QuantityCalculationScaleLookup calculation methods . . . . . . . . . . . . . . 60 CalculationRange calculation method. . . . . 62 How calculation scales and calculation ranges are used. . . . . . . . . . . . . . . . . 64 Processing look–up results associated with currencies . . . . . . . . . . . . . . 65 Processing look–up results not associated with currencies . . . . . . . . . . . . . . 66 Calling a CalculationRange calculation method 66 Chapter 7. Examples: Applying the calculation framework . . . . . . . . 67 Discounts example . . . . . . . . . . . . 67 Discounts example description . . . . . . . 67 Discounts example implementation . . . . . 67 Shipping charges example . . . . . . . . . 73 Shipping charges example description . . . . 73 Shipping charges example implementation . . . 73 Sales tax and shipping tax calculations example . . 87 Sales tax and shipping tax calculation example description . . . . . . . . . . . . . 87 Sales tax and shipping tax calculation example implementation . . . . . . . . . . . . 88 Appendix A. Additional UML object model diagrams . . . . . . . . . . 101 Calculation methods . . . . . . . . . . . 102 Calculation usages. . . . . . . . . . . . 103 Calculation code direct attachment . . . . . . 103 Calculation code indirect attachment . . . . . 104 Discounts implementation . . . . . . . . . 104 Tax implementation . . . . . . . . . . . 105 Shipping implementation . . . . . . . . . 106 Appendix B. UML legend . . . . . . 107 Appendix C. Data model legend . . . 109 © Copyright IBM Corp. 2002 iii Appendix D. Other sources of information . . . . . . . . . . . . 111 Online information . . . . . . . . . . . 111 API documentation . . . . . . . . . . . 111 Database schema . . . . . . . . . . . . 111 Bootstrap files . . . . . . . . . . . . . 111 Loading calculation framework data. . . . . . 112 Modifying, extending, or overriding existing calculation logic . . . . . . . . . . . . 112 Appendix E. Notices . . . . . . . . 113 Trademarks . . . . . . . . . . . . . . 115 iv WebSphere Commerce Calculation Framework Guide Before you begin The IBM WebSphere Commerce Calculation Framework Guide is intended to provide a technical overview of the calculation framework for Store Developers that need to implement calculations or extend the default implementation of calculations within WebSphere Commerce. The IBM WebSphere Commerce Calculation Framework Guide provides information about the framework and default implementations that are used to perform the calculation of monetary amounts in WebSphere Commerce. In particular, it provides details on the following topics: v Calculation methods v Calculation usages v Calculation codes v Calculation rules v Calculation scales Conventions used in this book This book uses the following highlighting conventions: Boldface type indicates commands or graphical user interface (GUI) controls such as names of fields, buttons, uploads/S4/ calculation-framework-guide.pdf

  • 14
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Attribution requise
Partager
  • Détails
  • Publié le Fev 12, 2022
  • Catégorie Law / Droit
  • Langue French
  • Taille du fichier 0.4438MB