From 1f09151a253ffd36b65356db92cdc0e426821fd6 Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Mon, 6 Jun 2022 06:44:15 +0200 Subject: [PATCH 1/3] TakePOS without bank account pay.php --- htdocs/takepos/pay.php | 3 +++ 1 file changed, 3 insertions(+) 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; + } } } ?> From a53e3ca3f30678b82edaf58b43aac3786f1a2481 Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Mon, 6 Jun 2022 06:45:25 +0200 Subject: [PATCH 2/3] TakePOS without bank accounts invoice.php --- htdocs/takepos/invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } From 9343e1d5032939d91ad67a63f48088636c381825 Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Mon, 6 Jun 2022 06:46:42 +0200 Subject: [PATCH 3/3] TakePOS without bank accounts index.php --- htdocs/takepos/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');