Merge pull request #11859 from altatof/avoir

FIX : allow standalone credit note even if no invoice
This commit is contained in:
Laurent Destailleur 2019-09-30 18:12:55 +02:00 committed by GitHub
commit 4f356fa412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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">