Skip to content

Commit 4a6cff8

Browse files
committed
fix: rimozione controllo errato su metodo di pagamento
1 parent 6711f00 commit 4a6cff8

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

modules/pagamenti/ajax/select.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@
6767
);
6868
$rs = $data['results'];
6969

70-
foreach ($rs as $k => $r) {
71-
// Controllo metodi di pagamento con ri.ba. solo per i documenti con dir entrata
72-
if ($dbo->fetchOne('SELECT `co_tipidocumento`.`dir` AS dir FROM `co_tipidocumento` WHERE `co_tipidocumento`.`id`='.prepare($superselect['idtipodocumento']))['dir'] == 'entrata') {
73-
$rs[$k] = array_merge($r, [
74-
'text' => (($r['codice_modalita_pagamento_fe'] == 'MP12' && empty($r['id_banca_cliente'])) ? $r['descrizione'].' '.tr('(Informazioni bancarie mancanti)') : $r['descrizione']),
75-
'disabled' => (($r['codice_modalita_pagamento_fe'] == 'MP12' && empty($r['id_banca_cliente'])) ? 1 : 0),
76-
]);
77-
}
78-
}
79-
8070
$results = [
8171
'results' => $rs,
8272
'recordsFiltered' => $data['recordsFiltered'],

0 commit comments

Comments
 (0)