I'm working on task #186 and would like to add the stock in
the product selection on orders.
I saw in the /core/class/html.form.class.php (line 1234) that
the background color is supposed to to be different if
Product->stock = 0, but this column seems to be always NULL.
Yes, this column is not yet filled, so not used.
It is a denormalized field. To implement it, we must:
- run a script into migration process (upgrade or upgrade2.php page)
to update field with value calculated from llx_product_stock
- update code to update field into same transaction than transaction
that update llx_product_stock.
Is it an obsolete column ? Do I have to join the stock table
to get the real stock ?