[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] Product->stock not used ?

From: Laurent Destailleur (eldy)
Subject: Re: [Dolibarr-dev] Product->stock not used ?
Date: Tue, 02 Oct 2012 20:43:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0

Le 02/10/2012 15:28, Maxime Kohlhaas a écrit :

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 ?


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

Dolibarr-dev mailing list

Eldy (Laurent Destailleur).

EMail: address@hidden

Dolibarr (Project leader):
To make a donation for Dolibarr project via Paypal: address@hidden
AWStats (Author) :
To make a donation for AWStats project via Paypal: address@hidden
AWBot (Author) :
CVSChangeLogBuilder (Author) :

reply via email to

[Prev in Thread] Current Thread [Next in Thread]