Merge pull request #22767 from aspangaro/17b14
FIX Accountancy - Delete operation - Problem on SELECT
This commit is contained in:
commit
16b2467ef5
1 changed files with 1 additions and 1 deletions
|
|
@ -592,7 +592,7 @@ class Lettering extends BookKeeping
|
|||
$sql .= " WHERE bpn.entity IN (" . getEntity('accountancy') . ")";
|
||||
$sql .= " AND bpn.doc_type = 'bank'";
|
||||
$sql .= " AND bpn.fk_doc IN (" . $this->db->sanitize(implode(',', $bank_ids)) . ")";
|
||||
$sql .= " AND bpn ON bpn.piece_num = ab.piece_num";
|
||||
$sql .= " AND bpn.piece_num = ab.piece_num";
|
||||
$sql .= " ) OR ";
|
||||
}
|
||||
$sql .= " EXISTS (";
|
||||
|
|
|
|||
Loading…
Reference in a new issue