Tax calculations

  • Release version: Yokohama
  • Updated January 30, 2025
  • 1 minute to read
  • A framework to integrate tax calculations into Sourcing and Purchasing Automation is implemented such that approvals can be done on the full value of purchases.

    Tax estimates from ShoppingHub administrator

    A ShoppingHub administrator can configure tax estimates to be included in purchase requests for the approval process. This is enabled through a system property sn_shop.tax.estimate.inclusion, which is included in purchase request approvals. If this inclusion is marked as true, the tax estimate from the cart line or checkout is included as a field in the purchase line and in the total line amount. However, if this inclusion is marked as false, not only would tax be excluded in the purchase request approval process, but also not calculated at checkout. This applies even when a customer has made the effort to set up the tax calculation API, but has not marked the purchasing property to true.

    Note:
    When a purchase request becomes a purchase order, the tax estimate is not included in the total amount.

    Tax calculation integration process

    • Tax integration is triggered when a shopper adds a product to the cart, and the sn_shop.tax.estimate.inclusion property to include tax in the purchase request approval process is marked as true.
    • A flow designer tax estimate responsible for making the API call, is triggered.
    • The flow designer evaluates if the SAP integration in configured or not.
    • If the SAP integration is configured, the flow designer sends the relevant parameter information to the SAP tax engine API, and receives the retrieved tax information to the calling function.
    • The received tax estimate is updated in the cart line as well as on the final checkout page.
    • If the SAP integration is not configured or there are integration errors, the flow designer does not receive any information from the SAP API, and the estimated tax is reflected as undetermined.
      Note:
      Here, the customer is open to integrate with any other tax engine, as desired.