Fix: Error when cloning invoice with discount
This commit is contained in:
parent
52ee7183d9
commit
72459ac35c
@ -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");
|
||||||
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
|
if (($this->lines[$i]->info_bits & 0x01) == 0) // We keep only lines with first bit = 0
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user