From 1150fe5a43c150fef40e29adeab8c6f2fec64ac5 Mon Sep 17 00:00:00 2001 From: kontro Date: Mon, 29 Jan 2007 08:18:28 +0000 Subject: [PATCH] Feature request: [ 1614574 ] Port sqlj functions to pl/pgsql - Converts integers in BOM_PriceLimit -function to NUMERIC. (See. R1269) - Adds short comment line --- db/ddlutils/postgresql/functions/BOM_PriceLimit.sql | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/db/ddlutils/postgresql/functions/BOM_PriceLimit.sql b/db/ddlutils/postgresql/functions/BOM_PriceLimit.sql index ac72d2f93f..143d90a95e 100644 --- a/db/ddlutils/postgresql/functions/BOM_PriceLimit.sql +++ b/db/ddlutils/postgresql/functions/BOM_PriceLimit.sql @@ -20,11 +20,12 @@ *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of */ -SET search_path = adempiere, pg_catalog; - -CREATE OR REPLACE FUNCTION bompricelimit( - IN INTEGER, -- $1 product id - IN INTEGER -- $2 pricelist version id +/* + * Loops recursively through BOM and returns BOM's total pricelimit. + */ +CREATE OR REPLACE FUNCTION adempiere.bompricelimit( + IN NUMERIC, -- $1 product id + IN NUMERIC -- $2 pricelist version id ) RETURNS NUMERIC AS $$ DECLARE