[Erp5-dev] getNextNegativeInventoryDate - specification, implementation

Łukasz Nowak lukasz.nowak at ventis.com.pl
Mon Mar 3 09:26:57 CET 2008


Hello,

On 2008-02-29, 19:25:25
Jérome Perrin <jerome at nexedi.com> wrote:

(...)
> What if you pass group_by_date=1 to getNextInventoryDate ? if you
> don't set hour minutes on your movement, the date defaults to 0h0m,
> so it's the same second and it could work.
> Then if we really want to group by day movements with differents
> hours and minutes, it's much more complex because we have to take
> timezone into account.

Indeed. I knew, that there have to be simpler solution that mine :)
Thanks for a tip.

Luke

-- 
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.



More information about the Erp5-dev mailing list