Skip to content

Commit

Permalink
Merge pull request #6838 from atm-ph/fix_invoice_credit_note_standalone
Browse files Browse the repository at this point in the history
Fix feature INVOICE_CREDIT_NOTE_STANDALONE doesn't work
  • Loading branch information
eldy committed May 13, 2017
2 parents 419c15e + b092b68 commit dec602a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/compta/facture.php
Expand Up @@ -2349,7 +2349,8 @@
else
{
print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">';
$tmp='<input type="radio" name="type" id="radio_creditnote" value="0" disabled> ';
if (empty($conf->global->INVOICE_CREDIT_NOTE_STANDALONE)) $tmp='<input type="radio" name="type" id="radio_creditnote" value="0" disabled> ';
else $tmp='<input type="radio" name="type" id="radio_creditnote" value="2" > ';
$text = $tmp.$langs->trans("InvoiceAvoir") . ' ';
$text.= '('.$langs->trans("YouMustCreateInvoiceFromThird").') ';
$desc = $form->textwithpicto($text, $langs->transnoentities("InvoiceAvoirDesc"), 1, 'help', '', 0, 3);
Expand Down

0 comments on commit dec602a

Please sign in to comment.