dolibarr-dev
[Top][All Lists]
Advanced

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

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


From: Maxime Kohlhaas
Subject: Re: [Dolibarr-dev] Product->stock not used ?
Date: Wed, 3 Oct 2012 13:48:58 +0200

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) <address@hidden>
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


-- 
Eldy (Laurent Destailleur).

EMail: address@hidden
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: address@hidden
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: address@hidden
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev



reply via email to

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