';
print $form->select_company($soc->id, 'socid', '((s.client = 1 OR s.client = 3) AND s.status=1)', 'SelectThirdParty', 0, 0, null, 0, 'minwidth300');
// Option to reload page to retrieve customer informations. Note, this clear other input
@@ -2790,17 +2801,14 @@ if ($action == 'create')
});
';
}
- print ' '.$langs->trans("AddThirdParty").'';
+ if (! GETPOST('fac_rec', 'int')) print ' '.$langs->trans("AddThirdParty").'';
print '
';
+ print '
' . "\n";
}
- print '' . "\n";
-
- $exampletemplateinvoice=new FactureRec($db);
// Overwrite some values if creation of invoice is from a predefined invoice
if (empty($origin) && empty($originid) && GETPOST('fac_rec', 'int') > 0)
{
- $invoice_predefined = new FactureRec($db);
$invoice_predefined->fetch(GETPOST('fac_rec', 'int'));
$dateinvoice = $invoice_predefined->date_when; // To use next gen date by default later
@@ -2827,13 +2835,14 @@ if ($action == 'create')
if ($num > 0)
{
print '