Ok thanks, I'll do this into the #186 task.

--
*Maxime Kohlhaas
Consultant associé
**ATM Consulting*
*+33 6 33 42 92 43*



2012/10/2 Laurent Destailleur (eldy) <[email protected]>

>  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 
> [email protected]https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
>
>
>
> --
> Eldy (Laurent Destailleur).
>
> EMail: [email protected]
> Web: http://www.destailleur.fr
>
> Dolibarr (Project leader): http://www.dolibarr.org
> To make a donation for Dolibarr project via Paypal: [email protected]
> AWStats (Author) : http://awstats.sourceforge.net
> To make a donation for AWStats project via Paypal: [email protected]
> AWBot (Author) : http://awbot.sourceforge.net
> CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net
>
>
> _______________________________________________
> Dolibarr-dev mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/dolibarr-dev
>
>
_______________________________________________
Dolibarr-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à