Currently, if you attach a price field to any other entity type than commerce_product, you're not able to indicate that the price you're entering is tax inclusive.
The code that does that for commerce products is currently not reusable, we should create two API functions that can be called by custom modules in order to mimic this behavior.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsacksick’s picture

Status: Active » Needs review
FileSize
10.18 KB

I'm not sure about the function names, but here's a first patch.

Status: Needs review » Needs work

The last submitted patch, 1: commerce_tax-add-api-functions-2376871-1.patch, failed testing.

AdamGerthel’s picture