Carlos Ruiz 2009-10-02 23:19:00 +00:00
parent 0b77aa9b3c
commit e613bc7461
2 changed files with 73 additions and 66 deletions

View File

@ -1,10 +1,12 @@
-- DROP FUNCTION currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying);
CREATE OR REPLACE FUNCTION currencyRound(
p_Amount NUMERIC,
p_CurTo_ID NUMERIC,
p_Costing VARCHAR -- Default 'N'
p_Costing character varying -- Default 'N'
)
RETURNS numeric AS $body$
RETURNS numeric AS $BODY$
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
@ -27,8 +29,8 @@ RETURNS numeric AS $body$
DECLARE
v_StdPrecision NUMERIC;
v_CostPrecision NUMERIC;
v_StdPrecision int;
v_CostPrecision int;
BEGIN
-- Nothing to convert
@ -54,7 +56,7 @@ BEGIN
END;
$body$ LANGUAGE plpgsql;
$BODY$
LANGUAGE 'plpgsql' VOLATILE;
ALTER FUNCTION currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying) OWNER TO adempiere;

View File

@ -1,8 +1,12 @@
-- DROP FUNCTION adempiere.currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying);
-- DROP FUNCTION currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying);
CREATE OR REPLACE FUNCTION adempiere.currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying)
RETURNS numeric AS
$BODY$
CREATE OR REPLACE FUNCTION currencyRound(
p_Amount NUMERIC,
p_CurTo_ID NUMERIC,
p_Costing character varying -- Default 'N'
)
RETURNS numeric AS $BODY$
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
@ -54,4 +58,5 @@ END;
$BODY$
LANGUAGE 'plpgsql' VOLATILE;
ALTER FUNCTION adempiere.currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying) OWNER TO adempiere;
ALTER FUNCTION currencyround(p_amount numeric, p_curto_id numeric, p_costing character varying) OWNER TO adempiere;