Le 02/10/2012 15:28, Maxime Kohlhaas a écrit :
Hi,
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 ?
Thanks,
--
/*Maxime Kohlhaas
*Consultant associé
//ATM Consulting/
/+33 6 33 42 92 43/
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
--
Eldy (Laurent Destailleur).
EMail: e...@destailleur.fr
Web: http://www.destailleur.fr
Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: cont...@destailleur.fr
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: cont...@destailleur.fr
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
_______________________________________________
Dolibarr-dev mailing list
Dolibarr-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev