Skip to content

Commit

Permalink
Option of standalone creditnote is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime committed Oct 26, 2015
1 parent bd831b1 commit 4b7c451
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions htdocs/admin/facture.php
Expand Up @@ -280,24 +280,6 @@
}
}

if ($action == 'set_INVOICE_CREDIT_NOTE_STANDALONE')
{
$freetext = GETPOST('INVOICE_CREDIT_NOTE_STANDALONE'); // No alpha here, we want exact string

$res = dolibarr_set_const($db, "INVOICE_CREDIT_NOTE_STANDALONE",$freetext,'chaine',0,'',$conf->entity);

if (! $res > 0) $error++;

if (! $error)
{
setEventMessage($langs->trans("SetupSaved"));
}
else
{
setEventMessage($langs->trans("Error"),'errors');
}
}


/*
* View
Expand Down Expand Up @@ -782,20 +764,6 @@
print "</td></tr>\n";
print '</form>';

// Allow to create credit note not related to an invoice
$var=! $var;
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'" />';
print '<input type="hidden" name="action" value="set_INVOICE_CREDIT_NOTE_STANDALONE" />';
print '<tr '.$bc[$var].'><td>';
print $langs->trans("AllowCreditNoteWithoutRelatedInvoice");
print '</td><td width="60" align="center">';
print $form->selectyesno("INVOICE_CREDIT_NOTE_STANDALONE",$conf->global->INVOICE_CREDIT_NOTE_STANDALONE,1);
print '</td><td align="right">';
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'" />';
print "</td></tr>\n";
print '</form>';

$var=! $var;
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'" />';
Expand Down

0 comments on commit 4b7c451

Please sign in to comment.