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:
- Add one Country and one Region for testing (e.g., USA, California)
- Create a new Tax Category called "CA State Sales Tax"
- 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.