Feature request: [ 1614574 ] Port sqlj functions to pl/pgsql
Added set search_path statements and copyright.
This commit is contained in:
parent
00d01bc652
commit
4ae2c63c04
|
@ -1,3 +1,27 @@
|
||||||
|
/*
|
||||||
|
*This file is part of Adempiere ERP Bazaar
|
||||||
|
*http://www.adempiere.org
|
||||||
|
*
|
||||||
|
*Copyright (C) 2006 Timo Kontro
|
||||||
|
*Copyright (C) 1999-2006 ComPiere, inc
|
||||||
|
*
|
||||||
|
*This program is free software; you can redistribute it and/or
|
||||||
|
*modify it under the terms of the GNU General Public License
|
||||||
|
*as published by the Free Software Foundation; either version 2
|
||||||
|
*of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
*This program is distributed in the hope that it will be useful,
|
||||||
|
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
*GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
*You should have received a copy of the GNU General Public License
|
||||||
|
*along with this program; if not, write to the Free Software
|
||||||
|
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of
|
||||||
|
*/
|
||||||
|
|
||||||
|
SET search_path = adempiere, pg_catalog;
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION currencybase(
|
CREATE OR REPLACE FUNCTION currencybase(
|
||||||
IN NUMERIC, -- $1 p_Amount
|
IN NUMERIC, -- $1 p_Amount
|
||||||
IN INTEGER, -- $2 p_C_CurrencyFrom_ID
|
IN INTEGER, -- $2 p_C_CurrencyFrom_ID
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
|
/*
|
||||||
|
*This file is part of Adempiere ERP Bazaar
|
||||||
|
*http://www.adempiere.org
|
||||||
|
*
|
||||||
|
*Copyright (C) 2006 Timo Kontro
|
||||||
|
*Copyright (C) 1999-2006 ComPiere, inc
|
||||||
|
*
|
||||||
|
*This program is free software; you can redistribute it and/or
|
||||||
|
*modify it under the terms of the GNU General Public License
|
||||||
|
*as published by the Free Software Foundation; either version 2
|
||||||
|
*of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
*This program is distributed in the hope that it will be useful,
|
||||||
|
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
*GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
*You should have received a copy of the GNU General Public License
|
||||||
|
*along with this program; if not, write to the Free Software
|
||||||
|
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of
|
||||||
|
*/
|
||||||
|
|
||||||
|
SET search_path = adempiere, pg_catalog;
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION currencyconvert(
|
CREATE OR REPLACE FUNCTION currencyconvert(
|
||||||
IN NUMERIC, -- $1 amount to convert
|
IN NUMERIC, -- $1 amount to convert
|
||||||
|
|
|
@ -1,3 +1,27 @@
|
||||||
|
/*
|
||||||
|
*This file is part of Adempiere ERP Bazaar
|
||||||
|
*http://www.adempiere.org
|
||||||
|
*
|
||||||
|
*Copyright (C) 2006 Timo Kontro
|
||||||
|
*Copyright (C) 1999-2006 ComPiere, inc
|
||||||
|
*
|
||||||
|
*This program is free software; you can redistribute it and/or
|
||||||
|
*modify it under the terms of the GNU General Public License
|
||||||
|
*as published by the Free Software Foundation; either version 2
|
||||||
|
*of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
*This program is distributed in the hope that it will be useful,
|
||||||
|
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
*GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
*You should have received a copy of the GNU General Public License
|
||||||
|
*along with this program; if not, write to the Free Software
|
||||||
|
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of
|
||||||
|
*/
|
||||||
|
|
||||||
|
SET search_path = adempiere, pg_catalog;
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION currencyrate(
|
CREATE OR REPLACE FUNCTION currencyrate(
|
||||||
IN INTEGER, -- $1 currency from id
|
IN INTEGER, -- $1 currency from id
|
||||||
IN INTEGER, -- $2 currency to id
|
IN INTEGER, -- $2 currency to id
|
||||||
|
|
|
@ -1,3 +1,27 @@
|
||||||
|
/*
|
||||||
|
*This file is part of Adempiere ERP Bazaar
|
||||||
|
*http://www.adempiere.org
|
||||||
|
*
|
||||||
|
*Copyright (C) 2006 Timo Kontro
|
||||||
|
*Copyright (C) 1999-2006 ComPiere, inc
|
||||||
|
*
|
||||||
|
*This program is free software; you can redistribute it and/or
|
||||||
|
*modify it under the terms of the GNU General Public License
|
||||||
|
*as published by the Free Software Foundation; either version 2
|
||||||
|
*of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
*This program is distributed in the hope that it will be useful,
|
||||||
|
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
*GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
*You should have received a copy of the GNU General Public License
|
||||||
|
*along with this program; if not, write to the Free Software
|
||||||
|
*Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.of
|
||||||
|
*/
|
||||||
|
|
||||||
|
SET search_path = adempiere, pg_catalog;
|
||||||
|
|
||||||
CREATE OR REPLACE FUNCTION currencyround (
|
CREATE OR REPLACE FUNCTION currencyround (
|
||||||
IN NUMERIC, -- $1 amount
|
IN NUMERIC, -- $1 amount
|
||||||
IN INTEGER, -- $2 Currency_ID
|
IN INTEGER, -- $2 Currency_ID
|
||||||
|
|
Loading…
Reference in New Issue