Fix problem found in revision 10365
https://sourceforge.net/tracker/index.php?func=detail&aid=2528459&group_id=176962&atid=879332
This commit is contained in:
parent
0b77aa9b3c
commit
e613bc7461
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue