From ba34b601b314a45abc5666d485ff59ac099a781b Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Thu, 4 Apr 2019 16:44:36 +0200 Subject: [PATCH] FIX: MultiEntity in lettering functionality --- htdocs/accountancy/bookkeeping/thirdparty_lettering_customer.php | 1 + htdocs/accountancy/bookkeeping/thirdparty_lettering_supplier.php | 1 + 2 files changed, 2 insertions(+) diff --git a/htdocs/accountancy/bookkeeping/thirdparty_lettering_customer.php b/htdocs/accountancy/bookkeeping/thirdparty_lettering_customer.php index 3fdda686eab..1d370176613 100644 --- a/htdocs/accountancy/bookkeeping/thirdparty_lettering_customer.php +++ b/htdocs/accountancy/bookkeeping/thirdparty_lettering_customer.php @@ -150,6 +150,7 @@ if (dol_strlen($search_year)) { $sql .= " AND ( bk.doc_date BETWEEN '" . $db->idate($date_start) . "' AND '" . $db->idate($date_end) . "' )"; } +$sql.= ' AND bk.entity IN ('.getEntity('accountingbookkeeping').')'; $sql .= $db->order($sortfield, $sortorder); $debit = 0; diff --git a/htdocs/accountancy/bookkeeping/thirdparty_lettering_supplier.php b/htdocs/accountancy/bookkeeping/thirdparty_lettering_supplier.php index 8cd51847b1e..1d80bda7710 100644 --- a/htdocs/accountancy/bookkeeping/thirdparty_lettering_supplier.php +++ b/htdocs/accountancy/bookkeeping/thirdparty_lettering_supplier.php @@ -149,6 +149,7 @@ if (dol_strlen($search_year)) { $sql .= " AND ( bk.doc_date BETWEEN '".$db->idate($date_start)."' AND '".$db->idate($date_end)."' )"; } +$sql.= ' AND bk.entity IN ('.getEntity('accountingbookkeeping').')'; $sql.= $db->order($sortfield,$sortorder); $debit = 0;