diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index d5bd8e4405f..ac4492f4e1d 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -1136,7 +1136,7 @@ if (isset($_SESSION["takeposterminal"]) && $_SESSION["takeposterminal"]) { } } - if (empty($paiementsModes)) { + if (empty($paiementsModes) && !empty($conf->banque->enabled)) { $langs->load('errors'); setEventMessages($langs->trans("ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv("TakePOS")), null, 'errors'); setEventMessages($langs->trans("ProblemIsInSetupOfTerminal", $_SESSION["takeposterminal"]), null, 'errors'); diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 512dab86d59..b4111094063 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -204,7 +204,7 @@ if (empty($reshook)) { } } - if ($bankaccount <= 0 && $pay != "delayed") { + if ($bankaccount <= 0 && $pay != "delayed" && !empty($conf->banque->enabled)) { $errormsg = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BankAccount")); $error++; } diff --git a/htdocs/takepos/pay.php b/htdocs/takepos/pay.php index ffa33fbe8fc..40d873654c6 100644 --- a/htdocs/takepos/pay.php +++ b/htdocs/takepos/pay.php @@ -111,6 +111,9 @@ if ($resql) { $arrayOfValidBankAccount[$conf->global->$accountname] = $conf->global->$accountname; $arrayOfValidPaymentModes[] = $obj; } + if (empty($conf->banque->enabled)) { + if ($paycode == 'CASH' || $paycode == 'CB') $arrayOfValidPaymentModes[] = $obj; + } } } ?>