Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
3e859eb5e6
@ -1136,7 +1136,7 @@ if (isset($_SESSION["takeposterminal"]) && $_SESSION["takeposterminal"]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($paiementsModes)) {
|
if (empty($paiementsModes) && !empty($conf->banque->enabled)) {
|
||||||
$langs->load('errors');
|
$langs->load('errors');
|
||||||
setEventMessages($langs->trans("ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv("TakePOS")), null, 'errors');
|
setEventMessages($langs->trans("ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv("TakePOS")), null, 'errors');
|
||||||
setEventMessages($langs->trans("ProblemIsInSetupOfTerminal", $_SESSION["takeposterminal"]), null, 'errors');
|
setEventMessages($langs->trans("ProblemIsInSetupOfTerminal", $_SESSION["takeposterminal"]), null, 'errors');
|
||||||
|
|||||||
@ -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"));
|
$errormsg = $langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BankAccount"));
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -111,6 +111,9 @@ if ($resql) {
|
|||||||
$arrayOfValidBankAccount[$conf->global->$accountname] = $conf->global->$accountname;
|
$arrayOfValidBankAccount[$conf->global->$accountname] = $conf->global->$accountname;
|
||||||
$arrayOfValidPaymentModes[] = $obj;
|
$arrayOfValidPaymentModes[] = $obj;
|
||||||
}
|
}
|
||||||
|
if (empty($conf->banque->enabled)) {
|
||||||
|
if ($paycode == 'CASH' || $paycode == 'CB') $arrayOfValidPaymentModes[] = $obj;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user