Fixing style errors.
This commit is contained in:
parent
5c0086790e
commit
b102dc619f
@ -916,17 +916,17 @@ if ($ispaymentok) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$postactionmessages[] = 'Order paid ' . $tmptag['ORD'] . ' was not found';
|
$postactionmessages[] = 'Order paid ' . $tmptag['ORD'] . ' was not found';
|
||||||
$ispostactionok = -1;
|
$ispostactionok = -1;
|
||||||
}
|
}
|
||||||
} elseif (array_key_exists('DON', $tmptag) && $tmptag['DON'] > 0) {
|
} elseif (array_key_exists('DON', $tmptag) && $tmptag['DON'] > 0) {
|
||||||
include_once DOL_DOCUMENT_ROOT.'/don/class/don.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/don/class/don.class.php';
|
||||||
$don = new Don($db);
|
$don = new Don($db);
|
||||||
$result = $don->fetch($tmptag['DON']);
|
$result = $don->fetch($tmptag['DON']);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$FinalPaymentAmt = $_SESSION["FinalPaymentAmt"];
|
$FinalPaymentAmt = $_SESSION["FinalPaymentAmt"];
|
||||||
|
|
||||||
$paymentTypeId = 0;
|
$paymentTypeId = 0;
|
||||||
if ($paymentmethod == 'paybox') {
|
if ($paymentmethod == 'paybox') {
|
||||||
$paymentTypeId = $conf->global->PAYBOX_PAYMENT_MODE_FOR_PAYMENTS;
|
$paymentTypeId = $conf->global->PAYBOX_PAYMENT_MODE_FOR_PAYMENTS;
|
||||||
}
|
}
|
||||||
if ($paymentmethod == 'paypal') {
|
if ($paymentmethod == 'paypal') {
|
||||||
@ -940,9 +940,9 @@ if ($ispaymentok) {
|
|||||||
if (empty($paymentType)) {
|
if (empty($paymentType)) {
|
||||||
$paymentType = 'CB';
|
$paymentType = 'CB';
|
||||||
}
|
}
|
||||||
$paymentTypeId = dol_getIdFromCode($db, $paymentType, 'c_paiement', 'code', 'id', 1);
|
$paymentTypeId = dol_getIdFromCode($db, $paymentType, 'c_paiement', 'code', 'id', 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$currencyCodeType = $_SESSION['currencyCodeType'];
|
$currencyCodeType = $_SESSION['currencyCodeType'];
|
||||||
|
|
||||||
// Do action only if $FinalPaymentAmt is set (session variable is cleaned after this page to avoid duplicate actions when page is POST a second time)
|
// Do action only if $FinalPaymentAmt is set (session variable is cleaned after this page to avoid duplicate actions when page is POST a second time)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user