Feature request: [ 1614574 ] Port sqlj functions to pl/pgsql

- Converts integers in BOM_PriceLimit -function to NUMERIC. (See. R1269)
- Adds short comment line
This commit is contained in:
kontro 2007-01-29 08:18:28 +00:00
parent bf1c409251
commit 1150fe5a43
1 changed files with 6 additions and 5 deletions

View File

@ -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