Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-2143

Tax Rate Settings produces empty list for Edit by Address and new entries do not save.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.0.3
    • Labels:
      None

      Description

      We have successfully defined a Tax Category called "CA State Sales Tax" (name only)

      When navigating to Taxes -> By Address -> Tax Rate Settings 

      and attempt to add a new Tax Rate Settings definition, the Tax Category "CA State Sales Tax" is available for selection, as expected.

      The save action for the new Tax Rate Settings entry appears to be successful (no error displayed, returns to previous list view).  However, the entry is not evident in the Tax Rate Settings list (list remains empty) --the entry is not successfully saved.

      After the save attempt, or any subsequent attempt to navigate to Taxes -> By Address -> Tax Rate Settings produces an empty list, and a backend stack trace complaining of:

      com.liferay.commerce.product.exception.NoSuchCPTaxCategoryException: No CPTaxCategory exists with the primary key 0

      There is indeed an entry for "CA State Sales Tax" in the the db table item is evident in the DB table CPTaxCategory.  Only one record exists; we have only defined one Tax Category.  (it's not clear what PK field the error refers to; the record is associated by companyID, etc).

      We cannot successfully complete the configuration of the By Address Tax entry.  It seems the scope of the jsp action is wrong or expecting some missing default record in that table?

      To reproduce from vanilla 7.1+Commerce bundle:

      1. Add one Country and one Region for testing (e.g., USA, California)
      2. Create a new Tax Category called "CA State Sales Tax"
      3. Attempt to create a new Tax Rate Settings entry under  Taxes -> By Address -> Tax Rate Settings and save.

      The entry will not be saved.  The stack error will be evident in the logs.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            chris.stavros Chris Stavros
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                2.0.3