Fix: Error when cloning invoice with discount

This commit is contained in:
Laurent Destailleur 2011-03-07 02:06:43 +00:00
parent 31c4cc0ecf
commit c7e8e6958b

View File

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