FIX bank account not visible on credit transfer

This commit is contained in:
Laurent Destailleur 2023-04-27 14:53:02 +02:00
parent 796a6778b9
commit 96e8474fe5
4 changed files with 5 additions and 3 deletions

View File

@ -213,6 +213,7 @@ if ($id > 0 || $ref) {
$acc = new Account($db);
$result = $acc->fetch(($object->type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT));
// Bank account
print '<tr><td class="titlefieldcreate">';
$labelofbankfield = "BankToReceiveWithdraw";
if ($object->type == 'bank-transfer') {

View File

@ -130,7 +130,7 @@ if ($id > 0 || $ref) {
print '<table class="border centpercent tableforfield">';
$acc = new Account($db);
$result = $acc->fetch($conf->global->PRELEVEMENT_ID_BANKACCOUNT);
$result = $acc->fetch(($object->type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT));
print '<tr><td class="titlefieldcreate">';
$labelofbankfield = "BankToReceiveWithdraw";
@ -139,6 +139,7 @@ if ($id > 0 || $ref) {
}
print $langs->trans($labelofbankfield);
print '</td>';
print '<td>';
if ($acc->id > 0) {
print $acc->getNomUrl(1);

View File

@ -125,7 +125,7 @@ if ($id > 0 || $ref) {
print '<table class="border centpercent tableforfield">';
$acc = new Account($db);
$result = $acc->fetch($conf->global->PRELEVEMENT_ID_BANKACCOUNT);
$result = $acc->fetch(($object->type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT));
print '<tr><td class="titlefieldcreate">';
$labelofbankfield = "BankToReceiveWithdraw";

View File

@ -119,7 +119,7 @@ if ($id > 0 || $ref) {
print '<table class="border centpercent tableforfield">';
$acc = new Account($db);
$result = $acc->fetch($conf->global->PRELEVEMENT_ID_BANKACCOUNT);
$result = $acc->fetch(($object->type == 'bank-transfer' ? $conf->global->PAYMENTBYBANKTRANSFER_ID_BANKACCOUNT : $conf->global->PRELEVEMENT_ID_BANKACCOUNT));
print '<tr><td class="titlefieldcreate">';
$labelofbankfield = "BankToReceiveWithdraw";