[Erp5-dev] getNextNegativeInventoryDate - specification, implementation

Tomasz Brzezina tomasz at brzezina.pl
Fri Feb 29 14:51:44 CET 2008


Łukasz Nowak pisze:
> 
> getNextNegativeInventoryDate works all right almost all the time, but
> little problem rises with precision of dates in movement table. Let's
> imagine this situation:
> 
>  a) 2008/02/15 receive quantity=10.0 of resource
>  b) 2008/02/15 send    quantity=5.0  of resource
> 
> Of course a) will always happen before b) in reality. But our precision
> is one day.
You can assume, that all receives are always before any send (even if 
it's not true).
This solve your problem.

-- 
Tomasz Brzezina

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3327 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080229/f474f0ae/attachment.bin>


More information about the Erp5-dev mailing list