Restore hidden param to enable feature for the release 3.1. I suggest to test it during on version untill making it visible by default.

This commit is contained in:
Laurent Destailleur 2011-07-13 08:57:21 +00:00
parent a08e81b77b
commit e8f9d5cb99

View File

@ -24,7 +24,7 @@
* \file htdocs/compta/paiement.php * \file htdocs/compta/paiement.php
* \ingroup compta * \ingroup compta
* \brief Page to create a payment * \brief Page to create a payment
* \version $Id: paiement.php,v 1.110 2011/07/11 09:32:35 cdelambert Exp $ * \version $Id: paiement.php,v 1.111 2011/07/13 08:57:21 eldy Exp $
*/ */
require('../main.inc.php'); require('../main.inc.php');
@ -253,7 +253,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
if (! empty($conf->global->PAYPAL_BANK_ACCOUNT)) $accountid=$conf->global->PAYPAL_BANK_ACCOUNT; if (! empty($conf->global->PAYPAL_BANK_ACCOUNT)) $accountid=$conf->global->PAYPAL_BANK_ACCOUNT;
$paymentnum=$facture->ref_int; $paymentnum=$facture->ref_int;
} }
if ($conf->use_javascript_ajax) if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
{ {
print "\n".'<script type="text/javascript" language="javascript">'; print "\n".'<script type="text/javascript" language="javascript">';
print 'jQuery(document).ready(function () {'; print 'jQuery(document).ready(function () {';
@ -371,7 +371,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print '</tr>'; print '</tr>';
// Payment amount // Payment amount
if ($conf->use_javascript_ajax) if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
{ {
print '<tr><td><span class="fieldrequired">'.$langs->trans('AmountPayment').'</span></td>'; print '<tr><td><span class="fieldrequired">'.$langs->trans('AmountPayment').'</span></td>';
print '<td>'; print '<td>';
@ -512,7 +512,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
if ($action != 'add_paiement') if ($action != 'add_paiement')
{ {
if ($conf->use_javascript_ajax) if ($conf->use_javascript_ajax && !empty($conf->global->MAIN_JS_ON_PAYMENT))
{ {
print img_picto($langs->trans('AddRemind'),'rightarrow.png','id="'.$objp->facid.'" "'); print img_picto($langs->trans('AddRemind'),'rightarrow.png','id="'.$objp->facid.'" "');
} }
@ -671,5 +671,5 @@ if (! GETPOST('action'))
$db->close(); $db->close();
llxFooter('$Date: 2011/07/11 09:32:35 $ - $Revision: 1.110 $'); llxFooter('$Date: 2011/07/13 08:57:21 $ - $Revision: 1.111 $');
?> ?>