Fixing style errors.

This commit is contained in:
stickler-ci 2019-10-14 14:46:04 +00:00
parent 2149b155d1
commit 4b7987374b
2 changed files with 4 additions and 4 deletions

View File

@ -1287,11 +1287,11 @@ class Propal extends CommonObject
$object->datep = $now; // deprecated
$object->fin_validite = $object->date + ($object->duree_validite * 24 * 3600);
if (empty($conf->global->MAIN_KEEP_REF_CUSTOMER_ON_CLONING)) $object->ref_client = '';
if ($conf->global->MAIN_DONT_KEEP_NOTE_ON_CLONING==1)
if ($conf->global->MAIN_DONT_KEEP_NOTE_ON_CLONING==1)
{
$object->note_private = '';
$object->note_public = '';
}
}
// Create clone
$object->context['createfromclone']='createfromclone';
$result=$object->create($user);

View File

@ -1046,11 +1046,11 @@ class Facture extends CommonInvoice
$object->close_code = '';
$object->close_note = '';
$object->products = $object->lines; // For backward compatibility
if ($conf->global->MAIN_DONT_KEEP_NOTE_ON_CLONING==1)
if ($conf->global->MAIN_DONT_KEEP_NOTE_ON_CLONING==1)
{
$object->note_private = '';
$object->note_public = '';
}
}
// Loop on each line of new invoice
foreach($object->lines as $i => $line)