Skip to content

Commit

Permalink
fix Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
priojk committed Jul 16, 2024
1 parent edee448 commit 502dc46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/prelevement/class/bonprelevement.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2178,7 +2178,7 @@ public function EnregDestinataireSEPA($row_code_client, $row_nom, $row_address,
$XML_DEBITOR .= ' <AmdmntInd>false</AmdmntInd>'.$CrLf;
$XML_DEBITOR .= ' </MndtRltdInf>'.$CrLf;
$XML_DEBITOR .= ' </DrctDbtTx>'.$CrLf;
if (empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) {
if (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0) {
$XML_DEBITOR .= ' <DbtrAgt>' . $CrLf;
$XML_DEBITOR .= ' <FinInstnId>' . $CrLf;
$XML_DEBITOR .= ' <BIC>' . $row_bic . '</BIC>' . $CrLf;
Expand Down
14 changes: 7 additions & 7 deletions htdocs/societe/paymentmodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@

if ($action == 'update') {
// Update the bank account
if (!GETPOST('label', 'alpha') || !(GETPOST('bank', 'alpha') or !empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')))) {
if (!GETPOST('label', 'alpha') || !(GETPOST('bank', 'alpha') or (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')!=0))) {
if (!GETPOST('label', 'alpha')) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Label")), null, 'errors');
}
if (!GETPOST('bank', 'alpha') and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) {
if (!GETPOST('bank', 'alpha') and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BankName")), null, 'errors');
}
$action = 'edit';
Expand All @@ -153,7 +153,7 @@
$action = 'edit';
$error++;
}
if (!GETPOST('bic') and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) {
if (!GETPOST('bic') and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BIC")), null, 'errors');
$action = 'edit';
$error++;
Expand Down Expand Up @@ -329,7 +329,7 @@
$action = 'create';
$error++;
}
if (!GETPOST('bic') and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) {
if (!GETPOST('bic') and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) {
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("BIC")), null, 'errors');
$action = 'create';
$error++;
Expand Down Expand Up @@ -1969,7 +1969,7 @@
print '<tr><td class="titlefield fieldrequired">'.$langs->trans("Label").'</td>';
print '<td><input class="minwidth300" type="text" name="label" value="'.$companybankaccount->label.'"></td></tr>';

$required = empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')) ? "fieldrequired" : "";
$required = (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0) ? "fieldrequired" : "";
print '<tr><td class="'.$required.'">'.$langs->trans("BankName").'</td>';
print '<td><input class="minwidth200" type="text" name="bank" value="'.$companybankaccount->bank.'"></td></tr>';

Expand Down Expand Up @@ -2007,7 +2007,7 @@
$name = 'bic';
$size = 12;
$content = $bankaccount->bic;
if ($bankaccount->needIBAN() and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) {
if ($bankaccount->needIBAN() and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) {
$require = true;
}
$tooltip = $langs->trans("Example").': LIABLT2XXXX';
Expand Down Expand Up @@ -2179,7 +2179,7 @@
$name = 'bic';
$size = 12;
$content = $companybankaccount->bic;
if ($companybankaccount->needIBAN() and empty(getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC'))) {
if ($companybankaccount->needIBAN() and (getDolGlobalInt('WITHDRAWAL_WITHOUT_BIC')==0)) {
$require = true;
}
$tooltip = $langs->trans("Example").': LIABLT2XXXX';
Expand Down

0 comments on commit 502dc46

Please sign in to comment.