From: Joe Hunt Date: Sat, 26 Sep 2020 07:53:49 +0000 (+0200) Subject: bug in purchase order delete when invoking hook_db_prevoid () Fixed. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=ae3a0561f97506ad4538a1027a192b970008de0b bug in purchase order delete when invoking hook_db_prevoid () Fixed. --- diff --git a/purchasing/includes/db/po_db.inc b/purchasing/includes/db/po_db.inc index a904c2ff..115b73f1 100644 --- a/purchasing/includes/db/po_db.inc +++ b/purchasing/includes/db/po_db.inc @@ -49,7 +49,7 @@ function delete_po($po) global $Refs; begin_transaction(); - hook_db_prevoid($po, ST_PURCHORDER); + hook_db_prevoid(ST_PURCHORDER, $po); $sql = "DELETE FROM ".TB_PREF."purch_orders WHERE order_no=".db_escape($po); db_query($sql, "The order header could not be deleted");