Update paymentok.php

This commit is contained in:
Laurent Destailleur 2021-07-14 14:04:44 +02:00 committed by GitHub
parent b102dc619f
commit b2425c2a9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -833,7 +833,7 @@ if ($ispaymentok) {
$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)
if (!empty($conf->banque->enabled)) {
if (!empty($conf->facture->enabled)) {
if (!empty($FinalPaymentAmt) && $paymentTypeId > 0 ) {
include_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
$invoice = new Facture($db);