OrchardCore.Commerce icon indicating copy to clipboard operation
OrchardCore.Commerce copied to clipboard

InvalidOperationException: Some, but not all products have gross price. This is invalid. (OCC-409)

Open infofromca opened this issue 4 months ago • 2 comments

Describe the bug

A clear and concise description of what the problem is.

To Reproduce

Steps to reproduce the behavior:

  1. Edit 'Test Product'
  2. Add 'Gross Price 10.00' and Tax Rate 20
  3. do not add Tax to other product
  4. See error, see pic

Expected behavior

1--I know this is by code intentionally, but in real world, it is possible that one product (detergents) has tax , the other (for ex, vegetables) do not . 2-- More, it gave out broken page ( site)

Screenshots

If app

Image

licable, add screenshots to help explain your problem.

Jira issue

infofromca avatar Nov 03 '25 16:11 infofromca

Can you give a specific example of where this is allowable in a real world scenario. It seems very error prone.

sarahelsaig avatar Nov 13 '25 23:11 sarahelsaig

In Walmart of Canada, it sell computers with tax, but it also sell vegetables, milk, and other agri. products now on which there is no tax. and there are many many other physical and online stores

infofromca avatar Nov 25 '25 17:11 infofromca