From: Joe Hunt Date: Fri, 20 Apr 2007 07:15:47 +0000 (+0000) Subject: Fixed bug no 1703888 Apostrophes and other unescaped characters X-Git-Tag: 2.3-final~1562 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=9e8f7958e937c24a1b0ca859bbca8455e0b41404;p=fa-stable.git Fixed bug no 1703888 Apostrophes and other unescaped characters + another suppliers GL accounts SQL error that was detected. --- diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index 6e309598..9ff0fa7a 100644 --- a/gl/manage/gl_accounts.php +++ b/gl/manage/gl_accounts.php @@ -144,7 +144,7 @@ function can_delete($selected_account) OR sales_discount_account=$selected_account OR receivables_account=$selected_account OR payment_discount_account=$selected_account"; - $result = db_query($sql,"Couldn't test for existing tax GL codes"); + $result = db_query($sql,"Couldn't test for existing cust branch GL codes"); $myrow = db_fetch_row($result); if ($myrow[0] > 0) @@ -155,9 +155,9 @@ function can_delete($selected_account) $sql= "SELECT COUNT(*) FROM ".TB_PREF."suppliers WHERE purchase_account=$selected_account - payment_discount_account=$selected_account + OR payment_discount_account=$selected_account OR payable_account=$selected_account"; - $result = db_query($sql,"Couldn't test for existing tax GL codes"); + $result = db_query($sql,"Couldn't test for existing suppliers GL codes"); $myrow = db_fetch_row($result); if ($myrow[0] > 0)