Fix: Error when cloning invoice with discount

This commit is contained in:
Laurent Destailleur 2011-03-07 02:06:57 +00:00
parent 52ee7183d9
commit 72459ac35c

View File

@ -294,7 +294,7 @@ class Facture extends CommonObject
else
{
dol_syslog("There is ".sizeof($this->lines)." lines that are array lines");
for ($i = 0 ; $i < sizeof($this->lines) ; $i++)
foreach ($this->lines as $i => $val)
{
if (($this->lines[$i]->info_bits & 0x01) == 0) // We keep only lines with first bit = 0
{