Fix: uniformize code
This commit is contained in:
parent
3215ae4df9
commit
283d82432b
@ -695,10 +695,7 @@ if ($_POST['action'] == 'add' && $user->rights->facture->creer)
|
|||||||
$result=$srcobject->fetch($object->origin_id);
|
$result=$srcobject->fetch($object->origin_id);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
// TODO mutualiser
|
$lines = $srcobject->lines;
|
||||||
$lines = $srcobject->lignes;
|
|
||||||
if (sizeof($srcobject->lines)) $lines = $srcobject->lines;
|
|
||||||
if (empty($lines) && method_exists($srcobject,'fetch_lignes')) $lines = $srcobject->fetch_lignes();
|
|
||||||
if (empty($lines) && method_exists($srcobject,'fetch_lines')) $lines = $srcobject->fetch_lines();
|
if (empty($lines) && method_exists($srcobject,'fetch_lines')) $lines = $srcobject->fetch_lines();
|
||||||
|
|
||||||
for ($i = 0 ; $i < sizeof($lines) ; $i++)
|
for ($i = 0 ; $i < sizeof($lines) ; $i++)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user