diff --git a/db/ddlutils/postgresql/functions/C_Base_Convert.sql b/db/ddlutils/postgresql/functions/C_Base_Convert.sql index 20a90fe774..bd95f7462e 100644 --- a/db/ddlutils/postgresql/functions/C_Base_Convert.sql +++ b/db/ddlutils/postgresql/functions/C_Base_Convert.sql @@ -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( IN NUMERIC, -- $1 p_Amount IN INTEGER, -- $2 p_C_CurrencyFrom_ID diff --git a/db/ddlutils/postgresql/functions/C_Currency_Convert.sql b/db/ddlutils/postgresql/functions/C_Currency_Convert.sql index 8f6a007e96..015db81810 100644 --- a/db/ddlutils/postgresql/functions/C_Currency_Convert.sql +++ b/db/ddlutils/postgresql/functions/C_Currency_Convert.sql @@ -1,4 +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 currencyconvert( IN NUMERIC, -- $1 amount to convert IN INTEGER, -- $2 from currency id diff --git a/db/ddlutils/postgresql/functions/C_Currency_Rate.sql b/db/ddlutils/postgresql/functions/C_Currency_Rate.sql index 20796b34e9..5e5d420734 100644 --- a/db/ddlutils/postgresql/functions/C_Currency_Rate.sql +++ b/db/ddlutils/postgresql/functions/C_Currency_Rate.sql @@ -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( IN INTEGER, -- $1 currency from id IN INTEGER, -- $2 currency to id diff --git a/db/ddlutils/postgresql/functions/C_Currency_Round.sql b/db/ddlutils/postgresql/functions/C_Currency_Round.sql index 4055e9c1ba..7f68f55953 100644 --- a/db/ddlutils/postgresql/functions/C_Currency_Round.sql +++ b/db/ddlutils/postgresql/functions/C_Currency_Round.sql @@ -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 ( IN NUMERIC, -- $1 amount IN INTEGER, -- $2 Currency_ID