From d32428739b7bcb6423c79a3f6316da22af826f26 Mon Sep 17 00:00:00 2001 From: kontro Date: Mon, 29 Jan 2007 08:34:01 +0000 Subject: [PATCH] Feature request: [ 1614574 ] Port sqlj functions to pl/pgsql - Converts integers in BOM_PriceList -function to NUMERIC. (See. R1269) - Adds short comment line --- db/ddlutils/postgresql/functions/BOM_PriceList.sql | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/db/ddlutils/postgresql/functions/BOM_PriceList.sql b/db/ddlutils/postgresql/functions/BOM_PriceList.sql index 088c3abbbf..c4a97345f5 100644 --- a/db/ddlutils/postgresql/functions/BOM_PriceList.sql +++ b/db/ddlutils/postgresql/functions/BOM_PriceList.sql @@ -20,11 +20,12 @@ *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of */ -SET search_path = adempiere, pg_catalog; - +/* + * Loops recursively through bom and returns sum of list prices (pricelist). + */ CREATE OR REPLACE FUNCTION bompricelist( - IN INTEGER, -- $1 product id - IN INTEGER -- $2 pricelist version id + IN NUMERIC, -- $1 product id + IN NUMERIC -- $2 pricelist version id ) RETURNS NUMERIC AS $$ DECLARE