allow standalone credit note even if no invoice

This commit is contained in:
Christophe Battarel 2019-09-10 16:24:04 +02:00
parent 48aedcee20
commit 95417d4c86

View File

@ -3047,7 +3047,7 @@ if ($action == 'create')
{
print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">';
$tmp='<input type="radio" id="radio_creditnote" name="type" value="2"' . (GETPOST('type') == 2 ? ' checked' : '');
if (! $optionsav) $tmp.=' disabled';
if ( ! $optionsav && ! empty($conf->global->INVOICE_CREDIT_NOTE_STANDALONE) ) $tmp.=' disabled';
$tmp.= '> ';
// Show credit note options only if we checked credit note
print '<script type="text/javascript" language="javascript">