From: Joe Hunt Date: Tue, 12 Jan 2010 11:45:22 +0000 (+0000) Subject: Rerun X-Git-Tag: 2.3-final~1044 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=18c6299e9181c660fe8a2d872ff2d02f0170df18;p=fa-stable.git Rerun --- diff --git a/admin/fiscalyears.php b/admin/fiscalyears.php index 85792f73..6fd36fc7 100644 --- a/admin/fiscalyears.php +++ b/admin/fiscalyears.php @@ -370,7 +370,7 @@ function delete_this_fiscalyear($selected_id) $sql = "DELETE FROM ".TB_PREF."audit_trail WHERE gl_date <= '$to'"; db_query($sql, "Could not delete audit trail"); - $sql = "SELECT type, id FROM ".TB_PREF."comments"; + $sql = "SELECT type, id FROM ".TB_PREF."comments WHERE type != ".ST_SALESQUOTE." AND type != ".ST_SALESORDER." AND type != ".ST_PURCHORDER; $result = db_query($sql, "Could not retrieve comments"); while ($row = db_fetch($result)) { @@ -383,7 +383,7 @@ function delete_this_fiscalyear($selected_id) db_query($sql, "Could not delete comments"); } } - $sql = "SELECT type, id FROM ".TB_PREF."refs"; + $sql = "SELECT type, id FROM ".TB_PREF."refs WHERE type != ".ST_SALESQUOTE." AND type != ".ST_SALESORDER." AND type != ".ST_PURCHORDER; $result = db_query($sql, "Could not retrieve refs"); while ($row = db_fetch($result)) {