Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added one line to allow use of price_ttc in calculated extra fields #33016

Open
wants to merge 1 commit into
base: 21.0
Choose a base branch
from

Conversation

MarcVJ
Copy link
Contributor

@MarcVJ MarcVJ commented Feb 11, 2025

NEW [Added one line to allow use of price_ttc in calculated extra fields]

price_ttc sometimes needs to be used in extra fields to compute price ttc per kilo or per liter. Currently price_ttc does not compute in the product list, so price per kilo cannot compute either. This allows to add an extra field "Price TTC per kilo" like this : $object->price_ttc / $object->weight. $object->price_ttc will work because the added line puts price_ttc into $products_static, which is put in $object.

price_ttc sometimes needs to be used in extra fields to compute price ttc per kilo or per liter.
Currently price_ttc does not compute in the product list, so price per kilo cannot compute either.
This allows to add an extra field "Price TTC per kilo" like this : $object->price_ttc / $object->weight.
$object->price_ttc will work because the added line puts price_ttc into $products_static, which is put in $object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant